Difference between revisions of "Template:Yearlist/doc"
m (Created page with 'The '''<nowiki>{{</nowiki>yearlist<nowiki>}}</nowiki>''' template is used in articles about a particular year (such as 3136). It shows the four proceeding years, the four fol…') |
m (Updating) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{documentation subpage}} | ||
The '''<nowiki>{{</nowiki>yearlist<nowiki>}}</nowiki>''' template is used in articles about a particular year (such as [[3136]]). It shows the four proceeding years, the four following years, and automatically indicates to which era the current year belongs. When there is no formally-named [[BattleTech eras|era]] for the particular year the template will display [[Timeline|TIMELINE]]. | The '''<nowiki>{{</nowiki>yearlist<nowiki>}}</nowiki>''' template is used in articles about a particular year (such as [[3136]]). It shows the four proceeding years, the four following years, and automatically indicates to which era the current year belongs. When there is no formally-named [[BattleTech eras|era]] for the particular year the template will display [[Timeline|TIMELINE]]. | ||
Latest revision as of 21:12, 2 March 2023
This is a documentation subpage for Template:Yearlist. It may contain usage information, categories and other content that is not part of the original template page. |
The {{yearlist}} template is used in articles about a particular year (such as 3136). It shows the four proceeding years, the four following years, and automatically indicates to which era the current year belongs. When there is no formally-named era for the particular year the template will display TIMELINE.
The template should be placed at the top of the article.
Contents
Basic Usage[edit]
{{yearlist}}
Example[edit]
When placed in the article about 3136, the template will display:
Dark Age era | |||||||||
3132 | | 3133 | | 3134 | | 3135 | | 3136 | | 3137 | | 3138 | | 3139 | | 3140 |
Advanced Usage[edit]
If needed, the editor can specify exactly which years to show in the template, instead of having the template automatically choose which years to display. To override the years you can include any of the following options:
Overriding years[edit]
{{yearlist | before4 = | before3 = | before2 = | before1 = | year = | after1 = | after2 = | after3 = | after4 = }}
Example[edit]
This text:
{{yearlist | before4 = 1000 | before3 = 1100 | before2 = 2000 | before1 = 2100 | year = 2784 | after1 = 2500 | after2 = 2600 | after3 = 2900 | after4 = 3000 }}
Will display:
How are eras determined?[edit]
The starting and ending dates are taken from the BattleTech eras entry. Discussions about changing the dates should be made on the BattleTech eras' talk page.