Difference between revisions of "Template:Table"
Cook879bot (talk | contribs) m (Robot: Changing template: TableHeader) |
Cook879bot (talk | contribs) m (Robot: Changing template: TableBodyTop) |
||
Line 15: | Line 15: | ||
{{TH|B}} | {{TH|B}} | ||
{{TH|C}} | {{TH|C}} | ||
− | {{ | + | {{TBT|1}} |
{{TableBody|2}} | {{TableBody|2}} | ||
{{TableBody|3}} | {{TableBody|3}} | ||
− | {{ | + | {{TBT|4}} |
{{TableBody|5}} | {{TableBody|5}} | ||
{{TableBody|6}} | {{TableBody|6}} | ||
Line 28: | Line 28: | ||
{{TH|B}} | {{TH|B}} | ||
{{TH|C}} | {{TH|C}} | ||
− | {{ | + | {{TBT|1}} |
{{TableBody|2}} | {{TableBody|2}} | ||
{{TableBody|3}} | {{TableBody|3}} | ||
− | {{ | + | {{TBT|4}} |
{{TableBody|5}} | {{TableBody|5}} | ||
{{TableBody|6}} | {{TableBody|6}} | ||
}} | }} | ||
− | The only difference between <nowiki>{{ | + | The only difference between <nowiki>{{TBT}} and {{TableBody}}</nowiki> is that TableBodyTop has a <nowiki>|-</nowiki> at the top of it to separate that row from the next. Therefore, it should go at the top of each row. |
<nowiki>{{TableColspan|Object to go in field|X}}</nowiki> Will add a "colspan" to the table, where "X" is the number of columns you want to take over. <nowiki>{{TableRowspan|Object to go in field|X}}</nowiki> will do the same, but with rows. | <nowiki>{{TableColspan|Object to go in field|X}}</nowiki> Will add a "colspan" to the table, where "X" is the number of columns you want to take over. <nowiki>{{TableRowspan|Object to go in field|X}}</nowiki> will do the same, but with rows. |
Revision as of 17:56, February 29, 2012
|
Usage
Typical table structure should be like this:
{{Table| {{TH|A}} {{TH|B}} {{TH|C}} {{TBT|1}} {{TableBody|2}} {{TableBody|3}} {{TBT|4}} {{TableBody|5}} {{TableBody|6}} }}
Makes:
|
The only difference between {{TBT}} and {{TableBody}} is that TableBodyTop has a |- at the top of it to separate that row from the next. Therefore, it should go at the top of each row.
{{TableColspan|Object to go in field|X}} Will add a "colspan" to the table, where "X" is the number of columns you want to take over. {{TableRowspan|Object to go in field|X}} will do the same, but with rows.
{{TableBodyTopRowspan|Object to go in field|X}} will do a rowspan for the first column of the table's row. The only difference being that there is a "|-" at the top of it.
{{TableColRowspan|Object to go in field|X|Y}} will add both a rowspan and a colspan. "X" is the rowspan number and "Y" is the colspan number in this case.