Difference between revisions of "Template:Info/row"

From The Coppermind
Jump to navigation Jump to search
(+)
m (+kv)
 
Line 6: Line 6:
 
TRACK(+CAT): -->{{#if:{{{CAT|}}}{{{CATS|}}}|{{info/+cat}}|<!-- ELSE -->}}<!--
 
TRACK(+CAT): -->{{#if:{{{CAT|}}}{{{CATS|}}}|{{info/+cat}}|<!-- ELSE -->}}<!--
 
/TRACK -->}}
 
/TRACK -->}}
|- class="{{{line-class |}}}" style="{{{line-style |}}}" {{{line-attrs |}}}
+
|- class="{{{line-class |kv}}}" style="{{{line-style |}}}" {{{line-attrs |}}}
 
! class="{{{title-class|}}}" style="{{{title-style|}}}" {{{title-attrs|}}} | {{{TITLE}}}
 
! class="{{{title-class|}}}" style="{{{title-style|}}}" {{{title-attrs|}}} | {{{TITLE}}}
 
| class="{{{cell-class |}}}" style="{{{cell-style |}}}" {{{cell-attrs |}}} |<!--
 
| class="{{{cell-class |}}}" style="{{{cell-style |}}}" {{{cell-attrs |}}} |<!--
Line 64: Line 64:
 
{{docs/row/optional |param= TRACK |desc= use to include the <code>{{info/{{{TRACK}}} }}</code> [[:category: analysis templates|tracking template]] on the page.}}
 
{{docs/row/optional |param= TRACK |desc= use to include the <code>{{info/{{{TRACK}}} }}</code> [[:category: analysis templates|tracking template]] on the page.}}
   
{{docs/row/optional |param= line-class |desc= CSS classes to use on the row element }}
+
{{docs/row/optional |param= line-class |desc= CSS classes to use on the row element; replaces the default <code>.kv</code> class }}
 
{{docs/row/optional |param= title-class |desc= CSS classes to use on the title cell }}
 
{{docs/row/optional |param= title-class |desc= CSS classes to use on the title cell }}
 
{{docs/row/optional |param= cell-class |desc= CSS classes to use on the main cell }}
 
{{docs/row/optional |param= cell-class |desc= CSS classes to use on the main cell }}

Latest revision as of 19:57, 21 April 2020

{{{TITLE}}} {{{TEXT}}}

This template should be used on {{infobox}} templates. It uses caps-case attributes to make it obvious that it is not a normal template.

Template[edit]

{{architecture
|TITLE=
|TEXT=
|LINK=
|LINK-TEXT=
|CAT=
|CATS=
|REF=
|REFS=
|class=
|line-class=
|title-class=
|cell-class=
|line-style=
|title-style=
|cell-style=
|line-attr=
|title-attr=
|cell-attr=
}}

Parameters[edit]

Highlighted lines indicate mandatory parameters.

Template Parameter Documentation Table
Parameter Description Examples
TITLE the title of this information row

{{{eg}}}

TEXT plain text to fill the row with

{{{eg}}}

LINK instead of passing TEXT generate a link to this page

{{{eg}}}

LINK-TEXT customize the link text of the passed LINK parameter

{{{eg}}}

REF insert a citation straight after the TEXT or LINK parameters

{{{eg}}}

REFS insert some citation straight after the TEXT or LINK parameters

{{{eg}}}

CAT categorise the page with this category

{{{eg}}}

CATS pass categories to insert on this row

{{{eg}}}

TRACK use to include the {{info/{{{TRACK}}} }} tracking template on the page.

{{{eg}}}

line-class CSS classes to use on the row element; replaces the default .kv class

{{{eg}}}

title-class CSS classes to use on the title cell

{{{eg}}}

cell-class CSS classes to use on the main cell

{{{eg}}}

line-style additional CSS styles to use on the row element

{{{eg}}}

title-style additional CSS styles to use on the title cell

{{{eg}}}

cell-style additional CSS styles to use on the main cell

{{{eg}}}

line-attrs additional HTML attributes to use on the row element

{{{eg}}}

title-attrs additional HTML attributes to use on the title cell

{{{eg}}}

cell-attrs additional HTML attributes to use on the main cell

{{{eg}}}