Template:Infobox historical event: Difference between revisions
More languages
More actions
Plan A: templates, sidebar, categories, lore |
Plan A: templates, sidebar, categories, lore |
||
| Line 7: | Line 7: | ||
{{!}}- | {{!}}- | ||
! Type | ! Type | ||
{{!}} {{#switch:{{lc: | {{!}} {{#switch:{{lc:{{{type|}}}}} | ||
| process | program / process = [[:Category:Processes|{{{type}}}]] | |||
| #default = [[:Category:Events|{{{type}}}]] | |||
| | |||
| #default = [[:Category: | |||
}}}} | }}}} | ||
{{#if:{{{age|}}}| | {{#if:{{{age|}}}| | ||
{{!}}- | {{!}}- | ||
! Age | ! Age | ||
{{!}} {{ | {{!}} {{AGE links|age={{{age|}}}} | ||
| 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:{{{ | {{#if:{{{nocat|}}}||[[Category:History{{#if:{{{date|}}}|{{!}}{{{date}}}}}]]{{#switch:{{lc:{{{type|}}}}} | ||
| | | process | program / process = [[Category:Processes{{#if:{{{date|}}}|{{!}}{{{date}}}}}]] | ||
| | | #default = [[Category:Events{{#if:{{{date|}}}|{{!}}{{{date}}}}}]] | ||
}}{{AGE categories|age={{{age|}}}}}{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}}}</includeonly><noinclude> | |||
| age | '''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. | ||
}}{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}}}</includeonly><noinclude> | |||
'''Infobox historical event''' for pages in [[:Category:History]]. <code>type</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>. | 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]] | <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 = | | 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)]]
}}