Timeline Item – Template
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) (Use CSS) |
||
(10 intermediate revisions by 2 users not shown) | |||
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-date"{{#if:{{{6|}}}|<nowiki/> style="background-color:{{{6}}}"}} | '''{{{3|?}}}''' / {{{4|approx.}}} | ||
| | | class="timeline-item-text"{{#if:{{{6|}}}|<nowiki/> style="background-color:{{{6}}}"}} | | ||
{{{5|}}}</includeonly><noinclude> | {{{5|-no text provided!-{{TemplateCase||[[Category:Timeline Item template usage error]]}}}}}</includeonly><noinclude> | ||
Displays an [[Armaverse Timeline]] item - a line in the big table of Time. | Displays an [[Armaverse Timeline]] item - a line in the big table of Time. | ||
== Usage == | == Usage == | ||
{{<nowiki/> | {{<nowiki/>Timeline_Item|'''''type'''''|'''''metadata'''''|'''''year'''''|'''''date'''''|'''''description'''''|'''''bgColor'''''}} | ||
* type: | * type: (Optional, default {{hl|unknown}}) See [[Template:Icon|icon template]] | ||
* metadata: obsolete, unused | |||
* year: (Optional, default "?") a year number | |||
* date: (Optional, default "approx.") a more precise date if available, to format {{hl|'''MM'''&nbsp;/&nbsp;'''DD'''}} | |||
* description: text describing the event. Use html {{hl|<h4></h4>}} tags to name an event (usually the mission name), {{hl|<h3></h3>}} for a title. | |||
* bgColor: (Optional) background color - use {{hl|LightSteelBlue}} for title | |||
* date: a more precise date if available, to format | |||
* description: text describing the event. Use html | |||
* bgColor: background color - | |||
; Named parameters: | ; Named parameters: | ||
* start: defines the top border's thickness (in px). e.g: | * start: defines the top border's thickness (in px). e.g: {{hl|c= {{!}}start=2}} | ||
{|class="wikitable" | The template adds the page to the [[:Category:Timeline Item template usage error|Timeline Item template usage error]] category in case ''description'' is not provided. | ||
{| class="wikitable" | |||
|+ Examples | |+ Examples | ||
! Code | ! Code | ||
! Result (put in an additional table) | ! Result (put in an additional table) | ||
|- | |- | ||
| < | | <syntaxhighlight lang="handlebars">{{Timeline_Item}}</syntaxhighlight> | ||
| | |||
{| class="wikitable" | |||
! colspan="3" | Existing table | |||
{{Timeline_Item}} | |||
|} | |||
|- | |||
| <syntaxhighlight lang="handlebars">{{Timeline_Item | |||
|ARMA3| | |||
|2035|08&nbsp;/&nbsp;02| | |||
<h4>Within Reach</h4> | |||
Kerry joins a small team bound for Stratis. | |||
}}</syntaxhighlight> | |||
| | |||
{| class="wikitable" | |||
! colspan="3" | Existing table | |||
{{Timeline_Item | |||
|ARMA3| | |||
|2035|08 / 02| | |||
<h4>Within Reach</h4> | |||
Kerry joins a small team bound for Stratis. | |||
}} | |||
|} | |||
|- | |||
| <syntaxhighlight lang="handlebars">{{Timeline_Item | |||
|ARMA3| | |ARMA3| | ||
|2035|08&nbsp;/&nbsp;02| | |2035|08&nbsp;/&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 | ||
}}</syntaxhighlight> | |||
| | | | ||
{| class=" | {| class="wikitable" | ||
! colspan="3" | Existing table | ! colspan="3" | Existing table | ||
{{Timeline_Item | {{Timeline_Item | ||
Line 55: | Line 64: | ||
<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 | |||
}} | }} | ||
|} | |} |
Latest revision as of 10:45, 16 February 2024
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 "approx.") a more precise date if available, to format MM
/ 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.