Changes

Jump to navigation Jump to search
no edit summary
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

=== Usage ===

This template converts a single year into an en-dashed range, abbreviating the second year to two digits whenever possible.
* <nowiki>{{</nowiki>{{BASEPAGENAME}}|2009}} gives {{{{BASEPAGENAME}}|2009}}
* <nowiki>{{</nowiki>{{BASEPAGENAME}}|1999}} gives {{{{BASEPAGENAME}}|1999}}
* <nowiki>{{</nowiki>{{BASEPAGENAME}}|2009|2019}} gives {{{{BASEPAGENAME}}|2009|2019}}
* <nowiki>{{</nowiki>{{BASEPAGENAME}}|1999|2009}} gives {{{{BASEPAGENAME}}|1999|2009}}
* <nowiki>{{</nowiki>{{BASEPAGENAME}}|2009|range=10}} gives {{{{BASEPAGENAME}}|2009|range=10}}
* <nowiki>{{</nowiki>{{BASEPAGENAME}}|1999|range=10}} gives {{{{BASEPAGENAME}}|1999|range=10}}

<includeonly>
[[Category:Date-computing templates|{{PAGENAME}}]]
</includeonly>
<templatedata>
{
"params": {
"1": {
"label": "Start year",
"description": "Year the date range began",
"example": "1420",
"type": "number",
"required": true
},
"2": {
"label": "End year",
"description": "Year the date range ended",
"example": "2069",
"type": "number",
"suggested": true
},
"range": {
"label": "Duration",
"description": "Length in years of the year range",
"example": "10",
"type": "number",
"suggested": true
},
"notrunc": {
"description": "If nonempty, disables truncation of years",
"example": "on",
"type": "string"
}
},
"description": "Creates a dashed year range, either from start year to end year (if specified), start year + duration (if specified), or start year + 1 (if neither is specified)"
}
</templatedata>
Anonymous user

Navigation menu