Template:Infobox/Timeline/CE: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - ":'''" to "''':")
m (Text replacement - "'''" to "")
Line 9: Line 9:
|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}>0|true}}}}
|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}>0|true}}}}
|{{#vardefine:i|{{#expr:{{#var:i}}-1}}}}{{#ifexist:{{#var:i}}|[[{{#var:i}}]] ← {{#vardefine:i|}}}}
|{{#vardefine:i|{{#expr:{{#var:i}}-1}}}}{{#ifexist:{{#var:i}}|[[{{#var:i}}]] ← {{#vardefine:i|}}}}
}}}} '''<span style="font-size:180%">{{PAGENAME}}</span>''' {{#if:{{{next1|}}}| → [[{{{next1|}}}]]|{{#vardefine:i|{{PAGENAME}}}}{{#while:
}}}} <span style="font-size:180%">{{PAGENAME}}</span> {{#if:{{{next1|}}}| → [[{{{next1|}}}]]|{{#vardefine:i|{{PAGENAME}}}}{{#while:
|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}<3000|true}}}}
|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}<3000|true}}}}
|{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}| → [[{{#var:i}}]]{{#vardefine:i|}}}}}}
|{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}| → [[{{#var:i}}]]{{#vardefine:i|}}}}}}
Line 19: Line 19:
{{#if:{{{other|}}}|
{{#if:{{{other|}}}|
-----
-----
<center>'''Dates in other dating systems'''</center>
<center>Dates in other dating systems</center>
{{{other|}}}}}
{{{other|}}}}}
-----
-----
Line 25: Line 25:
<div style="text-align:center;column-count:2">
<div style="text-align:center;column-count:2">
{{#vardefine:i|{{PAGENAME}}}}
{{#vardefine:i|{{PAGENAME}}}}
{{#if:{{{previous2|}}}|'''Previous''': [[{{{previous1|}}}]] {{*}} [[{{{previous2|}}}]]|{{#while:|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}>0|true}}}}
{{#if:{{{previous2|}}}|Previous: [[{{{previous1|}}}]] {{*}} [[{{{previous2|}}}]]|{{#while:|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}>0|true}}}}
|{{#vardefine:i|{{#expr:{{#var:i}}-1}}}}{{#ifexist:{{#var:i}}| '''Previous''':
|{{#vardefine:i|{{#expr:{{#var:i}}-1}}}}{{#ifexist:{{#var:i}}| Previous:
{{#vardefine:p|{{#var:i}}}}{{#while:|{{#if:{{#var:p}}|{{#ifexpr:{{#var:p}}>0|true}}}}
{{#vardefine:p|{{#var:i}}}}{{#while:|{{#if:{{#var:p}}|{{#ifexpr:{{#var:p}}>0|true}}}}
|{{#vardefine:p|{{#expr:{{#var:p}}-1}}}}{{#ifexist:{{#var:p}}
|{{#vardefine:p|{{#expr:{{#var:p}}-1}}}}{{#ifexist:{{#var:p}}
|[[{{#var:p}}]] {{*}} {{#vardefine:p|}}}}}} [[{{#var:i}}]] {{#vardefine:i|}}<br>}}}}}}
|[[{{#var:p}}]] {{*}} {{#vardefine:p|}}}}}} [[{{#var:i}}]] {{#vardefine:i|}}<br>}}}}}}
{{#vardefine:i|{{PAGENAME}}}}
{{#vardefine:i|{{PAGENAME}}}}
{{#if:{{{next1|}}}|'''Next''': [[{{{next1|}}}]] {{*}} [[{{{next2|}}}]]|{{#while:|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}<3000|true}}}}
{{#if:{{{next1|}}}|Next: [[{{{next1|}}}]] {{*}} [[{{{next2|}}}]]|{{#while:|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}<3000|true}}}}
|{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}| '''Next''': [[{{#var:i}}]] {{#vardefine:p|{{#var:i}}}}
|{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}| Next: [[{{#var:i}}]] {{#vardefine:p|{{#var:i}}}}
{{#while:
{{#while:
|{{#if:{{#var:p}}|{{#ifexpr:{{#var:p}}<3000|true}}}}
|{{#if:{{#var:p}}|{{#ifexpr:{{#var:p}}<3000|true}}}}
Line 38: Line 38:
</div>
</div>
-----<!--Millennium checker (Commented out due to it not being used, very easy to tweek and add back in where applicable)-->
-----<!--Millennium checker (Commented out due to it not being used, very easy to tweek and add back in where applicable)-->
<!---<div style="text-align:center">'''Millennium'''<br>{{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1000}} | [[1st millennium]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2000}} | [[2nd millennium]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=3000}} | [[3rd millennium]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=4000}} | [[4th millennium]] | Far future}}}}}}}}<br>--->
<!---<div style="text-align:center">Millennium<br>{{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1000}} | [[1st millennium]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2000}} | [[2nd millennium]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=3000}} | [[3rd millennium]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=4000}} | [[4th millennium]] | Far future}}}}}}}}<br>--->
<!--Century checker-->
<!--Century checker-->
<div style="text-align:center">
<div style="text-align:center">
'''Century'''<br>{{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=100}} | [[Category:CE]][[:Category:CE|1st century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=200}} | [[Category:CE]][[:Category:CE|2nd century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=300}} | [[Category:CE]][[:Category:CE|3rd century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=400}} | [[Category:CE]][[:Category:CE|4th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=500}} | [[Category:CE]][[:Category:CE|5th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=600}} | [[Category:CE]][[:Category:CE|6th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=700}} | [[Category:CE]][[:Category:CE|7th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=800}} | [[Category:CE]][[:Category:CE|8th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=900}} | [[Category:CE]][[:Category:CE|9th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1000}} | [[Category:CE]][[:Category:CE|10th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1100}} | [[Category:CE]][[:Category:CE|11th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1200}} | [[Category:CE]][[:Category:CE|12th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1300}} | [[Category:CE]][[:Category:CE|13th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1400}} | [[Category:CE]][[:Category:CE|14th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1500}} | [[Category:CE]][[:Category:CE|15th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1600}} | [[Category:CE]][[:Category:CE|16th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1700}} | [[Category:CE]][[:Category:CE|17th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1800}} | [[Category:CE]][[:Category:CE|18th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1900}} | [[Category:CE]][[:Category:CE|19th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2000}} | [[Category:20th century]][[:Category:20th century|20th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2100}} | [[Category:21st century]][[:Category:21st century|21st century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2200}} | [[Category:22nd century]][[:Category:22nd century|22nd century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2300}} | [[Category:23rd century]][[:Category:23rd century|23rd century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2400}} | [[Category:24th century]][[:Category:24th century|24th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2500}} | [[Category:25th century]][[:Category:25th century|25th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2600}} | [[Category:26th century]][[:Category:26th century|26th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2700}} | [[Category:27th century]][[:Category:27th century|27th century]] | [[Category:Far future]][[:Category:Far future|Far future]]}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}<br></div>
Century<br>{{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=100}} | [[Category:CE]][[:Category:CE|1st century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=200}} | [[Category:CE]][[:Category:CE|2nd century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=300}} | [[Category:CE]][[:Category:CE|3rd century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=400}} | [[Category:CE]][[:Category:CE|4th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=500}} | [[Category:CE]][[:Category:CE|5th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=600}} | [[Category:CE]][[:Category:CE|6th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=700}} | [[Category:CE]][[:Category:CE|7th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=800}} | [[Category:CE]][[:Category:CE|8th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=900}} | [[Category:CE]][[:Category:CE|9th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1000}} | [[Category:CE]][[:Category:CE|10th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1100}} | [[Category:CE]][[:Category:CE|11th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1200}} | [[Category:CE]][[:Category:CE|12th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1300}} | [[Category:CE]][[:Category:CE|13th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1400}} | [[Category:CE]][[:Category:CE|14th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1500}} | [[Category:CE]][[:Category:CE|15th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1600}} | [[Category:CE]][[:Category:CE|16th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1700}} | [[Category:CE]][[:Category:CE|17th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1800}} | [[Category:CE]][[:Category:CE|18th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=1900}} | [[Category:CE]][[:Category:CE|19th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2000}} | [[Category:20th century]][[:Category:20th century|20th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2100}} | [[Category:21st century]][[:Category:21st century|21st century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2200}} | [[Category:22nd century]][[:Category:22nd century|22nd century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2300}} | [[Category:23rd century]][[:Category:23rd century|23rd century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2400}} | [[Category:24th century]][[:Category:24th century|24th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2500}} | [[Category:25th century]][[:Category:25th century|25th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2600}} | [[Category:26th century]][[:Category:26th century|26th century]] | {{#ifeq: 1 | {{#expr:{{#sub:{{PAGENAME}}|0|4}}<=2700}} | [[Category:27th century]][[:Category:27th century|27th century]] | [[Category:Far future]][[:Category:Far future|Far future]]}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}<br></div>
-----
-----
<!--Years in the decade-->
<!--Years in the decade-->
<div style="text-align:center">'''Years in the {{#ifeq:{{#len:{{PAGENAME}}}}|1|0s|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}0s}}'''<br>
<div style="text-align:center">Years in the {{#ifeq:{{#len:{{PAGENAME}}}}|1|0s|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}0s}}<br>
{{#ifeq:{{#len:{{PAGENAME}}}}|1|{{#if:{{{dyear1|}}}|1 {{*}} |{{#ifexist:1|[[1]] {{*}} |1 {{*}} }}}} {{#if:{{{dyear2|}}}|2 {{*}} |{{#ifexist:2|[[2]] {{*}} |2 {{*}} }}}} {{#if:{{{dyear3|}}}|3 {{*}} |{{#ifexist:3|[[3]] {{*}} |3 {{*}} }}}} {{#if:{{{dyear4|}}}|4|{{#ifexist:4|[[4]]|4}}}}<br>{{#if:{{{dyear5|}}}|5 {{*}} |{{#ifexist:5|[[5]] {{*}} |5 {{*}} }}}} {{#if:{{{dyear6|}}}|6 {{*}} |{{#ifexist:6|[[6]] {{*}} |6 {{*}} }}}} {{#if:{{{dyear7|}}}|7 {{*}} |{{#ifexist:7|[[7]] {{*}} |7 {{*}} }}}} {{#if:{{{dyear8|}}}|8 {{*}} |{{#ifexist:8|[[8]] {{*}} |8 {{*}} }}}} {{#if:{{{dyear9|}}}|9|{{#ifexist:9|[[9]] |9}}}}
{{#ifeq:{{#len:{{PAGENAME}}}}|1|{{#if:{{{dyear1|}}}|1 {{*}} |{{#ifexist:1|[[1]] {{*}} |1 {{*}} }}}} {{#if:{{{dyear2|}}}|2 {{*}} |{{#ifexist:2|[[2]] {{*}} |2 {{*}} }}}} {{#if:{{{dyear3|}}}|3 {{*}} |{{#ifexist:3|[[3]] {{*}} |3 {{*}} }}}} {{#if:{{{dyear4|}}}|4|{{#ifexist:4|[[4]]|4}}}}<br>{{#if:{{{dyear5|}}}|5 {{*}} |{{#ifexist:5|[[5]] {{*}} |5 {{*}} }}}} {{#if:{{{dyear6|}}}|6 {{*}} |{{#ifexist:6|[[6]] {{*}} |6 {{*}} }}}} {{#if:{{{dyear7|}}}|7 {{*}} |{{#ifexist:7|[[7]] {{*}} |7 {{*}} }}}} {{#if:{{{dyear8|}}}|8 {{*}} |{{#ifexist:8|[[8]] {{*}} |8 {{*}} }}}} {{#if:{{{dyear9|}}}|9|{{#ifexist:9|[[9]] |9}}}}
|
|

Revision as of 17:58, September 15, 2022

vde
Template Documentation

Usage

This info/navigation box is for use on the top page of a year page without BCE at the end of it. So any year starting at hypothetical 1 to 2610.

Instructions

Cut and paste the following code into your article, then put the relevant specifications after the "=" signs.

General

These are fields that will appear regardless.

  • image (This is a image/images/tabber containing images of the weapon)
  • caption (This is the caption of the image/images/tabber containing images of the year)

Dates in other dating systems

This is information tied to other dating systems used in Halo. If a species or group uses a dating system; for example the Covenant Ages, we can put it in.

  • other

Previous and Next

These allow manual control over what the previous and next display. Mostly used if the template is unable to process too many features; and to connect to the BCE years. If these fields are not entered, the relevant fields will fill automatically unless an error occurs.

  • previous1 (this is usually two years pages before the current. If the year is 2552, then this will be 2550)
  • previous2 (this is usually one years pages before the current. If the year is 2552, then this will be 2551)
  • next1 (this is usually one year after the current. If the year is 2552, then this will be 2553)
  • next2 (this is usually two years after the current. If the year is 2552, then this will be 2554)

All the years in the

These fields are here to disable year links in a decade. Mostly these are used if the link leads to a real life page instead of a fictional one.

  • dyear0 - Used to disable the start of a decade (example 2000)
  • dyear1 - Used to disable XXX1 of a decade (example 2001)
  • dyear2 - Used to disable XXX2 of a decade (example 2002)
  • dyear3 - Used to disable XXX3 of a decade (example 2003)
  • dyear4 - Used to disable XXX4 of a decade (example 2004)
  • dyear5 - Used to disable XXX5 of a decade (example 2005)
  • dyear6 - Used to disable XXX6 of a decade (example 2006)
  • dyear7 - Used to disable XXX7 of a decade (example 2007)
  • dyear8 - Used to disable XXX8 of a decade (example 2008)
  • dyear9 - Used to disable XXX9 of a decade (example 2009)

Layout

Please use this layout

{{Infobox/Timeline/CE
|image=
|caption=
|other=
}}
Version 1 of the timeline image

#if: Infobox/Timeline/CE #if:


Century
#ifeq: 1

Years in the #ifeq:13
#ifeq:13

For a complete list, see our timeline category.