Editing Template:Yearlist
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision
Your text
Line 1:
Line 1:
<!-- <!--
− pre-STAR LEAGUE: earlier than and including 2004+ STAR LEAGUE: 2598 - 2781
− STAR LEAGUE: 2005 - 2780 + SUCCESSION WARS: 2782 – 3049
− SUCCESSION WARS: 2781 – 3049
CLAN INVASION: 3050 – 3061 CLAN INVASION: 3050 – 3061
− CIVIL WAR: 3062 – 3067 + CIVIL WAR: 3062 – 3066
− JIHAD: 3068 – 3081 + JIHAD: 3067 – 3081
− DARK AGE: 3082 - 3152+ republic of the sphere (not formally named): 3082 - 3131
− IlClan: 3152 - ????+ DARK AGE: 3132 - current
//--> //-->
− <div class='text-align: center'>
{| align="center" cellspacing="3" style="border:2px solid #000" {| align="center" cellspacing="3" style="border:2px solid #000"
− | rowspan="2" style="padding:0 3px 0 2px" | [[Image:{{#iferror: {{#ifexpr: {{PAGENAME}} >= 3152 | ILClan_Era.jpg | + | rowspan="2" style="padding:0 3px 0 2px" | [[Image:{{#iferror: {{#ifexpr: {{PAGENAME}} >= 3132 | Dark age era-BW.jpg |
− {{#ifexpr: {{PAGENAME}} >= 3082 | Dark age era-BW.jpg | + {{#ifexpr: {{PAGENAME}} >= 3082 | Madcat.gif |
{{#ifexpr: {{PAGENAME}} >= 3067 | Jihad era-BW.jpg | {{#ifexpr: {{PAGENAME}} >= 3067 | Jihad era-BW.jpg |
{{#ifexpr: {{PAGENAME}} >= 3062 | Civil war era-BW.jpg | {{#ifexpr: {{PAGENAME}} >= 3062 | Civil war era-BW.jpg |
{{#ifexpr: {{PAGENAME}} >= 3050 | Clan invasion era-BW.jpg | {{#ifexpr: {{PAGENAME}} >= 3050 | Clan invasion era-BW.jpg |
− {{#ifexpr: {{PAGENAME}} >= 2781 | Succession wars era-BW.jpg | + {{#ifexpr: {{PAGENAME}} >= 2782 | Succession wars era-BW.jpg | Star league era-BW.jpg }}
− {{#ifexpr: {{PAGENAME}} >= 2005 | Star league era-BW.jpg | Madcat.gif }}
− }}
}} }}
− }} + }}
− }} + }}
− }} + }}
}} | 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" | [[{{#iferror: {{#ifexpr: {{PAGENAME}} >= 3152 | ilClan era | + | colspan="9" style="border-bottom:1px solid #000; font-size:120%; font-weight:bold; text-align:center; text-transform:uppercase" | [[{{#iferror: {{#ifexpr: {{PAGENAME}} >= 3132 | Dark Age era |
− {{#ifexpr: {{PAGENAME}} >= 3082 | Dark Age era | + {{#ifexpr: {{PAGENAME}} >= 3082 | Timeline |
{{#ifexpr: {{PAGENAME}} >= 3067 | Jihad era | {{#ifexpr: {{PAGENAME}} >= 3067 | Jihad era |
− {{#ifexpr: {{PAGENAME}} >= 3062 | Civil War era | + {{#ifexpr: {{PAGENAME}} >= 3062 | Civil Ware era |
{{#ifexpr: {{PAGENAME}} >= 3050 | Clan Invasion era | {{#ifexpr: {{PAGENAME}} >= 3050 | Clan Invasion era |
− {{#ifexpr: {{PAGENAME}} >= 2781 | Succession Wars era | + {{#ifexpr: {{PAGENAME}} >= 2782 | Succession Wars era | Star League era }}
− {{#ifexpr: {{PAGENAME}} >= 2005 | Star League era | pre-Star League era }}
− }}
}} }}
}} }}
− }} + }}
− }} + }}
}} | Timeline }}]] }} | Timeline }}]]
|- |-
Line 49:
Line 43:
|- |-
|} |}
− </div>+ <div style="font-size:smaller; margin:0 0 10px 27em; text-align:center">Find all references to year [[Special:Whatlinkshere/{{PAGENAME}}|{{PAGENAME}}]]</div>[[Category:Years]]
− <div style="font-size:smaller; text-align:center">Find all references to year [[Special:Whatlinkshere/{{PAGENAME}}|{{PAGENAME}}]] - '''One link per entry''' (See [[Guideline:Year Pages|Years Policy]]) </div> [[Category:Years]]
<noinclude> <noinclude>
− {{Documentation}} + 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 template should be placed at the top of the article.
+
+
+ == Basic Usage ==
+ <pre>
+ {{yearlist}}
+ </pre>
+
+ === Example ===
+ When placed in the article about [[3136]], the template will display:
+
+ {| align="center" cellspacing="3" style="border:2px solid #000"
+ | rowspan="2" style="padding:0 3px 0 2px" | [[Image:Dark age era-BW.jpg|50px]]
+ | colspan="9" style="border-bottom:1px solid #000; font-size:120%; font-weight:bold; text-align:center; text-transform:uppercase" | [[Dark Age era]]
+ |-
+ | [[3132]] |
+ | [[3133]] |
+ | [[3134]] |
+ | [[3135]] |
+ | style="font-size:130%; font-weight:bold" | 3136
+ | | | [[3137]] |
+ | [[3138]] |
+ | [[3139]] |
+ | [[3140]]
+ |}
+ <div style="font-size:smaller; margin:0 0 10px 27em; text-align:center">Find all references to year [[3136]]</div>
+
+
+ == Advanced Usage ==
+ If needed, the author 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 ===
+ <pre>
+ {{yearlist
+ | before4 =
+ | before3 =
+ | before2 =
+ | before1 =
+ | year =
+ | after1 =
+ | after2 =
+ | after3 =
+ | after4 =
+ }}
+ </pre>
+
+ === Example ===
+ This text:
+ <pre>
+ {{yearlist
+ | before4 = 1000
+ | before3 = 1100
+ | before2 = 2000
+ | before1 = 2100
+ | year = 2784
+ | after1 = 2500
+ | after2 = 2600
+ | after3 = 2900
+ | after4 = 3000
+ }}
+ </pre>
+
+ Will display:
+ {{yearlist
+ | before4 = 1000
+ | before3 = 1100
+ | before2 = 2000
+ | before1 = 2100
+ | year = 2784
+ | after1 = 2500
+ | after2 = 2600
+ | after3 = 2900
+ | after4 = 3000
+ }}
+
+
+ [[Category:Templates]]
</noinclude> </noinclude>
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
− | + | STAR LEAGUE: 2598 - 2781 | |
− | + | SUCCESSION WARS: 2782 – 3049 | |
− | SUCCESSION WARS: | ||
CLAN INVASION: 3050 – 3061 | CLAN INVASION: 3050 – 3061 | ||
− | CIVIL WAR: 3062 – | + | CIVIL WAR: 3062 – 3066 |
− | JIHAD: | + | JIHAD: 3067 – 3081 |
− | + | republic of the sphere (not formally named): 3082 - 3131 | |
− | + | DARK AGE: 3132 - current | |
//--> | //--> | ||
− | |||
{| align="center" cellspacing="3" style="border:2px solid #000" | {| align="center" cellspacing="3" style="border:2px solid #000" | ||
− | | rowspan="2" style="padding:0 3px 0 2px" | [[Image:{{#iferror: {{#ifexpr: {{PAGENAME}} >= | + | | rowspan="2" style="padding:0 3px 0 2px" | [[Image:{{#iferror: {{#ifexpr: {{PAGENAME}} >= 3132 | Dark age era-BW.jpg | |
− | {{#ifexpr: {{PAGENAME}} >= 3082 | | + | {{#ifexpr: {{PAGENAME}} >= 3082 | Madcat.gif | |
{{#ifexpr: {{PAGENAME}} >= 3067 | Jihad era-BW.jpg | | {{#ifexpr: {{PAGENAME}} >= 3067 | Jihad era-BW.jpg | | ||
{{#ifexpr: {{PAGENAME}} >= 3062 | Civil war era-BW.jpg | | {{#ifexpr: {{PAGENAME}} >= 3062 | Civil war era-BW.jpg | | ||
{{#ifexpr: {{PAGENAME}} >= 3050 | Clan invasion era-BW.jpg | | {{#ifexpr: {{PAGENAME}} >= 3050 | Clan invasion era-BW.jpg | | ||
− | {{#ifexpr: {{PAGENAME}} >= | + | {{#ifexpr: {{PAGENAME}} >= 2782 | Succession wars era-BW.jpg | Star league era-BW.jpg }} |
− | |||
− | |||
}} | }} | ||
− | }} | + | }} |
− | }} | + | }} |
− | }} | + | }} |
}} | 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" | [[{{#iferror: {{#ifexpr: {{PAGENAME}} >= | + | | colspan="9" style="border-bottom:1px solid #000; font-size:120%; font-weight:bold; text-align:center; text-transform:uppercase" | [[{{#iferror: {{#ifexpr: {{PAGENAME}} >= 3132 | Dark Age era | |
− | {{#ifexpr: {{PAGENAME}} >= 3082 | | + | {{#ifexpr: {{PAGENAME}} >= 3082 | Timeline | |
{{#ifexpr: {{PAGENAME}} >= 3067 | Jihad era | | {{#ifexpr: {{PAGENAME}} >= 3067 | Jihad era | | ||
− | {{#ifexpr: {{PAGENAME}} >= 3062 | Civil | + | {{#ifexpr: {{PAGENAME}} >= 3062 | Civil Ware era | |
{{#ifexpr: {{PAGENAME}} >= 3050 | Clan Invasion era | | {{#ifexpr: {{PAGENAME}} >= 3050 | Clan Invasion era | | ||
− | {{#ifexpr: {{PAGENAME}} >= | + | {{#ifexpr: {{PAGENAME}} >= 2782 | Succession Wars era | Star League era }} |
− | |||
− | |||
}} | }} | ||
}} | }} | ||
− | }} | + | }} |
− | }} | + | }} |
}} | Timeline }}]] | }} | Timeline }}]] | ||
|- | |- | ||
Line 49: | Line 43: | ||
|- | |- | ||
|} | |} | ||
− | + | <div style="font-size:smaller; margin:0 0 10px 27em; text-align:center">Find all references to year [[Special:Whatlinkshere/{{PAGENAME}}|{{PAGENAME}}]]</div>[[Category:Years]] | |
− | <div style="font-size:smaller; text-align:center">Find all references to year [[Special:Whatlinkshere/{{PAGENAME}}|{{PAGENAME}}]] | ||
<noinclude> | <noinclude> | ||
− | {{ | + | 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 template should be placed at the top of the article. | ||
+ | |||
+ | |||
+ | == Basic Usage == | ||
+ | <pre> | ||
+ | {{yearlist}} | ||
+ | </pre> | ||
+ | |||
+ | === Example === | ||
+ | When placed in the article about [[3136]], the template will display: | ||
+ | |||
+ | {| align="center" cellspacing="3" style="border:2px solid #000" | ||
+ | | rowspan="2" style="padding:0 3px 0 2px" | [[Image:Dark age era-BW.jpg|50px]] | ||
+ | | colspan="9" style="border-bottom:1px solid #000; font-size:120%; font-weight:bold; text-align:center; text-transform:uppercase" | [[Dark Age era]] | ||
+ | |- | ||
+ | | [[3132]] | | ||
+ | | [[3133]] | | ||
+ | | [[3134]] | | ||
+ | | [[3135]] | | ||
+ | | style="font-size:130%; font-weight:bold" | 3136 | ||
+ | | | | [[3137]] | | ||
+ | | [[3138]] | | ||
+ | | [[3139]] | | ||
+ | | [[3140]] | ||
+ | |} | ||
+ | <div style="font-size:smaller; margin:0 0 10px 27em; text-align:center">Find all references to year [[3136]]</div> | ||
+ | |||
+ | |||
+ | == Advanced Usage == | ||
+ | If needed, the author 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 === | ||
+ | <pre> | ||
+ | {{yearlist | ||
+ | | before4 = | ||
+ | | before3 = | ||
+ | | before2 = | ||
+ | | before1 = | ||
+ | | year = | ||
+ | | after1 = | ||
+ | | after2 = | ||
+ | | after3 = | ||
+ | | after4 = | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | === Example === | ||
+ | This text: | ||
+ | <pre> | ||
+ | {{yearlist | ||
+ | | before4 = 1000 | ||
+ | | before3 = 1100 | ||
+ | | before2 = 2000 | ||
+ | | before1 = 2100 | ||
+ | | year = 2784 | ||
+ | | after1 = 2500 | ||
+ | | after2 = 2600 | ||
+ | | after3 = 2900 | ||
+ | | after4 = 3000 | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | Will display: | ||
+ | {{yearlist | ||
+ | | before4 = 1000 | ||
+ | | before3 = 1100 | ||
+ | | before2 = 2000 | ||
+ | | before1 = 2100 | ||
+ | | year = 2784 | ||
+ | | after1 = 2500 | ||
+ | | after2 = 2600 | ||
+ | | after3 = 2900 | ||
+ | | after4 = 3000 | ||
+ | }} | ||
+ | |||
+ | |||
+ | [[Category:Templates]] | ||
</noinclude> | </noinclude> |