Difference between revisions of "Template:Bar stacked"
Jump to navigation
Jump to search
imported>Ahecht (Don't display zero-width bars, replace {{trim| with {{#if:1| (which is all Template:Trim does), and remove whitespace to reduce post-expand include size.) |
imported>MusikBot II m (Protected "Template:Bar stacked": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 4: | Line 4: | ||
{{#if:{{{note1|}}}|<td style="padding-left:0.4em;padding-right:0.4em;text-align:{{#if:{{{align|}}}|{{#switch:{{#invoke:String|pos|{{{align}}}|2}}|l=left|c=center|r=right|d=right}}|right}}">{{{note1}}}</td>}} | {{#if:{{{note1|}}}|<td style="padding-left:0.4em;padding-right:0.4em;text-align:{{#if:{{{align|}}}|{{#switch:{{#invoke:String|pos|{{{align}}}|2}}|l=left|c=center|r=right|d=right}}|right}}">{{{note1}}}</td>}} | ||
<td style="border-left:1px solid silver;border-right:1px solid silver">{{#ifeq:{{#if:1|{{{4|0}}}}}|0|| | <td style="border-left:1px solid silver;border-right:1px solid silver">{{#ifeq:{{#if:1|{{{4|0}}}}}|0|| | ||
| − | <div {{#if:{{{title1|}}}|title="{{{title1}}}"}} style="background:{{{3|gray}}};float:left;overflow:hidden;width:{{#if:1|{{{4 | + | <div {{#if:{{{title1|}}}|title="{{{title1}}}"}} style="background:{{{3|gray}}};float:left;overflow:hidden;width:{{#expr:{{#if:1|{{{4}}}}}round2}}px">​</div>}}{{#ifeq:{{#if:1|{{{6|0}}}}}|0|| |
| − | <div {{#if:{{{title2|}}}|title="{{{title2}}}"}} style="background:{{{5|gray}}};float:left;overflow:hidden;width:{{#if:1|{{{6 | + | <div {{#if:{{{title2|}}}|title="{{{title2}}}"}} style="background:{{{5|gray}}};float:left;overflow:hidden;width:{{#expr:{{#if:1|{{{6}}}}}round2}}px">​</div>}}{{#ifeq:{{#if:1|{{{8|0}}}}}|0|| |
| − | <div {{#if:{{{title3|}}}|title="{{{title3}}}"}} style="background:{{{7|gray}}};float:left;overflow:hidden;width:{{#if:1|{{{8 | + | <div {{#if:{{{title3|}}}|title="{{{title3}}}"}} style="background:{{{7|gray}}};float:left;overflow:hidden;width:{{#expr:{{#if:1|{{{8}}}}}round2}}px">​</div>}}{{#ifeq:{{#if:1|{{{10|0}}}}}|0|| |
| − | <div {{#if:{{{title4|}}}|title="{{{title4}}}"}} style="background:{{{9|gray}}};float:left;overflow:hidden;width:{{#if:1|{{{10 | + | <div {{#if:{{{title4|}}}|title="{{{title4}}}"}} style="background:{{{9|gray}}};float:left;overflow:hidden;width:{{#expr:{{#if:1|{{{10}}}}}round2}}px">​</div>}}{{#ifeq:{{#if:1|{{{12|0}}}}}|0|| |
| − | <div {{#if:{{{title5|}}}|title="{{{title5}}}"}} style="background:{{{11|gray}}};float:left;overflow:hidden;width:{{#if:1|{{{12 | + | <div {{#if:{{{title5|}}}|title="{{{title5}}}"}} style="background:{{{11|gray}}};float:left;overflow:hidden;width:{{#expr:{{#if:1|{{{12}}}}}round2}}px">​</div>}} |
</td> | </td> | ||
<td {{#if:{{{note2|}}}||colspan="2"}} style="padding-left:0.4em;padding-right:0.4em;text-align:{{#if:{{{align|}}}|{{#switch:{{#invoke:String|pos|{{{align}}}|3}}|l=left|c=center|r=right|d=left}}|left}}">{{#if:1|{{{2|}}}}}</td> | <td {{#if:{{{note2|}}}||colspan="2"}} style="padding-left:0.4em;padding-right:0.4em;text-align:{{#if:{{{align|}}}|{{#switch:{{#invoke:String|pos|{{{align}}}|3}}|l=left|c=center|r=right|d=left}}|left}}">{{#if:1|{{{2|}}}}}</td> | ||
{{#if:{{{note2|}}}|<td style="padding-left:0.4em;padding-right:0.4em;text-align:{{#if:{{{align|}}}|{{#switch:{{#invoke:String|pos|{{{align}}}|4}}|l=left|c=center|r=right|d=right}}|right}}">{{{note2}}}</td>}} | {{#if:{{{note2|}}}|<td style="padding-left:0.4em;padding-right:0.4em;text-align:{{#if:{{{align|}}}|{{#switch:{{#invoke:String|pos|{{{align}}}|4}}|l=left|c=center|r=right|d=right}}|right}}">{{{note2}}}</td>}} | ||
</tr> | </tr> | ||
| − | </includeonly><noinclude> | + | </includeonly><noinclude>{{documentation|content= |
For use with {{tl|Bar box}}. Can display up to five bars stacked on each other. | For use with {{tl|Bar box}}. Can display up to five bars stacked on each other. | ||
| − | [[Category:Bar chart templates]] | + | [[Category:Bar chart templates]]}} |
</noinclude> | </noinclude> | ||