Template:Infobox: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(first stab)
 
m (rem space)
Line 1: Line 1:
<includeonly>
<div style="padding: 0.4em; border: {{{border|2px dashed #402020}}}; background: {{{bg|#e0e0e0}}}; text-align: center; color: {{{fg|#000000}}}">
{{{text|Please set the text parameter.}}}
</div>
</includeonly>
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Line 41: Line 46:


|}
|}
</noinclude>
</noinclude>
<includeonly>
<div style="padding: 0.4em; border: {{{border|2px dashed #402020}}}; background: {{{bg|#e0e0e0}}}; text-align: center; color: {{{fg|#000000}}}">
{{{text|Please set the text parameter.}}}
</div>
</includeonly>

Revision as of 12:58, 7 October 2007


Usage

Include this template at the top of some page like so:

 {{infobox|text=
 Message to displayed here.
 }}

Parameters

This template takes the following parameters:

Name Example Description
text {{infobox|text=This article needs cleaning up.}} Mandatory. The text to display.
bg {{infobox|bg=#404040|text=Warning!}} Optional. The background color.
fg {{infobox|fg=#ff3030|text=Warning!}} Optional. The foreground (or text) color.
border {{infobox|border=2px dashed red|text=Warning!}} Optional. The border width, style and color.