Difference between revisions of "Template:Fmbox"

From Team Fortress Wiki
Jump to: navigation, search
(cat)
m (Add doc template)
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Ambox
+
<table class="plainlinks fmbox {{{class|}}}" style="{{{style|}}}"><tr>
| class = fmbox
+
  {{#if:{{{image|}}}
| style = margin:0.2em 0; width:100%; border:1px solid #aaa; padding:0px; background:{{#ifeq:{{TALKSPACE}}|{{NAMESPACE}}|#f2f2f2|#f9f9f9}}; {{{style|}}}
+
    |<!-- Image cell --><td style="padding: 2px 0 2px 0; text-align: center;">[[File:{{{image}}}{{!}}{{{imagewidth|56px}}}{{!}}{{{imagealt|}}}]]</td>
| {{#if:{{{image|}}}|image|void}} = {{{image|}}}  
+
    |<!-- Blank cell if no image specified --><td style="padding:none; margin:none; border:none; width:1px;"></td>
  | {{#if:{{{image|}}}|imagewidth|void}} = {{{imagewidth|56px}}}
+
  }}<td style="width:100%; padding:0.25em;">{{{contents|{{{text}}}}}}</td>
  | {{#if:{{{image|}}}|imagealt|void}} = {{{imagealt|}}}
+
  {{#if:{{{image2|}}}
| contents = {{{contents|{{{text}}}}}}
+
    | <td style="padding: 2px 0 2px 0; text-align:center;">[[File:{{{image2}}}{{!}}{{{image2width|56px}}}{{!}}{{{image2alt|}}}]]</td>
| {{#if:{{{image2|}}}|image2|void}} = {{{image2|}}}
+
  }}
  | {{#if:{{{image2|}}}|image2width|void}} = {{{image2width|56px}}}
+
</tr></table><noinclude>
  | {{#if:{{{image2|}}}|image2alt|void}} = {{{image2alt|}}}
+
{{template doc}}
}}<noinclude>
 
 
[[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: