Difference between revisions of "Template:Infobox/Columns"
Jump to navigation
Jump to search
imported>MusikBot II m (Protected "Template:Infobox/Columns": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))) |
imported>Muboshgu (this becomes too small in the infobox per MOS:ACCESS) |
||
| Line 1: | Line 1: | ||
| − | {{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}|<table class="{{{clase|plainlist}}}" style="{{{style|width:100%; text-align:left; background-color:transparent; border:0; margin:0; padding:0 | + | {{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}|<table class="{{{clase|plainlist}}}" style="{{{style|width:100%; text-align:left; background-color:transparent; border:0; margin:0; padding:0;}}}">{{#if:{{{title|}}}|<tr><th colspan="{{#if:{{{4|}}}|4|{{#if:{{{3|}}}|3|{{#if:{{{2|}}}|2|1}}}}}}" style="{{{titlestyle|text-align:center;}}}">{{{title|}}}</th></tr>}} |
<tr> | <tr> | ||
<td style="{{{style1|}}};{{#if:{{{4|}}}|width:25%;|{{#if:{{{3|}}}|width:33.33%;|width:50%;}}}}">{{{1|}}}</td> | <td style="{{{style1|}}};{{#if:{{{4|}}}|width:25%;|{{#if:{{{3|}}}|width:33.33%;|width:50%;}}}}">{{{1|}}}</td> | ||
Latest revision as of 18:28, 27 July 2020
The following template allows you to include two, three or four columns of the same width separated by a vertical line.
Usage
| |||||
| |||||
| |||||
{{Infobox
|title = Title of the record
...
|data...={{Infobox/Columns|First column|Second column}}
|data...={{Infobox/Columns|First column|Second column|Third column}}
|data...={{Infobox/Columns|First column|Second column|Third column|Fourth column}}
}}
| The above documentation is transcluded from Template:Infobox/Columns/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |