Template:Yearbox: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
Changing box border color to black instead of red
m removing category
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{| class="yearbox" style="border: 1px solid #BBB; margin: auto; padding: 0.5em"
<includeonly>
|-
<table style="border:1px solid #BBB; margin:auto ">
| colspan="11" style="text-align:center;" |[[World of Greyhawk Timeline]] {{#ifexpr:                          {{{year|}}} < -5515 | &bull; [[Age Before Ages]] }} {{#ifexpr: {{{year|}}} >= -5515 and {{{year|}}} < -484  | &bull; [[Age of Glory]] }} {{#ifexpr: {{{year|}}} >= -484  and {{{year|}}} <  1    | &bull; [[Great Migrations]] }} {{#ifexpr: {{{year|}}} >= 1    and {{{year|}}} < 601  | &bull; [[Common Era]] }} {{#ifexpr: {{{year|}}} >= -213  and {{{year|}}} < 601  | &bull; [[Age of Great Sorrow]] }}  {{#ifexpr: {{{year|}}} >= 582 and {{{year|}}} <=  584  | &bull; [[Greyhawk Wars]] }} {{#ifexpr: {{{year|}}} >= 601                          | &bull; [[Future events]] }}
<tr><td style=" -webkit-flex:auto; -ms-flex:auto; flex:auto;"><!--Empty--></td></tr>
|- style="text-align: center;"
<tr><td class="yearbox">
| [[{{#invoke:Date|Add|year={{{year|}}}|delta=-5}} CY|{{#invoke:Date|Add|year={{{year|}}}|delta=-5}}]]
{|
| [[{{#invoke:Date|Add|year={{{year|}}}|delta=-4}} CY|{{#invoke:Date|Add|year={{{year|}}}|delta=-4}}]]
| [[{{#invoke:Date|Add|year={{{year|}}}|delta=-3}} CY|{{#invoke:Date|Add|year={{{year|}}}|delta=-3}}]]
| [[{{#invoke:Date|Add|year={{{year|}}}|delta=-2}} CY|{{#invoke:Date|Add|year={{{year|}}}|delta=-2}}]]
| [[{{#invoke:Date|Add|year={{{year|}}}|delta=-1}} CY|{{#invoke:Date|Add|year={{{year|}}}|delta=-1}}]]
| style="border:1px black solid; font-size: 1.1em" | '''{{{year|}}} CY'''</span>
| [[{{#invoke:Date|Add|year={{{year|}}}|delta=1}} CY|{{#invoke:Date|Add|year={{{year|}}}|delta=1}}]]
| [[{{#invoke:Date|Add|year={{{year|}}}|delta=2}} CY|{{#invoke:Date|Add|year={{{year|}}}|delta=2}}]]
| [[{{#invoke:Date|Add|year={{{year|}}}|delta=3}} CY|{{#invoke:Date|Add|year={{{year|}}}|delta=3}}]]
| [[{{#invoke:Date|Add|year={{{year|}}}|delta=4}} CY|{{#invoke:Date|Add|year={{{year|}}}|delta=4}}]]
| [[{{#invoke:Date|Add|year={{{year|}}}|delta=5}} CY|{{#invoke:Date|Add|year={{{year|}}}|delta=5}}]]
|-
|-
| colspan="11" style="text-align:center; text-decoration: underline;" |{{ #if: {{{age|}}} | [[{{{age}}}]] }}
| colspan="11" style="text-align: center;"| '''In other reckonings''': {{#invoke:Date|Convert|year={{{year|}}}|from=CY|to=SE}} &bull; {{#invoke:Date|Convert|year={{{year|}}}|from=CY|to=OR}} &bull; {{#invoke:Date|Convert|year={{{year|}}}|from=CY|to=OL}} &bull; {{#invoke:Date|Convert|year={{{year|}}}|from=CY|to=TC}} &bull; {{#invoke:Date|Convert|year={{{year|}}}|from=CY|to=FT}} &bull; {{#invoke:Date|Convert|year={{{year|}}}|from=CY|to=BH}} &bull; {{#invoke:Date|Convert|year={{{year|}}}|from=CY|to=OC}} &bull; {{#invoke:Date|Convert|year={{{year|}}}|from=CY|to=SD}}
|-
|-
| {{ #if: {{{yp5|}}} | [[{{{yp5}}} CY|{{#replace:{{{yp5}}}|-|&minus;}}]] | [[{{#expr: {{{year|5}}}-5 }} CY|{{#replace:{{#expr: {{{year|5}}}-5 }}|-|&minus;}}]] }}
|}</includeonly><noinclude>
| {{ #if: {{{yp4|}}} | [[{{{yp4}}} CY|{{#replace:{{{yp4}}}|-|&minus;}}]] | [[{{#expr: {{{year|4}}}-4 }} CY|{{#replace:{{#expr: {{{year|4}}}-4 }}|-|&minus;}}]] }}
| {{ #if: {{{yp3|}}} | [[{{{yp3}}} CY|{{#replace:{{{yp3}}}|-|&minus;}}]] | [[{{#expr: {{{year|3}}}-3 }} CY|{{#replace:{{#expr: {{{year|3}}}-3 }}|-|&minus;}}]] }}
| {{ #if: {{{yp2|}}} | [[{{{yp2}}} CY|{{#replace:{{{yp2}}}|-|&minus;}}]] | [[{{#expr: {{{year|2}}}-2 }} CY|{{#replace:{{#expr: {{{year|2}}}-2 }}|-|&minus;}}]] }}
| {{ #if: {{{yp1|}}} | [[{{{yp1}}} CY|{{#replace:{{{yp1}}}|-|&minus;}}]] | [[{{#expr: {{{year|1}}}-1 }} CY|{{#replace:{{#expr: {{{year|1}}}-1 }}|-|&minus;}}]] }}
| style="border:1px black solid;" | '''{{#replace:{{{year|0}}}|-|&minus;}} CY'''
| {{ #if: {{{yf1|}}} | [[{{{yf1}}} CY|{{#replace:{{{yf1}}}|-|&minus;}}]] | [[{{#expr: {{{year|-1}}}+1 }} CY|{{#replace:{{#expr: {{{year|-1}}}+1 }}|-|&minus;}}]] }}
| {{ #if: {{{yf2|}}} | [[{{{yf2}}} CY|{{#replace:{{{yf2}}}|-|&minus;}}]] | [[{{#expr: {{{year|-2}}}+2 }} CY|{{#replace:{{#expr: {{{year|-2}}}+2 }}|-|&minus;}}]] }}
| {{ #if: {{{yf3|}}} | [[{{{yf3}}} CY|{{#replace:{{{yf3}}}|-|&minus;}}]] | [[{{#expr: {{{year|-3}}}+3 }} CY|{{#replace:{{#expr: {{{year|-3}}}+3 }}|-|&minus;}}]] }}
| {{ #if: {{{yf4|}}} | [[{{{yf4}}} CY|{{#replace:{{{yf4}}}|-|&minus;}}]] | [[{{#expr: {{{year|-4}}}+4 }} CY|{{#replace:{{#expr: {{{year|-4}}}+4 }}|-|&minus;}}]] }}
| {{ #if: {{{yf5|}}} | [[{{{yf5}}} CY|{{#replace:{{{yf5}}}|-|&minus;}}]] | [[{{#expr: {{{year|-5}}}+5 }} CY|{{#replace:{{#expr: {{{year|-5}}}+5 }}|-|&minus;}}]] }}
|}
</tr></td>
<tr><td  style="-webkit-flex:auto; -ms-flex:auto; flex:auto;"><!--Empty--></tr></td>
<tr></td></table></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
{{Yearbox
{{Yearbox
Line 33: Line 28:
<pre>
<pre>
{{Yearbox
{{Yearbox
|year    = (Place the year the article is about here.)
|year    = (Place only the number of the year the article is about here.)
|age    = (Place the name of the Age the year belongs in here.  Such as "First Age", "Age of Mortals", "Age of Worms", etc.)
}}
}}
</pre>
</pre>
==Standard Sections==
==Standard Sections==
These are some typical section headers for an article about a Non-Player Character anywhere on Oerik.  
These are some typical section headers for an article about a year in the Common Year calendar.


You can easily cut and paste them from here and delete the ones you don't use:  
You can easily cut and paste them from here and delete the ones you don't use:  


<pre>
<pre>==Events==
'''XXX CY''' is the XXXth year of the [[Common Year]] reckoning.  (Replace Xs with actual number.)
 
==Equivalents in Other Reckonings==
*
*
 
==Events of 585 CY==
* (Briefly describe each separate, important
* (Briefly describe each separate, important
*  event in a separate bullet-point.)
*  event in a separate bullet-point.)
*


==Greyhawk products set in 585 CY==
==Publications==


==References==
==Notes==
====Citations====
<references />
====Bibliography====
*


(Any)


[[Category:Years]] or [[Category:Years|-]] (depending if it is a year containing a negative number)
[[Category:Years]]</pre>
</pre>
 


[[Category:Content templates]]
</noinclude>
</noinclude>

Latest revision as of 08:01, 6 September 2024

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
ViewEditHistory
This template is not yet documented. Please create documentation here: Template:Yearbox/doc
World of Greyhawk TimelineCommon EraAge of Great Sorrow
586 587 588 589 590 591 CY 592 593 594 595 596
In other reckonings: 1011 SE • 1235 OR • 1395 OL • 1999 TC • 2741 FT • 3250 BH • 5053 OC • 6106 SD

Usage

Copy and paste this section at the top of the new article, and fill in the information areas. The year is necessary, in order to generate the other years before and after it. If "Age" is left undefined it will not appear.

{{Yearbox
|year    = (Place only the number of the year the article is about here.)
}}

Standard Sections

These are some typical section headers for an article about a year in the Common Year calendar.

You can easily cut and paste them from here and delete the ones you don't use:

==Events==
* (Briefly describe each separate, important
*  event in a separate bullet-point.)

==Publications==

==Notes==

(Any)

[[Category:Years]]