Difference between revisions of "Template:Infobox"

From Wurmpedia
Jump to navigation Jump to search
m (tweaking)
(Adding CSS)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<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>
+
<templatestyles src="Boxstyle/styles.css" /><templatestyles src="Infobox/styles.css" />
 +
<div class="boxstyle infoboxbox" >
 +
[[Image:Information_icon.png|left|24px]]
 +
<span><strong>{{{1}}}</strong></span></div>
 +
 
 
<noinclude>
 
<noinclude>
 
<br style="clear:both">
 
<br style="clear:both">
 
----
 
----
Usage: <span style="background:#E6FFE6;"><tt><nowiki>{{Infobox|Infotext=text|margin=50}}</nowiki></tt></span>. Simply replace <tt>'text'</tt> with the desired content.
+
Usage: <span style="background:#E6FFE6;"><tt><nowiki>{{infobox|text}}</nowiki></tt></span>. Simply replace <tt>'text'</tt> with the desired content.
  
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>
 
<!-- Another possible infobox design, accepts more complex arguments:
 
 
{| 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>
 
-->
 

Latest revision as of 19:00, 28 April 2021

Information icon.png
{{{1}}}




Usage: {{infobox|text}}. Simply replace 'text' with the desired content.