Template:Infobox/doc: Difference between revisions
documentation |
No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{dochead}}{{ | {{dochead | header = metatemplate }} | ||
{{wikipedia}} | |||
'''{{ARTICLEROOTPAGENAME}}''' is intended as a meta-template (i.e. a template intended mainly for constructing other templates). Although using [[Module:Infobox]] directly is the primary way to create infoboxes (such as those that automatically add entries), this template can be used standalone, such as with prototyping or making simple infoboxes. See [[:Category:Infoboxes]] to see all templates that generate infoboxes.{{clear}} | '''{{ARTICLEROOTPAGENAME}}''' is intended as a meta-template (i.e. a template intended mainly for constructing other templates). Although using [[Module:Infobox]] directly is the primary way to create infoboxes (such as those that automatically add entries), this template can be used standalone, such as with prototyping or making simple infoboxes. See [[:Category:Infoboxes]] to see all templates that generate infoboxes.{{clear}} | ||
== Parameters == | == Parameters == | ||
; <code>Title</code> (recommended; default <code>Infobox Title</code>) | ; <code>Title</code> (recommended; default <code>Infobox Title</code>) | ||
| Line 18: | Line 16: | ||
; <code>Header ''N''</code> (recommended) and <code>Data ''N''</code> (recommended) | ; <code>Header ''N''</code> (recommended) and <code>Data ''N''</code> (recommended) | ||
: 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. | ||
; <code>name</code> (optional) | |||
: The template's name, needed to create its view/talk/edit links. | |||
== Usage == | == Usage == | ||
| Line 164: | Line 165: | ||
{{clear}} | {{clear}} | ||
These templates can be used as the infobox's <code>Title</code>, producing the same result as using the infobox's <code>Link</code> parameters. | These templates can be used as the infobox's <code>Title</code>, producing the same result as using the infobox's <code>Link</code> parameters. As such, the <code>Link</code> parameters must not be used at the same time as using the numlinks templates as the <code>Title</code>. | ||
{{Infobox | {{Infobox | ||