Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox historical event: Difference between revisions

Template page
Plan A: templates, sidebar, categories, lore
 
Plan A: templates, sidebar, categories, lore
 
Line 7: Line 7:
{{!}}-
{{!}}-
! Type
! Type
{{!}} {{#switch:{{lc:{{{age|}}}}}
{{!}} {{#switch:{{lc:{{{type|}}}}}
| age 1 | 1 = [[:Category:AGE 1 events and processes|{{{type}}}]]
| process | program / process = [[:Category:Processes|{{{type}}}]]
| age 2 | 2 = [[:Category:AGE 2 events and processes|{{{type}}}]]
| #default = [[:Category:Events|{{{type}}}]]
| age 3 | 3 = [[:Category:AGE 3 events and processes|{{{type}}}]]
| age 4 | 4 = [[:Category:AGE 4 events and processes|{{{type}}}]]
| #default = [[:Category:History|{{{type}}}]]
}}}}
}}}}
{{#if:{{{age|}}}|
{{#if:{{{age|}}}|
{{!}}-
{{!}}-
! Age
! Age
{{!}} {{#switch:{{lc:{{{age|}}}}}
{{!}} {{AGE links|age={{{age|}}}}
| age 1 | 1 = [[:Category:AGE 1|AGE 1]]
| age 2 | 2 = [[:Category:AGE 2|AGE 2]]
| age 3 | 3 = [[:Category:AGE 3|AGE 3]]
| age 4 | 4 = [[:Category:AGE 4|AGE 4]]
| #default = {{{age}}}
}}}}
}}}}
{{#if:{{{societies involved|}}}|
{{#if:{{{societies involved|}}}|
Line 31: Line 23:
{{!}}-
{{!}}-
! Locations involved
! Locations involved
{{!}} {{{locations involved}}}}}
{{!}} {{{locations involved}}}
{{#if:{{{causes|}}}|
{{#if:{{{causes|}}}|
{{!}}-
{{!}}-
! Causes
! Causes
{{!}} {{{causes}}}}}
{{!}} {{{causes}}}
{{#if:{{{consequences|}}}|
{{#if:{{{consequences|}}}|
{{!}}-
{{!}}-
! Consequences
! Consequences
{{!}} {{{consequences}}}}}
{{!}} {{{consequences}}}}}
}}
}}
|}
|}
{{#if:{{{nocat|}}}||[[Category:History{{#if:{{{date|}}}|{{!}}{{{date}}}}}]]{{#switch:{{lc:{{{age|}}}}}
{{#if:{{{nocat|}}}||[[Category:History{{#if:{{{date|}}}|{{!}}{{{date}}}}}]]{{#switch:{{lc:{{{type|}}}}}
| age 1 | 1 = [[Category:AGE 1 events and processes{{#if:{{{date|}}}|{{!}}{{{date}}}}}]]
| process | program / process = [[Category:Processes{{#if:{{{date|}}}|{{!}}{{{date}}}}}]]
| age 2 | 2 = [[Category:AGE 2 events and processes{{#if:{{{date|}}}|{{!}}{{{date}}}}}]]
| #default = [[Category:Events{{#if:{{{date|}}}|{{!}}{{{date}}}}}]]
| age 3 | 3 = [[Category:AGE 3 events and processes{{#if:{{{date|}}}|{{!}}{{{date}}}}}]]
}}{{AGE categories|age={{{age|}}}}}{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}}}</includeonly><noinclude>
| age 4 | 4 = [[Category:AGE 4 events and processes{{#if:{{{date|}}}|{{!}}{{{date}}}}}]]
'''Infobox historical event''' for pages in [[:Category:History]]. <code>type</code> must be <code>Event</code> or <code>Process</code> (links to [[:Category:Events]] or [[:Category:Processes]]). <code>age</code> is the transversal AGE filter. Chronology per AGE: History ∩ AGE on each AGE category page.
}}{{#switch:{{lc:{{{age|}}}}}
| age 1 | 1 = [[Category:AGE 1]]
| age 2 | 2 = [[Category:AGE 2]]
| age 3 | 3 = [[Category:AGE 3]]
| age 4 | 4 = [[Category:AGE 4]]
}}{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}}}</includeonly><noinclude>
'''Infobox historical event''' for pages in [[:Category:History]]. <code>type</code> links to the subcategory <code>AGE n events and processes</code> from <code>age</code>. A program that is also an institution should set <code>category2 = Societies</code> (or the specific subcategory).


Parameters: <code>name</code>, <code>image</code>, <code>caption</code>, <code>alt</code>, <code>type</code>, <code>age</code>, <code>date</code>, <code>societies involved</code>, <code>locations involved</code>, <code>causes</code>, <code>consequences</code>, <code>category2</code>, <code>nocat</code>.
Parameters: <code>name</code>, <code>image</code>, <code>caption</code>, <code>alt</code>, <code>type</code>, <code>age</code>, <code>date</code>, <code>societies involved</code>, <code>locations involved</code>, <code>causes</code>, <code>consequences</code>, <code>category2</code>, <code>nocat</code>.


<code>date</code> is the chronological sort key. '''It is not shown to readers''': it only orders the page inside [[:Category:History]] and its AGE events category. Required format '''YYYY-MM-DD''' (four-digit year, two-digit month and day: <code>2340-05-01</code>). <code>YYYY</code> or <code>YYYY-MM</code> are allowed when only the year or month is known; those pages sort before more precise dates in the same period. Without <code>date</code>, the page sorts alphabetically after dated ones.
<code>date</code> is the chronological sort key. '''It is not shown to readers''': it only orders the page inside [[:Category:History]], [[:Category:Events]], or [[:Category:Processes]]. Required format '''YYYY-MM-DD''' (four-digit year, two-digit month and day: <code>2340-05-01</code>). <code>YYYY</code> or <code>YYYY-MM</code> are allowed when only the year or month is known; those pages sort before more precise dates in the same period. Without <code>date</code>, the page sorts alphabetically after dated ones.


<pre>
<pre>
Line 62: Line 49:
| image =
| image =
| caption =
| caption =
| type = Program / Process
| type = Process
| age = AGE 2
| age = AGE 2
| date =
| date =

Latest revision as of 20:07, 31 August 2026

Infobox historical event for pages in Category:History. type must be Event or Process (links to Category:Events or Category:Processes). age is the transversal AGE filter. Chronology per AGE: History ∩ AGE on each AGE category page.

Parameters: name, image, caption, alt, type, age, date, societies involved, locations involved, causes, consequences, category2, nocat.

date is the chronological sort key. It is not shown to readers: it only orders the page inside Category:History, Category:Events, or Category:Processes. Required format YYYY-MM-DD (four-digit year, two-digit month and day: 2340-05-01). YYYY or YYYY-MM are allowed when only the year or month is known; those pages sort before more precise dates in the same period. Without date, the page sorts alphabetically after dated ones.

{{Infobox historical event
| image =
| caption =
| type = Process
| age = AGE 2
| date =
| societies involved = [[The Union of Sovereignties]]
| locations involved = [[UNE (Earth)]]
}}