Template:Done: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
rem line-breaks
Tels (talk | contribs)
m try again :-
Line 9: Line 9:
<code><nowiki>{{done|n=75}}</nowiki></code>
<code><nowiki>{{done|n=75}}</nowiki></code>


Result:  
Result: {{done|n=75}}
 
{{done|n=75}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly><span style="line-height: 10px; max-height: 10px; height: 10px; bgcolor: inherit; border: 1px solid #404040; margin: 0; padding: 0; padding-right: 100px;"><span style="line-height: 10px; max-height: 10px; height: 10px; background: {{{bg|red}}}; border: none; margin: 0; padding: 0; min-width: {{{n|25}}}px; width: {{{n|25}}}px; padding-left: {{{n|25}}}px;"></span></span> <small>{{{n|25}}}%</small></includeonly>
</noinclude><includeonly><span style="line-height: 10px; max-height: 10px; height: 10px; bgcolor: inherit; border: 1px solid #404040; margin: 0; padding: 0; padding-right: 100px;"><span style="line-height: 10px; max-height: 10px; height: 10px; background: {{{bg|red}}}; border: none; margin: 0; padding: 0; min-width: {{{n|25}}}px; width: {{{n|25}}}px; padding-left: {{{n|25}}}px;"></span></span> <small>{{{n|25}}}%</small></includeonly>

Revision as of 17:14, 17 October 2007

This template implements a progress bar:

  1. The parameter n controls how much percent are displayed as done.
  2. The parameter bg controls the background color.

Example usage

{{done|n=75}}

Result: 75%