Difference between revisions of "Template:Tabcol"

From RPCS3 Wiki
(Never realised how retarded this template was)
(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"}}
| 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 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 10 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 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>

Latest 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.