Difference between revisions of "Template:Fill bar"
Jump to navigation
Jump to search
imported>Dispenser (Created) |
imported>Dispenser (IE Workarounds) |
||
| Line 1: | Line 1: | ||
| − | <div style="position:relative | + | <div style="position:relative; font-size:xx-small; {{{style|width:100px;}}}"> |
<div style="width:{{{fill|50%}}};background:{{{color|#ccf}}};"> </div> | <div style="width:{{{fill|50%}}};background:{{{color|#ccf}}};"> </div> | ||
| − | <div style="position:absolute; top:0; width:100%;">{{{text|{{{fill | + | <div style="position:absolute; top:0; left:0; width:100%; text-align:center;">{{{text<includeonly>|{{{fill}}}</includeonly>}}}</div> |
</div><noinclude> | </div><noinclude> | ||
---- | ---- | ||
| Line 8: | Line 8: | ||
==Parameters== | ==Parameters== | ||
| + | === Mandatory === | ||
;fill: Amount filled, value are expressed as percentages. | ;fill: Amount filled, value are expressed as percentages. | ||
| + | === Optional === | ||
;color: Fill color | ;color: Fill color | ||
;text: defaults to fill | ;text: defaults to fill | ||
Revision as of 20:10, 6 July 2007
{{{text}}}
{{Fill bar}}
Parameters
Mandatory
- fill
- Amount filled, value are expressed as percentages.
Optional
- color
- Fill color
- text
- defaults to fill
- style
- specifies the style, when used the width must be specified.
Example
Code
{{fill bar|fill=50%|color=orange|style=border:1px solid black; padding:2px; width:20em; }}
Result
50%
Template:Uncategorized template