Difference between revisions of "Template:Calendar date/infobox"
Jump to navigation
Jump to search
imported>Gonnym |
imported>Gonnym |
||
| Line 1: | Line 1: | ||
| − | {{Calendar date | + | <includeonly>{{Calendar date |
|holiday={{If empty |{{{holiday|}}} |{{PAGENAMEBASE}} }} | |holiday={{If empty |{{{holiday|}}} |{{PAGENAMEBASE}} }} | ||
|year={{#switch: {{{year|}}} | |year={{#switch: {{{year|}}} | ||
| Line 10: | Line 10: | ||
|format=infobox | |format=infobox | ||
|cite={{{cite|}}} | |cite={{{cite|}}} | ||
| − | }}<noinclude>{{Documentation}}</noinclude> | + | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 13:45, 28 September 2020
Template:Calendar date/infobox is used on infoboxes, such as {{Infobox holiday}} to add event dates.
Usage
{{Calendar date|year=}}
Parameter list
| Parameter | Explanation |
|---|---|
year
|
The year the event takes place. Most uses can use one of the preset values: |year=last, |year=current, |year=next or |year=next2. Can also accept any manual year value.
|
holiday
|
The name of the holiday. If left empty the template uses {{PAGENAMEBASE}}, which uses the name of the article without disambiguation.
|
cite
|
Set to "no" if there is no reference attached to eliminate the citation error. |
Example
| date{{LASTYEAR}} = {{Calendar date/infobox|year=last}}
| date{{CURRENTYEAR}} = {{Calendar date/infobox|year=current}}
| date{{NEXTYEAR}} = {{Calendar date/infobox|year=next}}
| date{{NEXTYEAR|2}} = {{Calendar date/infobox|year=next2}}
| The above documentation is transcluded from Template:Calendar date/infobox/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |