HerrHulaHoop (talk | contribs) (Never realised how retarded this template was) |
HerrHulaHoop (talk | contribs) (This doesn't work. Perhaps there's a hardlimit for number of columns that can be present in a table.) Tag: Undo |
||
Line 8: | Line 8: | ||
| 7 = {{#switch: {{{2}}} | 1 = colspan{{=}}"420" | 2 = colspan{{=}}"210" | 3 = colspan{{=}}"140" | 4 = colspan{{=}}"105" | 5 = colspan{{=}}"84" | 6 = colspan{{=}}"70" | 7 = colspan{{=}}"60" | colspan{{=}}"420"}} | | 7 = {{#switch: {{{2}}} | 1 = colspan{{=}}"420" | 2 = colspan{{=}}"210" | 3 = colspan{{=}}"140" | 4 = colspan{{=}}"105" | 5 = colspan{{=}}"84" | 6 = colspan{{=}}"70" | 7 = colspan{{=}}"60" | colspan{{=}}"420"}} | ||
| 8 = {{#switch: {{{2}}} | 1 = colspan{{=}}"840" | 2 = colspan{{=}}"420" | 3 = colspan{{=}}"280" | 4 = colspan{{=}}"210" | 5 = colspan{{=}}"168" | 6 = colspan{{=}}"140" | 7 = colspan{{=}}"120" | 8 = colspan{{=}}"105" | colspan{{=}}"840"}} | | 8 = {{#switch: {{{2}}} | 1 = colspan{{=}}"840" | 2 = colspan{{=}}"420" | 3 = colspan{{=}}"280" | 4 = colspan{{=}}"210" | 5 = colspan{{=}}"168" | 6 = colspan{{=}}"140" | 7 = colspan{{=}}"120" | 8 = colspan{{=}}"105" | colspan{{=}}"840"}} | ||
}}</includeonly><noinclude>This template aims to ease the creation of a uniform table with different number of columns in each row. | }}</includeonly><noinclude>This template aims to ease the creation of a uniform table with different number of columns in each row. | ||
Line 15: | Line 13: | ||
'''<nowiki>{{ tabcol</nowiki>''' | ''parameter'' | ''parameter'' '''}}''' | '''<nowiki>{{ tabcol</nowiki>''' | ''parameter'' | ''parameter'' '''}}''' | ||
* The first parameter captures the maximum number of columns present in the variable portion of the table. Currently, the table can accept up to | * The first parameter captures the maximum number of columns present in the variable portion of the table. Currently, the table can accept up to 8 columns in this parameter. | ||
* The second parameter captures the number number of columns to be present in that particular row. Needless to say, the number mentioned in the second parameter cannot exceed the first. | * The second parameter captures the number number of columns to be present in that particular row. Needless to say, the number mentioned in the second parameter cannot exceed the first. | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 20:36, 1 October 2020
This template aims to ease the creation of a uniform table with different number of columns in each row.
Syntax
{{ tabcol | parameter | parameter }}
- The first parameter captures the maximum number of columns present in the variable portion of the table. Currently, the table can accept up to 8 columns in this parameter.
- The second parameter captures the number number of columns to be present in that particular row. Needless to say, the number mentioned in the second parameter cannot exceed the first.