Timeline Item – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Add Usage how-to)
Line 3: Line 3:
|style="border-bottom: 1px dotted gray; padding-left: 0.5em; padding-right: 1.5em; font-size:120%; background-color:{{{6|white}}};"|'''{{{3|}}}''' / {{{4|}}}
|style="border-bottom: 1px dotted gray; padding-left: 0.5em; padding-right: 1.5em; font-size:120%; background-color:{{{6|white}}};"|'''{{{3|}}}''' / {{{4|}}}
|style="border-bottom: 1px dotted gray; padding: 0.1em 0.5em 0.1em 0.5em; vertical-align:middle; background-color:{{{6|white}}};"|
|style="border-bottom: 1px dotted gray; padding: 0.1em 0.5em 0.1em 0.5em; vertical-align:middle; background-color:{{{6|white}}};"|
{{{5|}}}</includeonly><noinclude>[[Category:Templates|Timeline Item]]</noinclude>
{{{5|}}}</includeonly><noinclude>
Displays an [[Armaverse Timeline]] item - a line in the big table of Time.
 
== Usage ==
{{<nowiki/>Timeline_item|'''''type'''''|'''''metadata'''''|'''''year'''''|'''''date'''''|'''''description'''''|'''''bgColor'''''}}
* type: can be one of:
<div style="column-count: 4;">
:* [[Template: Timeline Item AAN|AAN]] for [http://aan.moricky.com/ AAN] reported events
:* [[Template: Timeline Item ARMA0|ARMA0]]
:* [[Template: Timeline Item ARMA1|ARMA1]]
:* [[Template: Timeline Item ARMA2|ARMA2]]
:* [[Template: Timeline Item ARMA2ACR|ARMA2ACR]]
:* [[Template: Timeline Item ARMA2BAF|ARMA2BAF]]
:* [[Template: Timeline Item ARMA2OA|ARMA2OA]]
:* [[Template: Timeline Item ARMA2PMC|ARMA2PMC]]
:* [[Template: Timeline Item ARMA3|ARMA3]]
:* [[Template: Timeline Item ARMA3APEX|ARMA3APEX]]
:* [[Template: Timeline Item ARMA3LOW|ARMA3LOW]]
:* [[Template: Timeline Item ARMA3TACOPS|ARMA3TACOPS]]
:* [[Template: Timeline Item ARMA3TANKS|ARMA3TANKS]]
:* [[Template: Timeline Item Person|Person]] for in-game character event
:* [[Template: Timeline Item Real|Real]] for a real life event
:* [[Template: Timeline Item TakOH|TakOH]]
</div>
* metadata: more information, usually the mentioned person's name (not displayed, hidden by {{Wikipedia|Cascading_Style_Sheets|CSS}})
* year: a number
* date: a more precise date if available, to format <tt>'''MM'''&amp;nbsp;/&amp;nbsp;'''DD'''</tt> ("approx" if no more information)
* description: text describing the event. Use html <tt>&lt;h4&gt;&lt;/h4&gt;</tt> tags to name an event (usually the mission name), <tt>&lt;h3&gt;&lt;/h3&gt;</tt> for a title.
* bgColor: background color - (Optional, default "white") use <tt>LightSteelBlue</tt> for title
 
; Named parameters:
* start: defines the top border's thickness (in px). e.g: <tt>|start=2</tt>
 
{|class="wikitable"
|+ Examples
! Code
! Result (put in an additional table)
|-
| <code><nowiki>{{Timeline_Item
|ARMA3|
|2035|08&amp;nbsp;/&amp;nbsp;02|
<h4>Within Reach</h4>
Kerry joins a small team bound for Stratis.
}}</nowiki></code>
|
{| class="bikitable"
! colspan="3" | Existing table
{{Timeline_Item
|ARMA3|
|2035|08&nbsp;/&nbsp;02|
<h4>Within Reach</h4>
Kerry joins a small team bound for Stratis.
}}
|}
|}
 
== Source ==
<syntaxhighlight lang="html">
|-
|style="border-bottom: 1px dotted gray; border-top:{{{start|0}}}px solid #ababab; border-right: 1px dotted gray; padding-left: 0.5em; padding-right: 0.7em; font-size:120%; background-color:#444;"|<div style="width:0;height:0;font-size:0;">{{{1|}}}{{{2|}}}</div>{{Template:Timeline Item {{{1|}}}}}
|style="border-bottom: 1px dotted gray; padding-left: 0.5em; padding-right: 1.5em; font-size:120%; background-color:{{{6|white}}};"|'''{{{3|}}}'''&nbsp;/&nbsp;{{{4|}}}
|style="border-bottom: 1px dotted gray; padding: 0.1em 0.5em 0.1em 0.5em; vertical-align:middle; background-color:{{{6|white}}};"|
{{{5|}}}
</syntaxhighlight>
 
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Revision as of 21:53, 26 September 2019

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

Usage

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

  • type: can be one of:
  • 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 "white") 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 |ARMA3| |2035|08&nbsp;/&nbsp;02| <h4>Within Reach</h4> Kerry joins a small team bound for Stratis. }}
Existing table
ARMA3
Template:Timeline Item ARMA3
2035 / 08 / 02

Within Reach

Kerry joins a small team bound for Stratis.

Source

|-
|style="border-bottom: 1px dotted gray; border-top:{{{start|0}}}px solid #ababab; border-right: 1px dotted gray; padding-left: 0.5em; padding-right: 0.7em; font-size:120%; background-color:#444;"|<div style="width:0;height:0;font-size:0;">{{{1|}}}{{{2|}}}</div>{{Template:Timeline Item {{{1|}}}}}
|style="border-bottom: 1px dotted gray; padding-left: 0.5em; padding-right: 1.5em; font-size:120%; background-color:{{{6|white}}};"|'''{{{3|}}}'''&nbsp;/&nbsp;{{{4|}}}
|style="border-bottom: 1px dotted gray; padding: 0.1em 0.5em 0.1em 0.5em; vertical-align:middle; background-color:{{{6|white}}};"|
{{{5|}}}