Difference between revisions of "Template:Bar stacked/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Ahecht
(Create sandbox version of Template:Bar stacked)
 
imported>Ahecht
(Use module)
 
Line 1: Line 1:
<includeonly>
+
<includeonly>{{safesubst<noinclude />:#invoke:Bar box|stacked}}</includeonly><noinclude>{{documentation|content=
<tr {{#if:{{{id|}}}|class="mw-collapsible {{#switch:{{{collapsed}}}|yes|y|1=mw-collapsed}}" id="mw-customcollapsible-{{{id}}}"}}>
+
Use with {{tl|bar box}}
<td {{#if:{{{note1|}}}||colspan="2"}} style="padding-left:0.4em;padding-right:0.4em;text-align:{{#if:{{{align|}}}|{{#switch:{{#invoke:String|pos|{{{align}}}|1}}|l=left|c=center|r=right|d=left}}|left}}">{{#if:1|{{{1|}}}}}</td>
+
[[Category:Bar chart templates|{{PAGENAME}}]]
{{#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||
 
<div {{#if:{{{title1|}}}|title="{{{title1}}}"}} style="background:{{{3|gray}}};float:left;overflow:hidden;width:{{#expr:{{#if:1|{{{4}}}}}round2}}px">&#8203;</div>}}{{#ifeq:{{#if:1|{{{6|0}}}}}|0||
 
<div {{#if:{{{title2|}}}|title="{{{title2}}}"}} style="background:{{{5|gray}}};float:left;overflow:hidden;width:{{#expr:{{#if:1|{{{6}}}}}round2}}px">&#8203;</div>}}{{#ifeq:{{#if:1|{{{8|0}}}}}|0||
 
<div {{#if:{{{title3|}}}|title="{{{title3}}}"}} style="background:{{{7|gray}}};float:left;overflow:hidden;width:{{#expr:{{#if:1|{{{8}}}}}round2}}px">&#8203;</div>}}{{#ifeq:{{#if:1|{{{10|0}}}}}|0||
 
<div {{#if:{{{title4|}}}|title="{{{title4}}}"}} style="background:{{{9|gray}}};float:left;overflow:hidden;width:{{#expr:{{#if:1|{{{10}}}}}round2}}px">&#8203;</div>}}{{#ifeq:{{#if:1|{{{12|0}}}}}|0||
 
<div {{#if:{{{title5|}}}|title="{{{title5}}}"}} style="background:{{{11|gray}}};float:left;overflow:hidden;width:{{#expr:{{#if:1|{{{12}}}}}round2}}px">&#8203;</div>}}
 
</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>}}
 
</tr>
 
</includeonly><noinclude>{{documentation|content=
 
For use with {{tl|Bar box}}. Can display up to five bars stacked on each other.
 
[[Category:Bar chart templates]]}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 02:58, 15 April 2020

Template documentation

Use with {{bar box}}