Template:Infobox/Timeline/CE: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
m (Text replacement - "dummy edit" to "Category:Infobox templates") Tag: Manual revert |
||
(63 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<div class="infobox | <includeonly><div class="infobox" style="width:300px;padding:3px 6px"> | ||
<!-- | <!--This is the Header image. To be replaced--> | ||
<center>{{#vardefine:i|{{PAGENAME}}}}{{#while: | <div style="text-align:center;margin-bottom:10px">[[File:Timeline logo.jpg|300px|class={{#if:{{{image|}}}|notpageimage}}]]</div> | ||
<!--Year text with before and after.--> | |||
<center>{{#if:{{{previous2|}}}|[[{{{previous2|}}}]] ← | | |||
{{#vardefine:i|{{PAGENAME}}}}{{#while: | |||
|{{#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|{{#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: | ||
|{{#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}}| | |{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}| → [[{{#var:i}}]]{{#vardefine:i|}}}}}} | ||
}}</center> | }}</center> | ||
{{#if:{{{image|}}}|<div style="border-top:1px solid # | <!--Optional image and caption--> | ||
<center>{{#if:{{{caption|}}}|{{{caption | {{#if:{{{image|}}}|<div style="text-align:center;border-top:1px solid #aaa">[[{{{image|}}}|300px]]</div>}} | ||
<center>{{#if:{{{caption|}}}|{{{caption}}}}}</center> | |||
<!--Section that wont appear unless other is used. Be careful editing this.--> | |||
{{#if:{{{other|}}}| | |||
----- | ----- | ||
<div style= | <center>Dates in other dating systems</center> | ||
{{{other|}}}}} | |||
----- | |||
<!--Previous and next years section--> | |||
<div style="text-align:center;column-count:2"> | |||
{{#vardefine:i|{{PAGENAME}}}} | {{#vardefine:i|{{PAGENAME}}}} | ||
{{#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}}| | |{{#vardefine:i|{{#expr:{{#var:i}}-1}}}}{{#ifexist:{{#var:i}}| Previous: | ||
{{#vardefine:p|{{#var:i}}}} | {{#vardefine:p|{{#var:i}}}}{{#while:|{{#if:{{#var:p}}|{{#ifexpr:{{#var:p}}>0|true}}}} | ||
{{#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:p}}]] {{*}} {{#vardefine:p|}}}}}} [[{{#var:i}}]] {{#vardefine:i|}}<br>}}}}}} | ||
{{#vardefine:i|{{PAGENAME}}}} | {{#vardefine:i|{{PAGENAME}}}} | ||
{{#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}}| | |{{#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}}}} | ||
|{{#vardefine:p|{{#expr:{{#var:p}}+1}}}}{{#ifexist:{{#var:p}}|{{*}} [[{{#var:p}}]] {{#vardefine:p|}}<br>}}}}{{#vardefine:i|}} | |{{#vardefine:p|{{#expr:{{#var:p}}+1}}}}{{#ifexist:{{#var:p}}|{{*}} [[{{#var:p}}]] {{#vardefine:p|}}<br>}}}}{{#vardefine:i|}}}}}}}} | ||
</div> | </div> | ||
----- | -----<!--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>---> | |||
<!--Century checker--> | <!--Century checker--> | ||
<div style= | <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> | |||
----- | ----- | ||
<!--Years in | <!--Years in the decade--> | ||
<div style= | <div style="text-align:center">Years in the {{#ifeq:{{#len:{{PAGENAME}}}}|1|0s|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}0s}}<br> | ||
{{#ifexist:{{#sub:{{PAGENAME}}|0| | {{#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}}}} | ||
{{#ifexist:{{#sub:{{PAGENAME}}|0| | | | ||
{{#ifexist:{{#sub:{{PAGENAME}}|0| | {{#if:{{{dyear0|}}}|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}0 {{*}} |{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}0|[[{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}0]] {{*}} |{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}0 {{*}} }}}} {{#if:{{{dyear1|}}}|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}1 {{*}} |{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}1|[[{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}1]] {{*}} |{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}1 {{*}} }}}} {{#if:{{{dyear2|}}}|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}2 {{*}} |{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}2|[[{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}2]] {{*}} |{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}2 {{*}} }}}} {{#if:{{{dyear3|}}}|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}3 {{*}} |{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}3|[[{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}3]] {{*}} |{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}3 {{*}} }}}} {{#if:{{{dyear4|}}}|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}4|{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}4|[[{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}4]]|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}4}}}}<br>{{#if:{{{dyear5|}}}|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}5 {{*}} |{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}5|[[{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}5]] {{*}} |{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}5 {{*}} }}}} {{#if:{{{dyear6|}}}|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}6 {{*}} |{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}6|[[{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}6]] {{*}} |{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}6 {{*}} }}}} {{#if:{{{dyear7|}}}|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}7 {{*}} |{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}7|[[{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}7]] {{*}} |{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}7 {{*}} }}}} {{#if:{{{dyear8|}}}|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}8 {{*}} |{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}8|[[{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}8]] {{*}} |{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}8 {{*}} }}}} {{#if:{{{dyear9|}}}|{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}9|{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}9|[[{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}9]] |{{#sub:{{PAGENAME}}|0|{{#expr:{{#len:{{PAGENAME}}}}-1}}}}9}}}}}}</div> | ||
----- | ----- | ||
<center>''For a complete list, see our [[:Category:Timeline| | <center>''For a complete list, see our [[:Category:Timeline|timeline category]].''</center> | ||
</div>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Year}}}}}</includeonly><noinclude>{{Doc/Template}} __NOTOC__ [[Category:Infobox templates]]</noinclude> |
Latest revision as of 10:11, June 14, 2024
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= }}