Template:Infobox/doc: Difference between revisions
No edit summary |
No edit summary |
||
| 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 == | |||
=== Simple infoboxes === | |||
Rows in an infobox can be added by adding parameters <code><nowiki>Header N</nowiki></code> and <code><nowiki>Row N</nowiki></code>. Up to 30 rows can be added, each with a separate header and data entry. | Rows in an infobox can be added by adding parameters <code><nowiki>Header N</nowiki></code> and <code><nowiki>Row N</nowiki></code>. Up to 30 rows can be added, each with a separate header and data entry. | ||
| Line 44: | Line 46: | ||
{{clear}} | {{clear}} | ||
=== | === With navigation links === | ||
Basic navigation can be added by including <code><nowiki>Left Link</nowiki></code> and <code><nowiki>Right Link</nowiki></code>. | 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. | ||
Note that links are ''not'' automatically formatted. | Note that links are ''not'' automatically formatted; to link to the pages, brackets <code><nowiki>[[ ]]</nowiki></code> must be added. | ||
{{Infobox | {{Infobox | ||
| Line 71: | Line 73: | ||
{{Clear}} | {{Clear}} | ||
For pages that have two varying values, the following links may also be added: <code><nowiki>Upper Left Link</nowiki></code>, <code><nowiki>Upper Link</nowiki></code>, <code><nowiki>Upper Right Link</nowiki></code>, <code><nowiki>Lower Left Link</nowiki></code>, <code><nowiki>Lower Link</nowiki></code>, and <code><nowiki>Lower Right Link</nowiki></code>. As with the left and right links, any of these links can be omitted, such as with border cases. | |||
{{Clear}} | {{Clear}} | ||
=== Headerless rows === | === Headerless rows === | ||
A row that only contains a <code><nowiki>Data N</nowiki></code> entry and no corresponding <code><nowiki>Header N</nowiki></code> is interpreted as a headerless row. This can be used as separators for grouping related information or for information that does not require a header, such as external links. | A row that only contains a <code><nowiki>Data ''N''</nowiki></code> entry and no corresponding <code><nowiki>Header ''N''</nowiki></code> is interpreted as a headerless row. This can be used as separators for grouping related information or for information that does not require a header, such as external links. | ||
{{Infobox | {{Infobox | ||