Difference between revisions of "Template:Calendar date/infobox/doc"
Jump to navigation
Jump to search
imported>Gonnym |
imported>Gonnym |
||
| Line 5: | Line 5: | ||
== Usage == | == Usage == | ||
| − | + | {{Tlx|{{BASEPAGENAME}}|year{{=}}}} | |
== Parameter list == | == Parameter list == | ||
| Line 31: | Line 31: | ||
</pre> | </pre> | ||
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Time, date and calendar templates]] | [[Category:Time, date and calendar templates]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 14:32, 10 January 2020
| 40px | This is a documentation subpage for Template:Calendar date/infobox. It contains usage information, categories and other content that is not part of the original template page. |
Template:Calendar date/infobox is used on infoboxes, such as {{Infobox holiday}} to add event dates.
Usage
{{Calendar date/infobox|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}}