Difference between revisions of "Template:Fmbox"

From Team Fortress Wiki
Jump to: navigation, search
(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 class="ambox-image" style="padding: none;">[[File:{{{image}}}{{!}}{{{imagewidth|56px}}}{{!}}{{{imagealt|}}}]]</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 class="ambox-empty-cell" style="padding: none;"></td>
+
     |<!-- Blank cell if no image specified --><td style="padding:none; margin:none; border:none; width:1px;"></td>
   }}<td class="ambox-text" style="padding: none;">{{{contents|{{{text}}}}}}</td>
+
   }}<td style="width:100%; padding:0.25em;">{{{contents|{{{text}}}}}}</td>
 
   {{#if:{{{image2|}}}
 
   {{#if:{{{image2|}}}
     | <td class="ambox-image2" style="padding: none;">[[File:{{{image2}}}{{!}}{{{image2width|56px}}}{{!}}{{{image2alt|}}}]]</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

Template documentation [view] [edit] [history] [purge]

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: