Difference between revisions of "Template:Infobox/row"
From Twinsuniverse
J McKalling (Talk | contribs) |
J McKalling (Talk | contribs) |
||
| Line 40: | Line 40: | ||
==Examples== | ==Examples== | ||
| + | <table class="infobox land"> | ||
| + | {{Infobox/row|header=Twinsun|class=title}} | ||
| + | {{Infobox/row|label=Example?|data=Yes, of cource!}} | ||
| + | {{Infobox/row|label=Theme|data=Land}} | ||
| + | {{Infobox/row|header=Some Tests|class=subtitle}} | ||
| + | {{Infobox/row|label=Tall label|data=Does this<br>look<br>Right?}} | ||
| + | {{Infobox/row|label=Hello|data=world!}} | ||
| + | {{Infobox/row|data=This is a better way<br>of showing multiple lines,<br>just a data-only row.}} | ||
| + | </table> | ||
[[Category:System Templates]] | [[Category:System Templates]] | ||
[[Category:Article Infoboxes| ]] | [[Category:Article Infoboxes| ]] | ||
</noinclude> | </noinclude> | ||
Revision as of 21:23, 20 December 2012
This template is used by Template:Infobox to add a row to the table. A row can be a full-row header, a half-row label with data, or a (multi-line) data-only row.
| This article is a stub [list all]. You can help the Twinsuniverse by expanding it. |
Parameters
- header: Specifying this parameter makes this row a header, and further ignores any data or label (case sensitive, defaults to non-header row)
- label: Specifying this parameter if the row isn't a header, adds a half-row label in front of the data (case sensitive, defaults to data-only row)
- data: Specify this parameter to make the row display data, if it isn't a header row (case sensitive, defaults to nothing displayed)
- class: The class of the header tablecell if the row is a header, or the data tablecell otherwise (case sensitive, defaults to "subtitle" for header, or no specific class for data)
Note: When neither data nor header are specified, the row will fully collapse and ignore any other specified values.
Note: The data may contain multiple lines of text, but if the label is also specified, the label will render stretched across the height of the data. So only specify a label if the data contains just a single line.
Syntax
When specifying a header row, use this syntax:
{{Infobox/row
|header=some header text
|class=subtitle
}}
Otherwise, when specifying a row that contains data:
{{Infobox/row
|label=some optional label text
|data=text
|class=
}}
Examples
| Twinsun | |
|---|---|
| Example? |
Yes, of cource! |
| Theme |
Land |
| Some Tests | |
| Tall label |
Does this |
| Hello |
world! |
|
This is a better way |
|