Difference between revisions of "Template:Fmbox"
(test.) |
m (Add doc template) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<table class="plainlinks fmbox {{{class|}}}" style="{{{style|}}}"><tr> | <table class="plainlinks fmbox {{{class|}}}" style="{{{style|}}}"><tr> | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
− | |<!-- Image cell --><td | + | |<!-- Image cell --><td style="padding: 2px 0 2px 0; text-align: center;">[[File:{{{image}}}{{!}}{{{imagewidth|56px}}}{{!}}{{{imagealt|}}}]]</td> |
− | |<!-- Blank cell if no image specified --><td | + | |<!-- Blank cell if no image specified --><td style="padding:none; margin:none; border:none; width:1px;"></td> |
− | }}<td | + | }}<td style="width:100%; padding:0.25em;">{{{contents|{{{text}}}}}}</td> |
{{#if:{{{image2|}}} | {{#if:{{{image2|}}} | ||
− | | <td | + | | <td style="padding: 2px 0 2px 0; text-align:center;">[[File:{{{image2}}}{{!}}{{{image2width|56px}}}{{!}}{{{image2alt|}}}]]</td> |
}} | }} | ||
</tr></table><noinclude> | </tr></table><noinclude> | ||
+ | {{template doc}} | ||
[[Category:Interface templates|Fmbox]] | [[Category:Interface templates|Fmbox]] | ||
[[Category:Templates|Fmbox]] | [[Category:Templates|Fmbox]] | ||
</noinclude> | </noinclude> |
Latest revision as of 03:10, 5 November 2014
{{{text}}} |
Documentation for this template is available at Template:Fmbox on Wikipedia. |
A simple footer/header message box template.
Example
{{Fmbox | image = Information.png | imagewidth = 50px | text = Lorem ipsum dolor sit amet | image2 = Warning red.png | image2width = 20px }}
Generates:
Lorem ipsum dolor sit amet |