Template:Infobox/doc: Difference between revisions
| 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. | ||
== | == 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}} | ||
=== | === 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 = ↓ 6L 2s | | Lower Link = ↓ 6L 2s | ||
}}</pre>{{clear}} | }}</pre>{{clear}} | ||