• New article from the Springfield Shopper: Krusty’s aunt helps repair Homer’s relationship with Patty and Selma this December!
  • New article from the Springfield Shopper: Season 36 News: A new episode title, “P.S., I Hate You”, has been announced!
  • New article from the Springfield Shopper: Season 36 News: More Preview Images and Details for “O C’mon All Ye Faithful” have been released!
  • Wikisimpsons needs more Featured Article, Picture, Quote, Episode and Comprehensive article nominations!
  • Wikisimpsons has a Discord server! Click here for your invite! Join to talk about the wiki, Simpsons and Tapped Out news, or just to talk to other users.
  • Make an account! It's easy, free, and your work on the wiki can be attributed to you.
TwitterFacebookDiscord

Difference between revisions of "Template:Table"

Wikisimpsons - The Simpsons Wiki
m (Robot: Changing template: TableBodyTop)
Line 16: Line 16:
 
{{TH|C}}
 
{{TH|C}}
 
{{TBT|1}}
 
{{TBT|1}}
{{TableBody|2}}
+
{{TB|2}}
{{TableBody|3}}
+
{{TB|3}}
 
{{TBT|4}}
 
{{TBT|4}}
{{TableBody|5}}
+
{{TB|5}}
{{TableBody|6}}
+
{{TB|6}}
 
}}</pre>
 
}}</pre>
  
Line 29: Line 29:
 
{{TH|C}}
 
{{TH|C}}
 
{{TBT|1}}
 
{{TBT|1}}
{{TableBody|2}}
+
{{TB|2}}
{{TableBody|3}}
+
{{TB|3}}
 
{{TBT|4}}
 
{{TBT|4}}
{{TableBody|5}}
+
{{TB|5}}
{{TableBody|6}}
+
{{TB|6}}
 
}}
 
}}
  
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.
+
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>{{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>{{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>{{TCs|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>{{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>{{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.
+
<nowiki>{{TCRs|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>
 
[[Category:Templates|{{PAGENAME}]][[Category:Table templates|{{PAGENAME}}]]</noinclude>

Revision as of 02:52, March 1, 2012

{{{1}}}

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:

A B C
1 2 3
4 5 6

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. {{TCs|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.