Difference between revisions of "Template:Multi-column"
Jump to navigation
Jump to search
Maczkopeti (talk | contribs) m |
Maczkopeti (talk | contribs) m |
||
Line 1: | Line 1: | ||
<includeonly><table class=multi-col><tr> | <includeonly><table class=multi-col><tr> | ||
− | <td class=left-col style=width:{{#if:{{{3|}}}| | + | <td class=left-col style=width:{{#if:{{{3|}}}|42.96|34}}%>{{{1|}}}</td> |
− | {{#if:{{{3|}}}|<td class=mid-col style=width:28%>{{{2|}}}</td>}} | + | {{#if:{{{3|}}}|<td class=mid-col style=width:28.64%>{{{2|}}}</td>}} |
− | <td class=right-col style=width:{{#if:{{{3|}}}| | + | <td class=right-col style=width:{{#if:{{{3|}}}|42.73|57.04}}%>{{{3|{{{2|}}}}}}</td> |
</tr></table></includeonly><noinclude> | </tr></table></includeonly><noinclude> | ||
=== Support of 2 or 3 columns === | === Support of 2 or 3 columns === |
Revision as of 21:19, 13 June 2015
Support of 2 or 3 columns
Usage: {{multi-column|left|middle|right}}
- left: text of left column.
- middle: text for middle column. Empty for 2-column design.
- right: text of right column. In 3-column mode this column is wider (42%).
Example with 2 columns
red left column |
blue right column with a long long long long long long text |
Example with 3 columns
red left column |
green middle column |
blue right column with a long long long long long long text |