Difference between revisions of "Template:Table"
Wikisimpsons - The Simpsons Wiki
Solar Dragon (talk | contribs) |
Solar Dragon (talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
{{{1}}} | {{{1}}} | ||
|} | |} | ||
− | |}{{#switch:{{{clearall| | + | |}{{#switch:{{{clearall|yes}}}|yes=<br clear=all>|no=}}<noinclude> |
== Usage == | == Usage == | ||
+ | {{Main|Help:Table markup}} | ||
Typical table structure should be like this: | Typical table structure should be like this: | ||
<pre> | <pre> | ||
Line 38: | Line 39: | ||
The only difference between <nowiki>{{TBT}} and {{TB}}</nowiki> is that TBT 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. | The only difference between <nowiki>{{TBT}} and {{TB}}</nowiki> is that TBT 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>{{ | + | <nowiki>{{TCs|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>{{TRs|Object to go in field|X}}</nowiki> will do the same, but with rows. |
<nowiki>{{TRsT|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>{{TRsT|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. |
Latest revision as of 18:05, September 18, 2014
|
Usage
Typical table structure should be like this:
{{Table| {{TH|A}} {{TH|B}} {{TH|C}} {{TBT|1}} {{TB|2}} {{TB|3}} {{TBT|4}} {{TB|5}} {{TB|6}} }}
Makes:
|
The only difference between {{TBT}} and {{TB}} is that TBT has a |- at the top of it to separate that row from the next. Therefore, it should go at the top of each row.
{{TCs|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. {{TRs|Object to go in field|X}} will do the same, but with rows.
{{TRsT|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.
{{TCRs|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.