Template:Tabcol: Difference between revisions

Template page
m (HerrHulaHoop moved page Template:TabCol to Template:Tabcol without leaving a redirect: Fixed capitalisation as no other template uses capital letters.)
(Never realised how retarded this template was)
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"}}
| 9 = {{#switch: {{{2}}} | 1 = colspan{{=}}"2520" | 2 = colspan{{=}}"1260" | 3 = colspan{{=}}"840" | 4 = colspan{{=}}"630" | 5 = colspan{{=}}"504" | 6 = colspan{{=}}"420" | 7 = colspan{{=}}"360" | 8 = colspan{{=}}"315" | 9 = colspan{{=}}"280" | colspan{{=}}"2520"}}
| 10 = {{#switch: {{{2}}} | 1 = colspan{{=}}"2520" | 2 = colspan{{=}}"1260" | 3 = colspan{{=}}"840" | 4 = colspan{{=}}"630" | 5 = colspan{{=}}"504" | 6 = colspan{{=}}"420" | 7 = colspan{{=}}"360" | 8 = colspan{{=}}"315" | 9 = colspan{{=}}"280"  | 10 = colspan{{=}}"252" | colspan{{=}}"2520"}}
}}</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 13: Line 15:
'''<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 8 columns in this 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 10 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:16, 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 10 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.