Template:Composition bar: Difference between revisions

m
80 revisions imported from wikipedia:Template:Composition_bar
(rv; edit really screwed up the layout of the template regarding the placing of numbers (I had actually thought myself if such an edit could be done, but I see that the template became really "ugly"))
m (80 revisions imported from wikipedia:Template:Composition_bar)
 
(62 intermediate revisions by 19 users not shown)
Line 1:
<div style="{{#ifeq:{{{width|}}}|auto||width: {{#iferror:{{#expr:{{{width|}}}}}|{{{width}}}|{{{width|100}}}px}};}}"><span class="nowrap">{{formatnum:{{{1|50}}}}} / {{formatnum:{{{2|100}}}}}{{#if:{{{per|}}}|&emsp;({{#expr:(({{{1|50}}}/{{{2|100}}})*100) round (-1*{{min|0|{{Order of magnitude|{{#expr:({{{1|50}}}/{{{2|100}}})*100}}}}}}) }}%)}}{{{ref|}}}</span><div role="img" style="{{#ifeq:{{{border|{{{border-color|}}}}}}|none||box-sizing: border-box; border: 1px solid {{{border|{{{border-color|#aaa}}}}}};}} {{#if:{{{background-color|}}}|background-color: {{{background-color}}};}} height: 1.15em; position: relative;"><div style="background-color: {{#if:{{Both|{{{4|}}}|{{{5|}}}}}
{{#tag:timeline |
| rgb({{#expr:255*{{{3|1255}}}}}, {{#expr:255*{{{4|0}}}}}, {{#expr:255*{{{5|0}}})}})
ImageSize = width:100 height:25
| {{{hex|{{{3|#CCCCCC}}}}}}
PlotArea = left:0 bottom:0 top:0 right:0
}}; width: {{#expr:(({{{1|50}}}/{{{2|100}}})*100) round (-1*{{min|0|{{Order of magnitude|{{#expr:({{{1|50}}}/{{{2|100}}})*100}}}}}}) }}%; height: 100%;"></div></div></div><noinclude>
TimeAxis = orientation:horizontal format:yyyy
{{Documentation}}</noinclude>
DateFormat = x.y
Period = from:0 till:{{{2|100}}}
TimeAxis = orientation:horizontal
AlignBars = early
Colors =
id:gray value:rgb(0.85,0.85,0.85)
id:barcolor value:{{#if:{{{hex|}}}
|rgb({{#expr:{{Hex2dec|0x{{str sub|{{{hex}}}|1|2}}}}/255 round 4}},{{#expr:{{Hex2dec|0x{{str sub|{{{hex}}}|3|2}}}}/255 round 4}},{{#expr:{{Hex2dec|0x{{str sub|{{{hex}}}|5|2}}}}/255 round 4}})
|rgb({{{3|1}}},{{{4|0}}},{{{5|0}}})}}
BarData =
bar:Wikipedias
PlotData=
bar:Wikipedias from:0 till:{{{2|100}}} color:gray width:0.2in text:/{{{2|100}}}
bar:Wikipedias from:0 till:{{{1|50}}} color:barcolor width:0.2in text:{{{1|50}}}
}}
<noinclude>
{{Documentation}}
</noinclude>