Difference between revisions of "Template:Yearlist"

m
(added pre-Star League condition)
Line 1: Line 1:
 
<!--
 
<!--
 +
pre-STAR LEAGUE: earlier than and including 2597
 
STAR LEAGUE: 2598 - 2781  
 
STAR LEAGUE: 2598 - 2781  
 
SUCCESSION WARS: 2782 – 3049
 
SUCCESSION WARS: 2782 – 3049
Line 12: Line 13:
 
       {{#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}} >= 2782 | Succession wars era-BW.jpg | Star league era-BW.jpg }}
+
           {{#ifexpr: {{PAGENAME}} >= 2782 | Succession wars era-BW.jpg |
 +
            {{#ifexpr: {{PAGENAME}} >= 2598 | Star league era-BW.jpg | Madcat.gif }}
 +
          }}
 
         }}  
 
         }}  
 
       }}
 
       }}
Line 21: Line 24:
 
       {{#ifexpr: {{PAGENAME}} >= 3062 | Civil War era |  
 
       {{#ifexpr: {{PAGENAME}} >= 3062 | Civil War era |  
 
         {{#ifexpr: {{PAGENAME}} >= 3050 | Clan Invasion era |  
 
         {{#ifexpr: {{PAGENAME}} >= 3050 | Clan Invasion era |  
           {{#ifexpr: {{PAGENAME}} >= 2782 | Succession Wars era | Star League era }}
+
           {{#ifexpr: {{PAGENAME}} >= 2782 | Succession Wars era |
 +
            {{#ifexpr: {{PAGENAME}} >= 2598 | Star League era | pre-Star League era }}
 +
          }}
 
         }}  
 
         }}  
 
       }}  
 
       }}  

Revision as of 02:41, 7 July 2009

Madcat.gif Timeline
???? | ???? | ???? | ???? | Yearlist | ???? | ???? | ???? | ????
Find all references to year Yearlist

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.


Basic Usage

{{yearlist}}

Example

When placed in the article about 3136, the template will display:

Dark age era-BW.jpg Dark Age era
3132 | 3133 | 3134 | 3135 | 3136 | 3137 | 3138 | 3139 | 3140
Find all references to year 3136


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

{{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:

Madcat.gif Timeline
1000 | 1100 | 2000 | 2100 | 2784 | 2500 | 2600 | 2900 | 3000
Find all references to year Yearlist


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 this talk page or the BattleTech eras talk page.