Template:Done: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
fix up the HTML |
need a span wrapping |
||
Line 10: | Line 10: | ||
Result: {{done|n=75}} | Result: {{done|n=75}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude><includeonly><div style="float: left; line-height: 0.8em; max-height: 0.8em; height: 0.8em; bgcolor: inherit; border: 1px solid #404040; margin: 0; padding: 0; width: 100px; max-width: 100px; min-width: 100px"><div style="line-height: 0.8em; max-height: 0.8em; height: 0.8em; background: {{{bg|red}}}; border: none; margin: 0; padding: 0; min-width: {{{n|25}}}px; width: {{{n|25}}}px; max-width: {{{n|25}}}px;"></div></div> <small style="position: relative; top: -0.4em;">{{{n|25}}}%</small></includeonly> | </noinclude><includeonly><span><div style="float: left; line-height: 0.8em; max-height: 0.8em; height: 0.8em; bgcolor: inherit; border: 1px solid #404040; margin: 0; padding: 0; width: 100px; max-width: 100px; min-width: 100px"><div style="line-height: 0.8em; max-height: 0.8em; height: 0.8em; background: {{{bg|red}}}; border: none; margin: 0; padding: 0; min-width: {{{n|25}}}px; width: {{{n|25}}}px; max-width: {{{n|25}}}px;"></div></div> <small style="position: relative; top: -0.4em;">{{{n|25}}}%</small></span></includeonly> |
Revision as of 17:38, 17 October 2007
This template implements a progress bar:
- The parameter n controls how much percent are displayed as done.
- The parameter bg controls the background color.
Example usage
{{done|n=75}}
Result:
75%