Template:Infobox event/doc: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
Created page with "==Usage== <pre style="overflow:auto"> {{Infobox event | title = <!-- Title to display, if other than page name --> | image = | image_siz..."
 
Edgard (talk | contribs)
No edit summary
Line 1: Line 1:
==Usage==
<noinclude>
<pre style="overflow:auto">
== Usage ==
This infobox template displays information about events on Micras, including battles, treaties, disasters, ceremonies, and other significant occurrences.
 
=== Quick Start ===
<pre>
{{Infobox event
{{Infobox event
| title                   = <!-- Title to display, if other than page name -->
| title = Event Name
| image                   =
| event_type = battle
| image_size               =
| status = concluded
| image_alt               =
| date = 15.VII.1730 AN
| caption                 =
| location = [[Location]]
| map                     =
| type = Battle
| map_size                 =
| participants =
| map_alt                 =
| outcome =
| map_caption             =
}}
| native_name              =  
</pre>
| native_name_lang        =
 
| english_name            =
== New Parameters for OSINT Tracking ==
| time                     =
 
| duration                 = <!-- {{duration|h=x|m=x|s=x}} or {{time interval|date1|date2|options}} -->
{| class="wikitable" style="background-color: #f0fff0;"
| date                    = <!-- {{start date|YYYY|MM|DD}} or {{start and end dates|YYYY|MM|DD|YYYY|MM|DD}} -->
|-
| venue                    =  
! Parameter !! Description
| location                =  
|-
| coordinates              = <!-- {{coord|LAT|LON|region:XXXX_type:event|display=inline,title}} -->
| <code>'''event_type'''</code> || '''Enables automatic categorization''' for OSINT tracking. See values below.
| also_known_as            =  
|-
| type                    =  
| <code>'''status'''</code> || Current state: <code>ongoing</code>, <code>concluded</code>, <code>developing</code>, or <code>historical</code>
| theme                    =
|}
| cause                    =
 
| motive                  =  
=== Event Type Values (Auto-Categorization) ===
| target                  =  
When you set <code>event_type</code>, the page is '''automatically added''' to the appropriate category:
| first_reporter          =
 
| budget                  =
{| class="wikitable"
| patron                  = <!-- or |patrons= -->
|-
| organisers              = <!-- or |organizers= -->
! Value !! Auto-Category !! Use For
| filmed_by                =  
|-
| participants            =  
| <code>war</code>, <code>battle</code>, <code>conflict</code>, <code>siege</code> || [[:Category:Conflicts]] || Military engagements
| outcome                  =  
|-
| casualties1              =  
| <code>coup</code>, <code>revolution</code>, <code>uprising</code> || [[:Category:Coups]] || Government overthrows
| casualties2              =  
|-
| casualties3              =  
| <code>assassination</code> || [[:Category:Assassinations]] || Political killings
| reported deaths         =  
|-
| reported injuries       =  
| <code>treaty</code>, <code>summit</code>, <code>conference</code> || [[:Category:Diplomacy]] || International agreements
| reported missing        =  
|-
| reported property damage =  
| <code>election</code>, <code>referendum</code> || [[:Category:Elections]] || Democratic processes
| burial                  =  
|-
| inquiries                =  
| <code>crisis</code>, <code>disaster</code>, <code>famine</code>, <code>epidemic</code> || [[:Category:Crises]] || Emergencies
| inquest                  =  
|-
| coroner                  =  
| <code>ceremony</code>, <code>coronation</code>, <code>funeral</code> || [[:Category:Ceremonies]] || Formal events
| arrests                  =  
|}
| suspects                =  
 
| accused                  =  
'''Note:''' You do NOT need to manually add <code><nowiki>[[Category:Conflicts]]</nowiki></code> if you use <code>event_type</code>.
| convicted                =  
 
| charges                  =  
== All Parameters ==
| trial                    =  
 
| verdict                  =  
=== Basic Information ===
| convictions              =  
{| class="wikitable"
| sentence                =  
|-
| publication_bans        =  
! Parameter !! Description
| litigation              =  
|-
| awards                  =  
| <code>event</code> / <code>title</code> || Event name (defaults to page name)
| url                      =  
|-
| blank_label              = <!-- or |blank_data= -->
| <code>partof</code> || Larger conflict or series this event is part of
| blank1_label            = <!-- or |blank1_data= -->
|-
| blank2_label            = <!-- or |blank2_data= -->
| <code>native_name</code> || Name in native language
| website                  = <!-- {{URL|example.com}} -->
|-
| notes                    =  
| <code>native_name_lang</code> || Language code for native name
}}</pre>
|-
<noinclude>[[Category:Template documentation]]</noinclude>
| <code>English_name</code> || English translation of name
|-
| <code>also_known_as</code> / <code>aka</code> || Alternative names
|}
 
=== Images ===
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>image</code> || Main image filename
|-
| <code>image_size</code> || Image width (default: 250px)
|-
| <code>image_alt</code> || Alt text for image
|-
| <code>caption</code> / <code>image_caption</code> || Image caption
|-
| <code>map</code> || Map image filename
|-
| <code>map_size</code> || Map width (default: 100px)
|-
| <code>map_alt</code> || Alt text for map
|-
| <code>map_caption</code> || Map caption
|}
 
=== Time and Place ===
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>date</code> || Date or date range (e.g., <code>15.VII.1730 AN</code>)
|-
| <code>time</code> || Time of day
|-
| <code>duration</code> || How long the event lasted
|-
| <code>venue</code> || Specific venue name
|-
| <code>location</code> / <code>place</code> || Location where event occurred
|-
| <code>coordinates</code> || Geographic coordinates
|}
 
=== Event Details ===
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>'''event_type'''</code> || '''NEW:''' Event classification for auto-categorization
|-
| <code>'''status'''</code> || '''NEW:''' <code>ongoing</code>, <code>concluded</code>, <code>developing</code>, <code>historical</code>
|-
| <code>type</code> || Display type (e.g., "Battle", "Treaty") - shown in infobox
|-
| <code>theme</code> || Theme or subject of the event
|-
| <code>cause</code> || What caused the event
|-
| <code>motive</code> || Motive (for crimes/attacks)
|-
| <code>target</code> || Target (for attacks)
|-
| <code>participants</code> || Who participated
|-
| <code>outcome</code> / <code>result</code> || Result or outcome
|}
 
=== Organization ===
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>organisers</code> / <code>organizers</code> || Who organized the event
|-
| <code>patron</code> / <code>patrons</code> || Event patrons
|-
| <code>budget</code> || Event budget
|-
| <code>reporter</code> / <code>first_reporter</code> || Who first reported it
|-
| <code>filmed_by</code> || Who filmed the event
|}
 
=== Casualties and Damage ===
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>casualties1</code>, <code>casualties2</code>, <code>casualties3</code> || Casualty information by side
|-
| <code>deaths</code> || Number of deaths
|-
| <code>injuries</code> || Number of injuries
|-
| <code>missing</code> || Number missing
|-
| <code>property damage</code> || Property damage description
|}
 
=== Legal Proceedings ===
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>inquiries</code> || Official inquiries
|-
| <code>inquest</code> || Inquest details
|-
| <code>coroner</code> || Coroner name
|-
| <code>arrests</code> || Number/details of arrests
|-
| <code>suspects</code> || Suspects identified
|-
| <code>accused</code> || Those formally accused
|-
| <code>convicted</code> || Those convicted
|-
| <code>charges</code> || Criminal charges
|-
| <code>trial</code> || Trial information
|-
| <code>verdict</code> || Trial verdict
|-
| <code>convictions</code> || Conviction details
|-
| <code>sentence</code> || Sentence given
|-
| <code>litigation</code> || Civil litigation
|}
 
=== Other ===
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>burial</code> || Burial information
|-
| <code>awards</code> || Awards given
|-
| <code>footage</code> / <code>url</code> || Link to footage
|-
| <code>website</code> || Official website
|-
| <code>notes</code> || Additional notes (appears at bottom)
|-
| <code>blank_label</code> / <code>blank_data</code> || Custom field 1
|-
| <code>blank1_label</code> / <code>blank1_data</code> || Custom field 2
|-
| <code>blank2_label</code> / <code>blank2_data</code> || Custom field 3
|}
 
== Examples ==
 
=== Battle (with auto-categorization) ===
<pre>
{{Infobox event
| title = Battle of Suthergold
| event_type = battle
| status = concluded
| partof = [[Suthergold War]]
| image = Battle_map.png
| date = 15.VII.1730 AN
| location = [[Suthergold]], [[Natopia]]
| type = Battle
| participants = {{flag|Natopia}}<br>{{flag|Shireroth}}
| outcome = Natopian victory
| deaths = 500
| injuries = 1,200
}}
</pre>
''This automatically adds the page to [[:Category:Conflicts]]''
 
=== Treaty ===
<pre>
{{Infobox event
| title = Treaty of Chryse
| event_type = treaty
| status = concluded
| date = 1.I.1731 AN
| location = [[Chryse]]
| type = Treaty
| participants = {{flag|Natopia}}<br>{{flag|Shireroth}}<br>{{flag|Nouvelle Alexandrie}}
| outcome = End of hostilities
}}
</pre>
''This automatically adds the page to [[:Category:Diplomacy]]''
 
=== Coup ===
<pre>
{{Infobox event
| title = Northbloom Coup
| event_type = coup
| status = concluded
| date = 22.XI.1729 AN
| location = [[Northbloom]]
| type = Military coup
| cause = Economic crisis
| outcome = Military government established
}}
</pre>
''This automatically adds the page to [[:Category:Coups]]''
 
=== Ongoing Crisis ===
<pre>
{{Infobox event
| title = Florian Refugee Crisis
| event_type = crisis
| status = ongoing
| date = 1735 AN – present
| location = Northern Benacia
| type = Humanitarian crisis
| cause = Civil war in Floria
| outcome = Ongoing humanitarian situation
}}
</pre>
''This automatically adds the page to [[:Category:Crises]]''
 
=== Ceremony ===
<pre>
{{Infobox event
| title = Coronation of Emperor Nathan IV
| event_type = coronation
| status = concluded
| date = 22.XI.1729 AN
| venue = Imperial Palace
| location = [[Lindstrom]]
| type = Coronation
| organisers = Imperial Household
| participants = Imperial family, foreign dignitaries
}}
</pre>
''This automatically adds the page to [[:Category:Ceremonies]]''
 
== Migration Guide ==
To add auto-categorization to existing event pages, simply add the <code>event_type</code> parameter:
 
'''Before:'''
<pre>
{{Infobox event
| title = Battle of Example
| date = 1730 AN
| type = Battle
}}
[[Category:Conflicts]]
</pre>
 
'''After:'''
<pre>
{{Infobox event
| title = Battle of Example
| event_type = battle
| date = 1730 AN
| type = Battle
}}
</pre>
''The manual category tag is no longer needed!''
 
== See Also ==
* [[Template:Infobox military conflict]]
* [[Template:Infobox person]]
* [[Template:Infobox nation]]
* [[:Category:Events]]
* [[:Category:Conflicts]]
* [[:Category:Diplomacy]]
 
[[Category:Infobox templates]]
[[Category:Template documentation]]</noinclude>

Revision as of 06:53, 18 January 2026

Usage

This infobox template displays information about events on Micras, including battles, treaties, disasters, ceremonies, and other significant occurrences.

Quick Start

{{Infobox event
| title = Event Name
| event_type = battle
| status = concluded
| date = 15.VII.1730 AN
| location = [[Location]]
| type = Battle
| participants = 
| outcome = 
}}

New Parameters for OSINT Tracking

Parameter Description
event_type Enables automatic categorization for OSINT tracking. See values below.
status Current state: ongoing, concluded, developing, or historical

Event Type Values (Auto-Categorization)

When you set event_type, the page is automatically added to the appropriate category:

Value Auto-Category Use For
war, battle, conflict, siege Category:Conflicts Military engagements
coup, revolution, uprising Category:Coups Government overthrows
assassination Category:Assassinations Political killings
treaty, summit, conference Category:Diplomacy International agreements
election, referendum Category:Elections Democratic processes
crisis, disaster, famine, epidemic Category:Crises Emergencies
ceremony, coronation, funeral Category:Ceremonies Formal events

Note: You do NOT need to manually add [[Category:Conflicts]] if you use event_type.

All Parameters

Basic Information

Parameter Description
event / title Event name (defaults to page name)
partof Larger conflict or series this event is part of
native_name Name in native language
native_name_lang Language code for native name
English_name English translation of name
also_known_as / aka Alternative names

Images

Parameter Description
image Main image filename
image_size Image width (default: 250px)
image_alt Alt text for image
caption / image_caption Image caption
map Map image filename
map_size Map width (default: 100px)
map_alt Alt text for map
map_caption Map caption

Time and Place

Parameter Description
date Date or date range (e.g., 15.VII.1730 AN)
time Time of day
duration How long the event lasted
venue Specific venue name
location / place Location where event occurred
coordinates Geographic coordinates

Event Details

Parameter Description
event_type NEW: Event classification for auto-categorization
status NEW: ongoing, concluded, developing, historical
type Display type (e.g., "Battle", "Treaty") - shown in infobox
theme Theme or subject of the event
cause What caused the event
motive Motive (for crimes/attacks)
target Target (for attacks)
participants Who participated
outcome / result Result or outcome

Organization

Parameter Description
organisers / organizers Who organized the event
patron / patrons Event patrons
budget Event budget
reporter / first_reporter Who first reported it
filmed_by Who filmed the event

Casualties and Damage

Parameter Description
casualties1, casualties2, casualties3 Casualty information by side
deaths Number of deaths
injuries Number of injuries
missing Number missing
property damage Property damage description

Legal Proceedings

Parameter Description
inquiries Official inquiries
inquest Inquest details
coroner Coroner name
arrests Number/details of arrests
suspects Suspects identified
accused Those formally accused
convicted Those convicted
charges Criminal charges
trial Trial information
verdict Trial verdict
convictions Conviction details
sentence Sentence given
litigation Civil litigation

Other

Parameter Description
burial Burial information
awards Awards given
footage / url Link to footage
website Official website
notes Additional notes (appears at bottom)
blank_label / blank_data Custom field 1
blank1_label / blank1_data Custom field 2
blank2_label / blank2_data Custom field 3

Examples

Battle (with auto-categorization)

{{Infobox event
| title = Battle of Suthergold
| event_type = battle
| status = concluded
| partof = [[Suthergold War]]
| image = Battle_map.png
| date = 15.VII.1730 AN
| location = [[Suthergold]], [[Natopia]]
| type = Battle
| participants = {{flag|Natopia}}<br>{{flag|Shireroth}}
| outcome = Natopian victory
| deaths = 500
| injuries = 1,200
}}

This automatically adds the page to Category:Conflicts

Treaty

{{Infobox event
| title = Treaty of Chryse
| event_type = treaty
| status = concluded
| date = 1.I.1731 AN
| location = [[Chryse]]
| type = Treaty
| participants = {{flag|Natopia}}<br>{{flag|Shireroth}}<br>{{flag|Nouvelle Alexandrie}}
| outcome = End of hostilities
}}

This automatically adds the page to Category:Diplomacy

Coup

{{Infobox event
| title = Northbloom Coup
| event_type = coup
| status = concluded
| date = 22.XI.1729 AN
| location = [[Northbloom]]
| type = Military coup
| cause = Economic crisis
| outcome = Military government established
}}

This automatically adds the page to Category:Coups

Ongoing Crisis

{{Infobox event
| title = Florian Refugee Crisis
| event_type = crisis
| status = ongoing
| date = 1735 AN – present
| location = Northern Benacia
| type = Humanitarian crisis
| cause = Civil war in Floria
| outcome = Ongoing humanitarian situation
}}

This automatically adds the page to Category:Crises

Ceremony

{{Infobox event
| title = Coronation of Emperor Nathan IV
| event_type = coronation
| status = concluded
| date = 22.XI.1729 AN
| venue = Imperial Palace
| location = [[Lindstrom]]
| type = Coronation
| organisers = Imperial Household
| participants = Imperial family, foreign dignitaries
}}

This automatically adds the page to Category:Ceremonies

Migration Guide

To add auto-categorization to existing event pages, simply add the event_type parameter:

Before:

{{Infobox event
| title = Battle of Example
| date = 1730 AN
| type = Battle
}}
[[Category:Conflicts]]

After:

{{Infobox event
| title = Battle of Example
| event_type = battle
| date = 1730 AN
| type = Battle
}}

The manual category tag is no longer needed!

See Also