Difference between revisions of "Template:Fmbox"

From Team Fortress Wiki
Jump to: navigation, search
(ditching css styles.)
m (Add doc template)
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
     |<!-- Image cell --><td style="padding: 2px 0 2px 0; text-align: center;">[[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 style="padding:none; margin:none; border:none; width:1px;"></td>
 
     |<!-- Blank cell if no image specified --><td style="padding:none; margin:none; border:none; width:1px;"></td>
   }}<td style="width:100%;">{{{contents|{{{text}}}}}}</td>
+
   }}<td style="width:100%; padding:0.25em;">{{{contents|{{{text}}}}}}</td>
 
   {{#if:{{{image2|}}}
 
   {{#if:{{{image2|}}}
 
     | <td style="padding: 2px 0 2px 0; text-align:center;">[[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: