Template:Float tag

From Shifti
Revision as of 00:47, 13 August 2007 by Bryan (talk | contribs) (silly me, need to use HTML for stuff inside ifs)
Jump to navigation Jump to search
{{#if:|}}
[[Image:{{{icon}}}|30px|center|Icon]]
{{{text}}}

This meta-template is intended for creating other templates of a standard "floating tag" design. It has only one mandatory parameter, "text"; the rest are optional.

A full declaration:

{{float tag
|text = String of displayed text
|icon = Filename.png
|text-background = #ff6600 (default is transparent)
|icon-background = red (default is transparent, which shows text-background)
|icon-width = 20px (defaults to 30px, don't go over 40px)
}}