Difference between revisions of "Template:Yearlist"
Sarna News
- HEXTECH Review - Wave 3 Brings More Urban Options To Your Battlefield
- Your BattleTech News Round-Up For March, 2024
- Crashing 'Mechs With Jennifer Brozek, Author Of The Rogue Academy Trilogy
- Getting The Word Out With Rem Alternis, Catalyst Community & Marketing Director
- Bad 'Mechs - Yeoman
- Read more →
m (Correcting the starting dates of the eras as defined by CGL) |
|||
(One intermediate revision by one other user not shown) | |||
Line 24: | Line 24: | ||
}} | }} | ||
}} | Madcat.gif }}|50px]] | }} | Madcat.gif }}|50px]] | ||
− | | colspan="9" style="border-bottom:1px solid #000; font-size:120%; font-weight:bold; text-align:center; text-transform:uppercase" | [[ | + | | colspan="9" style="border-bottom:1px solid #000; font-size:120%; font-weight:bold; text-align:center; text-transform:uppercase" | [[{{#iferror: {{#ifexpr: {{PAGENAME}} >= 3152 | ilClan era | |
− | {{#iferror: {{#ifexpr: {{PAGENAME}} >= 3152 | ilClan era | | ||
{{#ifexpr: {{PAGENAME}} >= 3082 | Dark Age era | | {{#ifexpr: {{PAGENAME}} >= 3082 | Dark Age era | | ||
{{#ifexpr: {{PAGENAME}} >= 3067 | Jihad era | | {{#ifexpr: {{PAGENAME}} >= 3067 | Jihad era | | ||
Line 51: | Line 50: | ||
|} | |} | ||
</div> | </div> | ||
− | <div style="font-size:smaller; text-align:center">Find all references to year [[Special:Whatlinkshere/{{PAGENAME}}|{{PAGENAME}}]] - See | + | <div style="font-size:smaller; text-align:center">Find all references to year [[Special:Whatlinkshere/{{PAGENAME}}|{{PAGENAME}}]] - '''One link per entry''' (See [[Policy:Year Pages|Years Policy]]) </div> [[Category:Years]] |
<noinclude> | <noinclude> | ||
{{/doc}} | {{/doc}} | ||
</noinclude> | </noinclude> |
Revision as of 15:20, 14 June 2021
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
{{yearlist}}
Example
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
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
{{yearlist | before4 = | before3 = | before2 = | before1 = | year = | after1 = | after2 = | after3 = | after4 = }}
Example
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?
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.