Template:Infobox/doc: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
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 ===
== 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}}


=== Left and right links ===
=== 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}}


=== Omitting links ===
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.
Links can be omitted, such as with border cases.
 
{{Infobox
| Title=Prime Limit 2
| Right Link = 3-limit &rarr;
}}
 
<pre>{{Infobox
| Title=Prime Limit 2
| Right Link = 3-limit &rarr;
}}</pre>
 
{{Clear}}
 
=== Upper and lower links ===
Additional navigation can be added by including any of the following: <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, links can be omitted.
 
{{Infobox
| Title=5L 2s
| Header 1 = Generator
| Data 1 = 685.7¢ to 720¢
| Header 2 = Basic tuning
| Data 2 = 12edo (gen = 700¢)
| Left Link = &larr; 5L 1s
| Right Link = 5L 3s &rarr;
| Upper Link = &uarr; 4L 2s
| Lower Link = &darr; 6L 2s
}}
 
<pre>{{Infobox
| Title=5L 2s
| Header 1 = Generator
| Data 1 = 685.7¢ to 720¢
| Header 2 = Basic tuning
| Data 2 = 12edo (gen = 700¢)
| Left Link = &larr; 5L 1s
| Right Link = 5L 3s &rarr;
| Upper Link = &uarr; 4L 2s
| Lower Link = &darr; 6L 2s
}}</pre>


{{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