From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(Implemented Variable for Float with original float-right set as default setting for backwards compatibility.)
mNo edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="float:{{#if:{{{float|}}}|{{{float}}}|right}};margin:5px 5px 5px 5px;border:1px solid #7d87bc;background-color:#d0d5f1;padding:3px;">
<div style="float:{{{float|right}}};margin:5px 5px 5px 5px;border:1px solid #7d87bc;background-color:#d0d5f1;padding:3px;">
<div style="padding-top:10px">[[Image:{{{icon}}}|left|50px]]
<div style="padding-top:10px">[[File:{{{icon}}}|left|50px]]
<div style="margin-left: 55px;text-align:center">{{{description}}}</div></div></div>
<div style="margin-left:55px;text-align:{{{align|center}}}">{{{description}}}</div></div></div><noinclude>
<noinclude>
{{-}}
{{cleanup}}
{{important|msg=Please revert my update of custom float variable to original static form if any issues arise with backwards-compatibility.<BR>[[User:theEXIT|theEXIT]] ([[User talk:theEXIT|talk]] <small>•</small> [[Special:Contributions/theEXIT|contribs]]) 19:36, 28 March 2007 (CDT)}}
Template that displays a description along with an icon


[[Category:Templates]]</noinclude>
Template that displays a description along with an icon.
 
<pre>{{iconbox
|icon=imagename.jpg
|description=text description
|float=
|align=
}}</pre>
 
*''icon'': An image for use as an icon. Displays at 50px width.
*''description'': Your text goes here.
*''float'' (optional): Floats the entire box to the left or right, defaults to right.
*''align'' (optional): Aligns the text: left, right, center, justify. Defaults to center.
 
[[Category:Templates|I]]</noinclude>

Latest revision as of 14:51, 26 May 2021

[[File:{{{icon}}}|left|50px]]
{{{description}}}

Template that displays a description along with an icon.

{{iconbox
|icon=imagename.jpg
|description=text description
|float=
|align=
}}
  • icon: An image for use as an icon. Displays at 50px width.
  • description: Your text goes here.
  • float (optional): Floats the entire box to the left or right, defaults to right.
  • align (optional): Aligns the text: left, right, center, justify. Defaults to center.