Difference between revisions of "Template:Infobox"

From Wurmpedia
Jump to navigation Jump to search
m
(bugfixes, v0.3)
Line 1: Line 1:
<div id="infobox" style="-moz-border-radius:10px;background-color:#f8f8f8;border:2px solid #e0e0e0;margin-right:50%;padding:0px 3px;margin-bottom:10px;width:auto;">[[Image:Information_icon.png|left|30px]]<span style="font-variant:small-caps"><strong>{{{1}}}</strong></span></div>
+
<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>'Infoboxtext'</tt> with the desired content.
+
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>
 +
-->

Revision as of 03:05, 26 January 2007

Information icon.png
{{{Infotext}}}



Usage: {{Infobox|Infoboxtext="text"|margin=50}}. Simply replace "text" (including speechmarks) with the desired content.