Timeline Item – Template

From Bohemia Interactive Community
(Use CSS)
(Remove "approx." when no date is provided, Fix 'start' border)
Line 1: Line 1:
<includeonly>|-
<includeonly>|-
| class="timeline-item-icon"{{#if:{{{start|}}}|<nowiki/> style="border-top: {{{start}}}px"}} | {{#if:{{{1|}}}|{{Icon|{{{1}}}}}|{{Icon|unknown}}}}
| class="timeline-item-icon"{{#if:{{{start|}}}|<nowiki/> style="border-top-width: {{{start}}}px"}} | {{#if:{{{1|}}}|{{Icon|{{{1}}}}}|{{Icon|unknown}}}}
| class="timeline-item-date"{{#if:{{{6|}}}|<nowiki/> style="background-color:{{{6}}}"}} | '''{{{3|?}}}'''&nbsp;/&nbsp;{{{4|approx.}}}
| class="timeline-item-date"{{#if:{{{6|}}}|<nowiki/> style="background-color:{{{6}}}"}} | '''{{#if:{{{3|}}}|{{{3}}}|?}}'''{{#if:{{{4|}}}|&nbsp;/&nbsp;{{{4}}}}}
| class="timeline-item-text"{{#if:{{{6|}}}|<nowiki/> style="background-color:{{{6}}}"}} |
| class="timeline-item-text"{{#if:{{{6|}}}|<nowiki/> style="background-color:{{{6}}}"}} |
{{{5|-no text provided!-{{TemplateCase||[[Category:Timeline Item template usage error]]}}}}}</includeonly><noinclude>
{{{5|-no text provided!-{{TemplateCase||[[Category:Timeline Item template usage error]]}}}}}</includeonly><noinclude>
Line 11: Line 11:
* metadata: obsolete, unused
* metadata: obsolete, unused
* year: (Optional, default "?") a year number
* year: (Optional, default "?") a year number
* date: (Optional, default "approx.") a more precise date if available, to format {{hl|'''MM'''&amp;nbsp;/&amp;nbsp;'''DD'''}}
* date: (Optional, default nothing without slash separator) a more precise date if available, in format {{hl|'''MM'''&amp;nbsp;/&amp;nbsp;'''DD'''}}
* description: text describing the event. Use html {{hl|&lt;h4&gt;&lt;/h4&gt;}} tags to name an event (usually the mission name), {{hl|&lt;h3&gt;&lt;/h3&gt;}} for a title.
* description: text describing the event. Use html {{hl|&lt;h4&gt;&lt;/h4&gt;}} tags to name an event (usually the mission name), {{hl|&lt;h3&gt;&lt;/h3&gt;}} for a title.
* bgColor: (Optional) background color - use {{hl|LightSteelBlue}} for title
* bgColor: (Optional) background color - use {{hl|LightSteelBlue}} for title
Line 32: Line 32:
|}
|}
|-
|-
| <syntaxhighlight lang="handlebars">{{Timeline_Item
| <syntaxhighlight lang="handlebars">
|ARMA3|
{{Timeline_Item
|arma3|
|2035||
I heard of some events in the Mediterranean Sea...
}}
</syntaxhighlight>
|
{| class="wikitable"
! colspan="3" | Existing table
{{Timeline_Item
|arma3|
|2035||
I heard of some events in the Mediterranean Sea...
}}
|}
|-
| <syntaxhighlight lang="handlebars">
{{Timeline_Item
|ofp|
|2001|approx.|
Space Odyssey?
}}
</syntaxhighlight>
|
{| class="wikitable"
! colspan="3" | Existing table
{{Timeline_Item
|ofp|
|2001|approx.|
Space Odyssey?
}}
|}
|-
| <syntaxhighlight lang="handlebars">
{{Timeline_Item
|arma3|
||01&nbsp;/&nbsp;01|
This format does not make sense...<br>
''Happy New Year I guess?''
}}
</syntaxhighlight>
|
{| class="wikitable"
! colspan="3" | Existing table
{{Timeline_Item
|arma3|
||01&nbsp;/&nbsp;01|
This format does not make sense...<br>
''Happy New Year I guess?''
}}
|}
|-
| <syntaxhighlight lang="handlebars">
{{Timeline_Item
|arma3|
|2035|08&amp;nbsp;/&amp;nbsp;02|
|2035|08&amp;nbsp;/&amp;nbsp;02|
<h4>Within Reach</h4>
<h4>Within Reach</h4>
Kerry joins a small team bound for Stratis.
Kerry joins a small team bound for Stratis.
}}</syntaxhighlight>
}}
</syntaxhighlight>
|
|
{| class="wikitable"
{| class="wikitable"
! colspan="3" | Existing table
! colspan="3" | Existing table
{{Timeline_Item
{{Timeline_Item
|ARMA3|
|arma3|
|2035|08&nbsp;/&nbsp;02|
|2035|08&nbsp;/&nbsp;02|
<h4>Within Reach</h4>
<h4>Within Reach</h4>
Line 49: Line 104:
|}
|}
|-
|-
| <syntaxhighlight lang="handlebars">{{Timeline_Item
| <syntaxhighlight lang="handlebars">
|ARMA3|
{{Timeline_Item
|arma3|
|2035|08&amp;nbsp;/&amp;nbsp;02|
|2035|08&amp;nbsp;/&amp;nbsp;02|
<h4>Within Reach</h4>
<h4>Within Reach</h4>
Kerry joins a small team bound for Stratis.
Kerry joins a small team bound for Stratis.
|start= 10
|start= 10
}}</syntaxhighlight>
}}
</syntaxhighlight>
|
|
{| class="wikitable"
{| class="wikitable"
! colspan="3" | Existing table
! colspan="3" | Existing table
{{Timeline_Item
{{Timeline_Item
|ARMA3|
|arma3|
|2035|08&nbsp;/&nbsp;02|
|2035|08&nbsp;/&nbsp;02|
<h4>Within Reach</h4>
<h4>Within Reach</h4>

Revision as of 03:49, 27 December 2025

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

Usage

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

  • type: (Optional, default unknown) See icon template
  • metadata: obsolete, unused
  • year: (Optional, default "?") a year number
  • date: (Optional, default nothing without slash separator) a more precise date if available, in format MM&nbsp;/&nbsp;DD
  • description: text describing the event. Use html <h4></h4> tags to name an event (usually the mission name), <h3></h3> for a title.
  • bgColor: (Optional) background color - use LightSteelBlue for title
Named parameters
  • start: defines the top border's thickness (in px). e.g: |start=2

The template adds the page to the Timeline Item template usage error category in case description is not provided.

Examples
Code Result (put in an additional table)
{{Timeline_Item}}
Existing table
Unknown ?

-no text provided!-

{{Timeline_Item
|arma3|
|2035||
I heard of some events in the Mediterranean Sea...
}}
Existing table
Arma 3 2035

I heard of some events in the Mediterranean Sea...

{{Timeline_Item
|ofp|
|2001|approx.|
Space Odyssey?
}}
Existing table
Operation Flashpoint 2001 / approx.

Space Odyssey?

{{Timeline_Item
|arma3|
||01&nbsp;/&nbsp;01|
This format does not make sense...<br>
''Happy New Year I guess?''
}}
Existing table
Arma 3 ? / 01 / 01

This format does not make sense...
Happy New Year I guess?

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

Within Reach

Kerry joins a small team bound for Stratis.

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

Within Reach

Kerry joins a small team bound for Stratis.