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.
mNo edit summary
(I guess I'll keep the hooks here for now)
Line 1: Line 1:
<includeonly>{| class="{{{class|wikitable}}}" cellpadding="4" style=" float: right; margin: 0 0 1em 1em; width: 22em; border-collapse: collapse; font-size: {{{font-size|95%}}}; text-align: left; {{{style|}}}"
<onlyinclude><includeonly>{| class="{{{class|infobox}}}" cellpadding="4" style="font-size: {{{font-size|.95em}}}; {{{style|}}}"
! colspan="2" style="text-align: center; font-size:110%;" | {{{1|}}}
! colspan="2" | {{{1|}}}</includeonly></onlyinclude>
{{!-}}</includeonly><noinclude>


==Purpose==
==Purpose==
Line 17: Line 16:
Any number of rows may be added. Rows that don't have their parameter specified when the infobox is used won't show up.
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.
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.
{{Cat|Formatting Templates}}{{Cat|Infobox Templates}}</noinclude>
 
 
{{Cat|Formatting Templates}}
{{Cat|Infobox Templates}}

Revision as of 13:44, August 29, 2012


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.