Difference between revisions of "Template:Infobox"
Jump to navigation
Jump to search
Lainiwakura (talk | contribs) m |
Lainiwakura (talk | contribs) (bugfixes, v0.3) |
||
Line 1: | Line 1: | ||
− | <div id="infobox" style="-moz-border-radius:10px;background-color:#f8f8f8;border:2px solid #e0e0e0;margin-right: | + | <div id="infobox" style="-moz-border-radius:10px;background-color:#f8f8f8;border:2px solid #e0e0e0;margin-right:{{{margin}}}%;padding:0px 3px;margin-bottom:10px;width:auto;">[[Image:Information_icon.png|left|30px]]<span style="font-variant:small-caps"><strong>{{{Infotext}}}</strong></span></div> |
<noinclude> | <noinclude> | ||
<br style="clear:both"> | <br style="clear:both"> | ||
---- | ---- | ||
− | Usage: <span style="background:#E6FFE6;"><tt><nowiki>{{Infobox|Infoboxtext}}</nowiki></tt></span>. Simply replace <tt> | + | Usage: <span style="background:#E6FFE6;"><tt><nowiki>{{Infobox|Infoboxtext="text"|margin=50}}</nowiki></tt></span>. Simply replace <tt>"text"</tt> (including speechmarks) with the desired content. |
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> | ||
+ | |||
+ | <!-- Another possible infobox design, accepts more complex arguements: | ||
+ | |||
+ | {| align="center" class="{{{id}}}" style="background: {{{backgroundcolor}}}; border: 2px outset #aaa; padding: .2em; margin-bottom: 3px; font-size: 95%; width: auto;" | ||
+ | | style="padding-right: 4px; padding-left: 4px;" | [[Image:{{{image}}}|32px]] '''{{{heading}}}'''<br /><div align="center"><small>{{{message}}}</small></div> | ||
+ | |}<noinclude> | ||
+ | Usage example:<br/> | ||
+ | <span style="background:#E6FFE6;"><tt><nowiki> | ||
+ | {{Infobox2| | ||
+ | backgroundcolor=#f8f8f8| | ||
+ | image=Information_icon.png| | ||
+ | heading=''"Beware of the [[Black wolf|Wolves]]!"'' | message=Devour their flesh, before they devour yours! :P}} | ||
+ | </nowiki></tt></span> | ||
+ | [[Category:Template|{{PAGENAME}}]]</noinclude> | ||
+ | --> |