Wiktenauer logo.png

Template:Start infobox page

From Wiktenauer
Revision as of 03:07, 21 September 2012 by Michael Chidester (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[edit] [history] [purge] Documentation icon Template documentation

This template and its sister {{end infobox page}} are intended to facilitate the presentation of an infobox template and its documentation on the infobox template's own page. The documentation should be prepared as a {{documentation}} page. This template then assigns it the lefthand side of the infobox template's page, while the infobox template itself appears on the righthand side of the page, using this code:

{| style="width:100%; background:transparent;"
|- style="vertical-align:top;"
| <!-----Lefthand side: documentation----->
{{documentation}}
| <!-------Righthand side: template------->

This template should be placed between <noinclude> and </noinclude> tags at the very top of an infobox template page, immediately before the start of the infobox's code thus:

<noinclude>{{start infobox page}}</noinclude><!--
-->infobox code starts here

The start and end-comment markers ("<!--" and "-->") are important as they remove the possibility of a spurious space appearing. The {{end infobox page}} template should then be placed within <noinclude> and </noinclude> tags on the first line after the end of the template code. For an example, see Infobox Machinima.