Template:Yearbox: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
m Table formatting ... still
m removing category
 
(18 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; ">
| 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 red 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}}} DR|{{#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 29: Line 24:
}}
}}
==Usage==
==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.
<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 is in here.  Such as "First Age, Age of Mortals, Age of Worms, etc.)
}}
}}
</pre>
</pre>
==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:
<pre>==Events==
* (Briefly describe each separate, important
*  event in a separate bullet-point.)
==Publications==
==Notes==
(Any)
[[Category:Years]]</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]]