Difference between revisions of "Template:Info/row"

Jump to navigation Jump to search
m
+kv
(+)
 
m (+kv)
 
(One intermediate revision by the same user not shown)
<noinclude>
{| class="infobox" style="margin: auto;"
|-</noinclude><!-- TRACK: -->{{#if:{{{track|}}}|{{info/{{{track}}} }}<!-- /TRACK -->}}
|- TRACK: class="-->{{#if:{class{{TRACK|kv}}}" |{{info/{attr|{{TRACK}}} }}<!--
TRACK(^REF): -->{{#if:{{{REF|}}}{{{REFS|}}}|{{info/^ref}}|<!-- ELSE -->}}<!--
! {{{attr1|}}} | {{{1}}}
TRACK(+CAT): -->{{#if:{{{CAT|}}}{{{CATS|}}}|{{info/+cat}}|<!-- ELSE -->}}<!--
| {{{attr2|}}} | {{{2}}}
/TRACK -->}}
|- class="{{{line-class |kv}}}" style="{{{line-style |}}}" {{{line-attrs |}}}
! class="{{{title-class|}}}" style="{{{title-style|}}}" {{{title-attrs|}}} | {{{TITLE}}}
| class="{{{cell-class |}}}" style="{{{cell-style |}}}" {{{cell-attrs |}}} |<!--
 
IF: -->{{#if:{{{LINK|}}}|<!--
LINK: -->[[{{{LINK}}}|{{{LINK-TEXT|{{{LINK}}}}|<!-- /LINK-TEXT -->}}}]]<!-- /LINK
REF: -->{{{REFS|{{{REF|}}}|}}}<!-- /REF
ELSE:-->|<!--
TEXT: -->{{{TEXT}}}<!-- /TEXT
REF: -->{{{REFS|{{{REF|}}}|}}}<!-- /REF
/IF-->}}<!--
 
CATEGORIES: -->{{{CATS|{{#if:{{{CAT|}}}|<!-- CAT:-->[[category: {{{CAT}}}]]<!-- /IF -->}}<!-- /CATS -->|}}}<!-- -->
|-<noinclude>
|}
 
This template should be used on {{t|infobox}} templates. It uses caps-case attributes to make it obvious that it is not a normal template.
 
=== Template ===
 
<pre class=mw-code>
{{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=
}}
</pre>
 
=== Parameters ===
Highlighted lines indicate '''mandatory''' parameters.
 
{{docs}}
 
{{docs/row/required |param= TITLE |desc= the title of this information row }}
{{docs/row/optional |param= TEXT |desc= plain text to fill the row with }}
{{docs/row/optional |param= LINK |desc= instead of passing <code>TEXT</code> generate a link to this page }}
{{docs/row/optional |param= LINK-TEXT |desc= customize the link text of the passed <code>LINK</code> parameter }}
{{docs/row/optional |param= REF |desc= insert a citation straight after the <code>TEXT</code> or <code>LINK</code> parameters }}
{{docs/row/optional |param= REFS |desc= insert some citation straight after the <code>TEXT</code> or <code>LINK</code> parameters }}
{{docs/row/optional |param= CAT |desc= categorise the page with this category }}
{{docs/row/optional |param= CATS |desc= pass categories to insert on this row }}
If the <code>{{{track}}}<docs/code>row/optional parameter|param= isTRACK passed,|desc= use to include the <code>{{info/{{{trackTRACK}}} }}</code> [[:category: analysis templates|tracking template]] will be added if the row appears on the page.}}
 
{{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= cell-class |desc= CSS classes to use on the main cell }}
{{docs/row/optional |param= line-style |desc= additional CSS styles to use on the row element }}
{{docs/row/optional |param= title-style |desc= additional CSS styles to use on the title cell }}
{{docs/row/optional |param= cell-style |desc= additional CSS styles to use on the main cell }}
{{docs/row/optional |param= line-attrs |desc= additional HTML attributes to use on the row element }}
{{docs/row/optional |param= title-attrs |desc= additional HTML attributes to use on the title cell }}
{{docs/row/optional |param= cell-attrs |desc= additional HTML attributes to use on the main cell }}
 
 
|}<!-- /docs -->
If the <code>{{{track}}}</code> parameter is passed, the <code>{{info/{{{track}}} }}</code> [[:category: analysis templates|tracking template]] will be added if the row appears on the page.
 
[[category: rows|info]]
40,275

edits

Navigation menu