Template:Calendar: Difference between revisions

Template page
Content added Content deleted
(change colours and slightly alter style)
m (changed "other dates" link)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--Attribution: Star Citizen Wiki-->
<div style="float:right; border:1px solid #c7c7c7; margin: 10px 0 10px 15px;">
<includeonly><div class="template-calendar floatright">
{|class="" style="width:18em; font-size:95%; text-align:center; "
<div class="template-calendar__header">
| style="text-align:center; font-size:125%; background-color:#444; color:white;" colspan="7"| {{{1}}}
{{Prevnext
|-
|prev={{#time:1 F|{{{1}}} + 11 months}}
|style="font-size:90%; text-align:center;"|[[1 {{{1}}}|1]]
|prevTitle={{#time:M|{{{1}}} + 11 months}}
|style="font-size:90%; text-align:center;"|[[2 {{{1}}}|2]]
|title={{{1|&nbsp;}}}
|style="font-size:90%; text-align:center;"|[[3 {{{1}}}|3]]
|next={{#time:1 F|{{{1}}} + 1 month}}
|style="font-size:90%; text-align:center;"|[[4 {{{1}}}|4]]
|nextTitle={{#time:M|{{{1}}} + 1 month}}
|style="font-size:90%; text-align:center;"|[[5 {{{1}}}|5]]
}}
|style="font-size:90%; text-align:center;"|[[6 {{{1}}}|6]]
</div>
|style="font-size:90%; text-align:center;"|[[7 {{{1}}}|7]]
<div class="template-calendar__grid">
|-
|style="font-size:90%; text-align:center;"|[[8 {{{1}}}|8]]
<div class="template-calendar__day">[[1 {{{1}}}|1]]</div>
|style="font-size:90%; text-align:center;"|[[9 {{{1}}}|9]]
<div class="template-calendar__day">[[2 {{{1}}}|2]]</div>
|style="font-size:90%; text-align:center;"|[[10 {{{1}}}|10]]
<div class="template-calendar__day">[[3 {{{1}}}|3]]</div>
|style="font-size:90%; text-align:center;"|[[11 {{{1}}}|11]]
<div class="template-calendar__day">[[4 {{{1}}}|4]]</div>
|style="font-size:90%; text-align:center;"|[[12 {{{1}}}|12]]
<div class="template-calendar__day">[[5 {{{1}}}|5]]</div>
|style="font-size:90%; text-align:center;"|[[13 {{{1}}}|13]]
<div class="template-calendar__day">[[6 {{{1}}}|6]]</div>
|style="font-size:90%; text-align:center;"|[[14 {{{1}}}|14]]
<div class="template-calendar__day">[[7 {{{1}}}|7]]</div>
<div class="template-calendar__day">[[8 {{{1}}}|8]]</div>
|-
|style="font-size:90%; text-align:center;"|[[15 {{{1}}}|15]]
<div class="template-calendar__day">[[9 {{{1}}}|9]]</div>
|style="font-size:90%; text-align:center;"|[[16 {{{1}}}|16]]
<div class="template-calendar__day">[[10 {{{1}}}|10]]</div>
|style="font-size:90%; text-align:center;"|[[17 {{{1}}}|17]]
<div class="template-calendar__day">[[11 {{{1}}}|11]]</div>
|style="font-size:90%; text-align:center;"|[[18 {{{1}}}|18]]
<div class="template-calendar__day">[[12 {{{1}}}|12]]</div>
|style="font-size:90%; text-align:center;"|[[19 {{{1}}}|19]]
<div class="template-calendar__day">[[13 {{{1}}}|13]]</div>
|style="font-size:90%; text-align:center;"|[[20 {{{1}}}|20]]
<div class="template-calendar__day">[[14 {{{1}}}|14]]</div>
|style="font-size:90%; text-align:center;"|[[21 {{{1}}}|21]]
<div class="template-calendar__day">[[15 {{{1}}}|15]]</div>
<div class="template-calendar__day">[[16 {{{1}}}|16]]</div>
|-
|style="font-size:90%; text-align:center;"|[[22 {{{1}}}|22]]
<div class="template-calendar__day">[[17 {{{1}}}|17]]</div>
|style="font-size:90%; text-align:center;"|[[23 {{{1}}}|23]]
<div class="template-calendar__day">[[18 {{{1}}}|18]]</div>
|style="font-size:90%; text-align:center;"|[[24 {{{1}}}|24]]
<div class="template-calendar__day">[[19 {{{1}}}|19]]</div>
|style="font-size:90%; text-align:center;"|[[25 {{{1}}}|25]]
<div class="template-calendar__day">[[20 {{{1}}}|20]]</div>
|style="font-size:90%; text-align:center;"|[[26 {{{1}}}|26]]
<div class="template-calendar__day">[[21 {{{1}}}|21]]</div>
|style="font-size:90%; text-align:center;"|[[27 {{{1}}}|27]]
<div class="template-calendar__day">[[22 {{{1}}}|22]]</div>
|style="font-size:90%; text-align:center;"|[[28 {{{1}}}|28]]
<div class="template-calendar__day">[[23 {{{1}}}|23]]</div>
<div class="template-calendar__day">[[24 {{{1}}}|24]]</div>
|-
|style="font-size:90%; text-align:center;"|[[29 {{{1}}}|29]]
<div class="template-calendar__day">[[25 {{{1}}}|25]]</div>
<div class="template-calendar__day">[[26 {{{1}}}|26]]</div>
|style="font-size:90%; text-align:center;"|{{t|1=|1{{{hide30|}}}=[[30 {{{1}}}|30]]}}
<div class="template-calendar__day">[[27 {{{1}}}|27]]</div>
|style="font-size:90%; text-align:center;"|{{t|1=|1{{{hide31|}}}=[[31 {{{1}}}|31]]}}
<div class="template-calendar__day">[[28 {{{1}}}|28]]</div>
|
<div class="template-calendar__day">[[29 {{{1}}}|29]]</div>
|
<div class="template-calendar__day {{#ifeq:{{{1}}}|{{#time:F|29 {{{1}}} 2000 + 1 day}}||template-calendar__day--nextmonth}}">{{#time:[[j F{{!}}j]]|29 {{{1}}} 2000 + 1 day}}</div>
|
<div class="template-calendar__day {{#ifeq:{{{1}}}|{{#time:F|29 {{{1}}} 2000 + 2 days}}||template-calendar__day--nextmonth}}">{{#time:[[j F{{!}}j]]|29 {{{1}}} 2000 + 2 days}}</div>
|
<div class="template-calendar__day {{#ifeq:{{{1}}}|{{#time:F|29 {{{1}}} 2000 + 3 days}}||template-calendar__day--nextmonth}}">{{#time:[[j F{{!}}j]]|29 {{{1}}} 2000 + 3 days}}</div>
|}
<div class="template-calendar__day {{#ifeq:{{{1}}}|{{#time:F|29 {{{1}}} 2000 + 4 days}}||template-calendar__day--nextmonth}}">{{#time:[[j F{{!}}j]]|29 {{{1}}} 2000 + 4 days}}</div>
{|class="" style="width:100%; font-size:95%; text-align:center; "
<div class="template-calendar__day {{#ifeq:{{{1}}}|{{#time:F|29 {{{1}}} 2000 + 5 days}}||template-calendar__day--nextmonth}}">{{#time:[[j F{{!}}j]]|29 {{{1}}} 2000 + 5 days}}</div>
|-
<div class="template-calendar__day {{#ifeq:{{{1}}}|{{#time:F|29 {{{1}}} 2000 + 6 days}}||template-calendar__day--nextmonth}}">{{#time:[[j F{{!}}j]]|29 {{{1}}} 2000 + 6 days}}</div>
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[January|Jan]]
</div>
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[February|Feb]]
<div class="template-calendar__footer">[[:Category:On this day|Other dates]]</div>
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[March|Mar]]
</div><templatestyles src="Template:Calendar/styles.css" /></includeonly><noinclude>{{doc|{{calendar/doc}}}}</noinclude>
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[April|Apr]]
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[May]]
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[June|Jun]]
|-
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[July|Jul]]
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[August|Aug]]
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[September|Sep]]
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[October|Oct]]
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[November|Nov]]
| style="font-size:85%; text-align:center; background:#eaeaea; width:auto;" | [[December|Dec]]
|}</div><noinclude><br clear="all" />
==Parameters==
*hide30
*hide31

<pre>Usage: To place the calendar on any page simply use the following code: <nowiki>{{Calendar|month-name-here|hide31=yes or no}}</nowiki></pre>

[[Category:Template]]
</noinclude>

Latest revision as of 22:51, 22 December 2023

Template documentation

The {{calendar}} template displays the calendar for a particular month. Simply copy or type {{calendar|month name}} to populate a specific month.

The above documentation is transcluded from Template:Calendar/doc.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.