Template:Infobox: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m (Protected "Template:Infobox": Widely used page ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
(variable cols)
Line 1: Line 1:
{{High Use}}
{{High Use}}
<onlyinclude><includeonly>{| class="{{{class|infobox}}}" cellpadding="4" style="font-size: {{{font-size|.95em}}}; {{{style|}}}"
<onlyinclude><includeonly>{| class="{{{class|infobox}}}" cellpadding="4" style="font-size: {{{font-size|.95em}}}; {{{style|}}}"
! colspan="2" class="title" | {{{1|}}}
! colspan="{{#vardefineecho:infobox-cols|{{{cols|2}}}}}" class="title" | {{{1|}}}
|-</includeonly></onlyinclude>
|-</includeonly></onlyinclude>



Revision as of 17:16, March 8, 2013

size=40x40px This template is used on over 2500 pages. Take extra care when making changes, testing them in a sandbox first. If changes to this template require changes to pages that use it, you are responsible for making those changes.


Purpose

This template is used to more easily create infobox templates.

Usage

To use this template, start with this code:

{{Infobox|Title}}
{{Infobox/Image|{{{image|}}}}}
{{Infobox/Row|Title1|{{{parameter1|}}}}}
{{Infobox/Row|Title2|{{{parameter2|}}}}}
{{Infobox/Row|Title3|{{{parameter3|}}}}}
{{Infobox/Bottom}}


Any number of rows may be added. Rows that don't have their parameter specified when the infobox is used won't show up. If desired, the infobox class can be changed with a named class parameter, font size can be changed with a font-size parameter, and additional stylings can be added with a named style parameter.