Template talk:Progress bar
Appearance
(Redirected from Template talk:Progress bar/doc)
Very clever :-). Pcb21 Pete 00:17, 6 April 2008 (UTC)
Question and proposal
[edit]- What does the height=15x mean in the template code?
- When using the Text argument, I don't know how to precede my custom text with a space:
60% completed (estimate)
- I propose adding a height or thickness to the bar, by including a style one-liner.
The new code would look like this (I don't know how to highlight part of a <pre> section):
{| style="border: 1px solid black" cellspacing=1 width={{{width|75%}}} height=15x align=center |+ <big>'''{{{1|0}}}%'''</big>{{{Text| completed <small>(estimate)</small>}}} |- style="height:{{{height|1}}}px" |align=center width=0.{{{1|000.00}}}% style=background:#7fff00| |align=center width={{ #expr: 100-{{{1|000.00}}}}}% style=background:#ff7f50| |}
The new code is: |- style="height:{{{height|1}}}px"
Here is an example from my sandbox version (which also has a space in front of the Text argument):
(Fehlschlag (talk) 11:15, 31 December 2008 (UTC))
- I hand't seen this message until now (I came to the talk page to see whether anyone had questioned/explained that strange width=0.{{{1|000.00}}}% syntax (btw it breaks when one enters 100)... coincidentally, in the course of my last few edits to the template I solved the issues you pointed here (except the whitespace, which I added now after reading this). Cheers, --Waldir talk 17:24, 11 March 2009 (UTC)