Timeline Item – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix for DarkTheme)
m (Fix Wikipedia link)
Line 9: Line 9:
{{<nowiki/>Timeline_Item|'''''type'''''|'''''metadata'''''|'''''year'''''|'''''date'''''|'''''description'''''|'''''bgColor'''''}}
{{<nowiki/>Timeline_Item|'''''type'''''|'''''metadata'''''|'''''year'''''|'''''date'''''|'''''description'''''|'''''bgColor'''''}}
* type: See [[Template:Icon|icon template]]
* type: See [[Template:Icon|icon template]]
* metadata: more information, usually the mentioned person's name (not displayed, hidden by {{Wikipedia|Cascading Style Sheets|CSS}})
* metadata: more information, usually the mentioned person's name (not displayed, hidden by {{Link|https://en.wikipedia.org/wiki/Cascading_Style_Sheets|CSS}})
* year: a number
* year: a number
* date: a more precise date if available, to format {{hl|'''MM'''&amp;nbsp;/&amp;nbsp;'''DD'''}} ("approx" if no more information)
* date: a more precise date if available, to format {{hl|'''MM'''&amp;nbsp;/&amp;nbsp;'''DD'''}} ("approx" if no more information)
Line 16: Line 16:


; Named parameters:
; Named parameters:
* start: defines the top border's thickness (in px). e.g: {{hl|c= |start=2}}
* start: defines the top border's thickness (in px). e.g: {{hl|c= {{!}}start=2}}


{| class="wikitable"
{| class="wikitable"

Revision as of 00:59, 24 February 2023

Displays an Armaverse Timeline item - a line in the big table of Time.

Usage

{{Timeline_Item|type|metadata|year|date|description|bgColor}}

  • type: See icon template
  • metadata: more information, usually the mentioned person's name (not displayed, hidden by CSS)
  • year: a number
  • date: a more precise date if available, to format MM&nbsp;/&nbsp;DD ("approx" if no more information)
  • description: text describing the event. Use html <h4></h4> tags to name an event (usually the mission name), <h3></h3> for a title.
  • bgColor: background color - (Optional, default "inherit") use LightSteelBlue for title
Named parameters
  • start: defines the top border's thickness (in px). e.g: |start=2
Examples
Code Result (put in an additional table)
{{Timeline_Item}}
Existing table
-wrong parameter ("{{{1}}}") defined!-
' / 
{{Timeline_Item |ARMA3| |2035|08&nbsp;/&nbsp;02| <h4>Within Reach</h4> Kerry joins a small team bound for Stratis. }}
Existing table
ARMA3
Arma 3
2035 / 08 / 02

Within Reach

Kerry joins a small team bound for Stratis.

{{Timeline_Item |ARMA3| |2035|08&nbsp;/&nbsp;02| <h4>Within Reach</h4> Kerry joins a small team bound for Stratis. |start= 10 }}
Existing table
ARMA3
Arma 3
2035 / 08 / 02

Within Reach

Kerry joins a small team bound for Stratis.