Editing Template:Info/row

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
{| class="infobox" style="margin: auto;"
 
{| class="infobox" style="margin: auto;"
|-</noinclude><!--
+
|-</noinclude><!-- TRACK: -->{{#if:{{{track|}}}|{{info/{{{track}}} }}<!-- /TRACK -->}}
TRACK: -->{{#if:{{{TRACK|}}}|{{info/{{{TRACK}}} }}<!--
+
|- class="{{{class|kv}}}" {{{attr|}}}
  +
! {{{attr1|}}} | {{{1}}}
TRACK(^REF): -->{{#if:{{{REF|}}}{{{REFS|}}}|{{info/^ref}}|<!-- ELSE -->}}<!--
 
  +
| {{{attr2|}}} | {{{2}}}
TRACK(+CAT): -->{{#if:{{{CAT|}}}{{{CATS|}}}|{{info/+cat}}|<!-- ELSE -->}}<!--
 
/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>
 
|-<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.
+
This template should be used on {{t|infobox}} templates.
 
=== 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 }}
 
{{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; 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 }}
 
 
   
 
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.
|}<!-- /docs -->
 
   
 
[[category: rows|info]]
 
[[category: rows|info]]

Please note that all contributions to The Coppermind are considered to be released under the CC4 by-nc-nd (see Coppermind:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)