Template:Cal-date: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
mNo edit summary
Tigerpaw28 (talk | contribs)
Minor tweak to make the arrows point to the month pages instead of the first days of the months.
 
(22 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{| id="toc" cellpadding="2" border="0" style="float: {{{float|right}}};"
<includeonly>
{| id="toc" cellpadding="2" border="0" style="float: {{{float|right}}};"
{{#if:{{{2|}}}|{{!}}-
{{#if:{{{2|}}}|{{!}}-
{{!}} colspan="3" {{!}}[[{{Cal-date/monthstrings|{{Cal-date/offset|getoffsetmonth={{{1|7}}}|offset=-1|day={{{2|1}}}}}}} {{Cal-date/offset|getoffsetday={{{2|1}}}|offset=-1|month={{{1|7}}}}}|yesterday]]
{{!}} colspan="3" {{!}}{{Cal-date/yesterday|{{{1|7}}}|{{{2|1}}}}}
{{!}}
{{!}}
{{!}} colspan="3" align="right" {{!}}[[{{Cal-date/monthstrings|{{Cal-date/offset|getoffsetmonth={{{1|7}}}|offset=1|day={{{2|1}}}}}}} {{Cal-date/offset|getoffsetday={{{2|1}}}|offset=1|month={{{1|7}}}}}|tomorrow]]|}}
{{!}} colspan="3" align="right" {{!}}{{Cal-date/tomorrow|{{{1|7}}}|{{{2|1}}}}}|}}
|-
|-
|[[Template:{{Cal-date/monthstrings|{{Cal-date/offset|monthoffset={{{1|7}}}|offset=-1}}}}|«]]
|[[{{Cal-date/monthstrings|{{Cal-date/offset|monthoffset={{{1|7}}}|offset=-1}}}}|«]]
| colspan="5" align="center"| '''<big>[[{{Cal-date/monthstrings|{{{1|Month}}}}}]]
| colspan="5" align="center"| '''<big>[[{{Cal-date/monthstrings|{{{1|Month}}}}}]]
|[[Template:{{Cal-date/monthstrings|{{Cal-date/offset|monthoffset={{{1|7}}}|offset=1}}}}|»]]
|[[{{Cal-date/monthstrings|{{Cal-date/offset|monthoffset={{{1|7}}}|offset=1}}}}|»]]
|-
|-
|[[{{Cal-date/monthstrings|{{{1|}}}}} 1|1]]
|[[{{Cal-date/monthstrings|{{{1|}}}}} 1|1]]
Line 42: Line 43:
|-
|-
|[[{{Cal-date/monthstrings|{{{1|}}}}} 29|29]]
|[[{{Cal-date/monthstrings|{{{1|}}}}} 29|29]]
|{{#ifeq:{{{2|}}}|2||[[{{Cal-date/monthstrings|{{{1|}}}}} 30|30]]}}
|{{#ifeq:{{{1|}}}|2||[[{{Cal-date/monthstrings|{{{1|}}}}} 30|30]]}}
|{{#switch:{{{2|}}}
|{{#ifeq:{{Cal-date/offset|daysinmonth={{{1|7}}}}}|31|[[{{Cal-date/monthstrings|{{{1|}}}}} 31|31]]|}}
|4=
|6=
|9=
|11=
|[[{{Cal-date/monthstrings|{{{1|}}}}} 31|31]]
||
| colspan="4"|
| colspan="4"|
|}
|}
Line 55: Line 50:
{{#if:{{{nocats|}}}||[[Category: Real-world events by day|{{#if:{{{catas|}}}|{{{catas}}}|{{Cal-date/monthstrings|{{{1|}}}}} {{#pad:{{{2}}}|2|0|left}}}}]]}}</includeonly><noinclude>{{doc}}
{{#if:{{{nocats|}}}||[[Category: Real-world events by day|{{#if:{{{catas|}}}|{{{catas}}}|{{Cal-date/monthstrings|{{{1|}}}}} {{#pad:{{{2}}}|2|0|left}}}}]]}}</includeonly><noinclude>{{doc}}


[[Category:Templates]]
[[Category:Templates|Cal-date]]
</noinclude>
</noinclude>

Latest revision as of 01:54, 17 November 2021

(Transcluded documentation: view)
yesterday tomorrow
« July »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31


{{cal-date}} is a template used to organize calendar pages, such as the ones used on the Main Page.

{{cal-date
|# - Month
|# - Day
}}