Template:Yearnav: Difference between revisions

From Halopedia, the Halo wiki

m (Might be useful not to have it in bold so it doesn't compete for attention with the year links and such. Let's see how this looks.)
mNo edit summary
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="width:300px; border:1px solid #999; border-radius:.5em 0 0 .5em; padding:2px 6px 6px 6px; float:right; margin:4px 2px; margin-right:0px; background:#FFF;" class="forum">
<div class="infobox" style="width:300px;padding:3px 6px">
<center>'''{{PAGENAME}}'''</center>
<center>'''{{PAGENAME}}'''</center>
{{#if:{{{image|}}}|<div style="border-top:1px solid #aaaaaa;">[[{{{image|}}}|300px]]</div>}}
{{#if:{{{image|}}}|<div style="text-align:center;border-top:1px solid #aaa">[[{{{image|}}}|300px]]</div>}}
<center>{{#if:{{{caption|}}}|{{{caption|}}}}}</center>
<center>{{#if:{{{caption|}}}|{{{caption}}}}}</center>
-----
<center>{{#if:{{{century|}}}|'''[[:Category:{{{century|}}}|{{{century|}}}]]'''<includeonly>[[Category:{{{century|}}}]]</includeonly>}}</center>
<center>{{#if:{{{century|}}}|'''[[:Category:{{{century|}}}|{{{century|}}}]]'''<includeonly>[[Category:{{{century|}}}]]</includeonly>}}</center>
{{#if:{{{previous1|}}}|'''Previous: [[{{{previous1|}}}]]'''}} {{#if:{{{previous2|}}}|• '''[[{{{previous2|}}}]]'''}}
{{#if:{{{previous1|}}}|'''Previous: [[{{{previous1|}}}]]'''}} {{#if:{{{previous2|}}}|• '''[[{{{previous2|}}}]]'''}}
Line 8: Line 9:
{{#if:{{{next1|}}}|'''Next: [[{{{next1|}}}]]'''}} {{#if:{{{next2|}}}|• '''[[{{{next2|}}}]]'''}}
{{#if:{{{next1|}}}|'''Next: [[{{{next1|}}}]]'''}} {{#if:{{{next2|}}}|• '''[[{{{next2|}}}]]'''}}
-----
-----
<center>''For a complete list, see our [[:Category:Timeline|Timeline directory]].''</center></div>
<center>''For a complete list, see our [[:Category:Timeline|timeline category]].''</center></div><noinclude>
<noinclude>
==Use==
==Use==
*<code>|century=</code> - Specifying this will categorize the article. For a year like 97,445 BCE, use <code>|century=BCE</code>.
*<code>|century=</code> - Specifying this will categorize the article. For a year like 97,445 BCE, use <code>|century=BCE</code>.
*<code>|image=</code> - This field is '''optional''' and does not need to be filled in.
*<code>|image=</code> - This field is '''optional''' and does not need to be filled in.
*<code>|caption=</code> - Use this field for a description if an image is used.  
*<code>|caption=</code> - Use this field for a description if an image is used.
 
Follow the below example for all articles:
Follow the below example for all articles:
;For 2552
;For 2552
Line 27: Line 28:
}}
}}
</pre>
</pre>
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 09:28, February 6, 2024

Yearnav



For a complete list, see our timeline category.

Use

  • |century= - Specifying this will categorize the article. For a year like 97,445 BCE, use |century=BCE.
  • |image= - This field is optional and does not need to be filled in.
  • |caption= - Use this field for a description if an image is used.

Follow the below example for all articles:

For 2552
{{Yearnav
|image=File:Example.png
|caption=Lorem ipsum...
|century=26th century
|previous1=2550
|previous2=2551
|next1=2553
|next2=2554
}}