Template:Bar box: Difference between revisions

Jump to navigation Jump to search
old>Garimidia
m (1 revision from wikipedia:Template:Bar box)
 
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="barbox {{#switch: {{{float|}}} | left = tleft | right = tright }}" style="border:1px solid silver; font-size:88%; padding:0.4em; width:{{{width|auto}}}; background: white">
{{#switch: {{{float|}}} | left |right=|#default=<table style="margin:{{#ifeq:{{{float|}}}|center|0 auto|0}}; border:none;"><tr><td style="border:none; padding:0;">}}<div class="barbox {{#switch: {{{float|}}} | left = tleft | right = tright|center|none=tnone}}" style="overflow-x: auto;{{{style|}}}">
<table style="border-collapse:collapse; width:100%;">
<div style="border:{{{border_width|1}}}px solid silver; font-size:88%; padding:0.4em; width:{{{width|auto}}}; background: {{{background-color|white}}};">
<table style="text-align:left; border-collapse:collapse; width:100%;">
{{#if:{{{title|}}}|
{{#if:{{{title|}}}|
<tr style="background:{{{titlebar|none}}}"><th colspan="5">{{{title}}}</th></tr>
<tr style="background:{{{titlebar|none}}}"><th style="text-align:center;" colspan="5">{{{title}}}</th></tr>
}}
}}
<tr style="font-size:88%; height:4px;">
<tr style="font-size:88%; height:4px;">
<td style="padding:0 4px;">{{{left1|}}}</td>
<td style="padding:0 4px; text-align:left;">{{{left1|}}}</td>
<td style="padding:0 4px; text-align:right;">{{{left2|}}}</td>
<td style="padding:0 4px; text-align:right;">{{{left2|}}}</td>
<td style="width:{{{barwidth|100px}}};">
<td style="width:{{{barwidth|100px}}}; text-align:left;"></td>
<td style="padding:0 4px; width:5em; text-align:right;">{{{right1|}}}</td>
<td style="padding:0 4px; width:1em; text-align:right;">{{{right1|}}}</td>
<td style="padding:0 4px; text-align:right;">{{{right2|}}}</td>
<td style="padding:0 4px; text-align:right;">{{{right2|}}}</td>
</tr>
{{{bars|}}}
{{{bars|}}}
{{#if:{{{caption|}}}|
{{#if:{{{caption|}}}|
<tr><td colspan="5" style="padding:4px">{{{caption}}}</td></tr>
<tr><td colspan="5" style="padding:5px; text-align:left;">{{{caption}}}</td></tr>
}}
}}
</table>
</table>
</div><noinclude>
</div>
</div>{{#switch: {{{float|}}} | left |right=|#default=</td></tr></table>}}{{#switch: {{{float|}}} | left = | right = | #default=}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 08:46, 21 June 2023