Difference between revisions of "Template:Float tag"
From Shifti
(going meta - a template to standardize the other floating tag templates and allow easy creation of new ones) |
m (Protected "Template:Float tag": This is a high-risk template, used on many pages throughout Shifti. [edit=sysop:move=sysop]) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | <table class="floatright" style="background:{{{text-background|transparent}}}; border: thin solid #ccc; width:300px;"> | |
| − | + | <tr> | |
| − | {{#if:{{{icon|}}}| | + | {{#if:{{{icon|}}}|<td style="background:{{{icon-background|transparent}}};" width="40px">[[Image:{{{icon}}}|{{{icon-width|30px}}}|center|Icon]]</td>}} |
| − | + | <td style="font-size:75%;"> {{{text}}}</td> | |
| − | + | </tr> | |
| + | </table><noinclude> | ||
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. | 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. | ||
Latest revision as of 02:10, 9 October 2007
| {{{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)
}}