Difference between revisions of "Template:Table"
Wikisimpsons - The Simpsons Wiki
Solar Dragon (talk | contribs) |
Solar Dragon (talk | contribs) |
||
Line 6: | Line 6: | ||
{{{1}}} | {{{1}}} | ||
|} | |} | ||
− | |}<noinclude>[[Category:Templates|{{PAGENAME}]][[Category:Table templates|{{PAGENAME}}]]</noinclude> | + | |}<noinclude> |
+ | |||
+ | == Usage == | ||
+ | Typical table structure should be like this: | ||
+ | <pre> | ||
+ | {{Table| | ||
+ | {{TableHeader|A}} | ||
+ | {{TableHeader|B}} | ||
+ | {{TableHeader|C}} | ||
+ | {{TableBodyTop|1}} | ||
+ | {{TableBody|2}} | ||
+ | {{TableBody|3}} | ||
+ | {{TableBodyTop|4}} | ||
+ | {{TableBody|5}} | ||
+ | {{TableBody|6}} | ||
+ | }}</pre> | ||
+ | |||
+ | Makes: | ||
+ | {{Table| | ||
+ | {{TableHeader|A}} | ||
+ | {{TableHeader|B}} | ||
+ | {{TableHeader|C}} | ||
+ | {{TableBodyTop|1}} | ||
+ | {{TableBody|2}} | ||
+ | {{TableBody|3}} | ||
+ | {{TableBodyTop|4}} | ||
+ | {{TableBody|5}} | ||
+ | {{TableBody|6}} | ||
+ | }} | ||
+ | |||
+ | <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>{{TableBodyTopRowspan|Object to go in field|X}}</nowiki> will do a rowspan for the first column of the table's row. The only difference being that there is a "<nowiki>|-</nowiki>" at the top of it. | ||
+ | |||
+ | <nowiki>{{TableColRowspan|Object to go in field|X|Y}}</nowiki> will add both a rowspan and a colspan. "X" is the rowspan number and "Y" is the colspan number in this case. | ||
+ | |||
+ | [[Category:Templates|{{PAGENAME}]][[Category:Table templates|{{PAGENAME}}]]</noinclude> |
Revision as of 14:37, December 20, 2011
|
Usage
Typical table structure should be like this:
{{Table| {{TableHeader|A}} {{TableHeader|B}} {{TableHeader|C}} {{TableBodyTop|1}} {{TableBody|2}} {{TableBody|3}} {{TableBodyTop|4}} {{TableBody|5}} {{TableBody|6}} }}
Makes:
|
{{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.