Template:Infobox/doc: Difference between revisions

Ganaram inukshuk (talk | contribs)
Ganaram inukshuk (talk | contribs)
Line 19: Line 19:
: Text for a row's header cell and data cell. A row's header cell may be omitted for simple infoboxes. Up to 30 rows are supported using the template.
: Text for a row's header cell and data cell. A row's header cell may be omitted for simple infoboxes. Up to 30 rows are supported using the template.


== Basic usage ==
== Usage ==


=== Infobox rows ===
=== Infobox rows ===
Rows in an infobox can be added by adding parameters <code>Header ''N''</code> and <code>Row ''N''</code>. Up to 30 rows can be added, each with a separate header and data entry. An optional <code>Header Row</code> and <code>Footer Row</code> may also be added.
Rows in an infobox can be added by adding parameters <code>Header ''N''</code> and <code>Row ''N''</code>. Up to 30 rows can be added, each with a separate header and data entry.
 
An optional <code>Header Row</code> and <code>Footer Row</code> may also be added. Infoboxes that display complex information may have its template name passed into itself to provide navbar links.


{{Infobox
{{Infobox
Line 34: Line 36:
| Data 3 = 3.42385 bits
| Data 3 = 3.42385 bits
| Footer Row = Listen on Xencalc
| Footer Row = Listen on Xencalc
| name = Infobox example
}}
}}


Line 46: Line 49:
| Data 3 = 3.42385 bits
| Data 3 = 3.42385 bits
| Footer Row = Listen on Xencalc
| Footer Row = Listen on Xencalc
| name = Infobox example
}}</pre>
}}</pre>


{{clear}}
{{clear}}


=== With navigation links ===
=== Navigation links ===
Basic navigation can be added by including <code><nowiki>Left Link</nowiki></code> and <code><nowiki>Right Link</nowiki></code>. Links may be omitted, such as with border cases.
Basic navigation can be added by including <code><nowiki>Left Link</nowiki></code> and <code><nowiki>Right Link</nowiki></code>. Links may be omitted, such as with border cases.


Line 181: Line 185:
| Lower Link = &darr; 6L 2s
| Lower Link = &darr; 6L 2s
}}</pre>{{clear}}
}}</pre>{{clear}}
=== Navbar links ===
Infoboxes that display complex information may have its template name passed into itself to provide view/talk/edit links. These links are placed at the bottom.
{{Infobox
| Title=12edo
| Header 1 = Size of fifth
| Data 1 = 700¢
| Header 2 = Size of step
| Data 2 = 100¢
| Left Link = &larr; 11edo
| Right Link = 13edo &rarr;
| name = Infobox example
}}
<pre>{{Infobox
| Title=12edo
| Header 1 = Size of fifth
| Data 1 = 700¢
| Header 2 = Size of step
| Data 2 = 100¢
| Left Link = &larr; 11edo
| Right Link = 13edo &rarr;
| name = Infobox example
}}</pre>