Template:Done: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
add color example and change default to be neutral blue |
m sort under "D" as in "Done" |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>This template implements a progress bar: | ||
This template implements a progress bar: | |||
# The parameter '''n''' controls how much percent are displayed as done. | # The parameter '''n''' controls how much percent are displayed as done. | ||
Line 10: | Line 9: | ||
|- | |- | ||
!bgcolor=# | !bgcolor=#ffdead|Code | ||
!bgcolor=# | !bgcolor=#ffdead|Result | ||
|- | |- | ||
Line 18: | Line 17: | ||
|- | |- | ||
|<code><nowiki>{{done|n= | |<code><nowiki>{{done|n=35|bg=#f04040}}</nowiki></code> | ||
|{{done|n= | |{{done|n=35|bg=#f08080}} | ||
|} | |} | ||
[[Category:Templates]] | [[Category:Templates|Done]] | ||
</noinclude><includeonly><div style="display: inline; position: relative; left: 0; top: 0; border: none;"><div style="position: absolute; left: 0; top: 0.2em; line-height: 0.8em; max-height: 0.8em; height: 0.8em; background: 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|#8080ff}}}; border: none; margin: 0; padding: 0; min-width: {{{n|25}}}px; width: {{{n|25}}}px; max-width: {{{n|25}}}px;"></div></div><small style="padding-left: 110px">{{{n|25}}}%</small></div></includeonly> | </noinclude><includeonly><div style="display: inline; position: relative; left: 0; top: 0; border: none;"><div style="position: absolute; left: 0; top: 0.2em; line-height: 0.8em; max-height: 0.8em; height: 0.8em; background: 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|#8080ff}}}; border: none; margin: 0; padding: 0; min-width: {{{n|25}}}px; width: {{{n|25}}}px; max-width: {{{n|25}}}px;"></div></div><small style="padding-left: 110px">{{{n|25}}}%</small></div></includeonly> |
Latest revision as of 21:13, 5 November 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
Code | Result |
---|---|
{{done|n=75}}
|
75% |
{{done|n=35|bg=#f04040}}
|
35% |