• New article from the Springfield Shopper: Season 36 News: Even more Preview Images for “O C’mon All Ye Faithful” have been released!
  • New article from the Springfield Shopper: The Simpsons Christmas Double Episode Exclusive to Disney+ this December!
  • New article from the Springfield Shopper: Season 36 News: The stories which the segments of “Simpsons Wicked This Way Comes” are based of have been announced!
  • 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: TableHeader)
Line 12: Line 12:
 
<pre>
 
<pre>
 
{{Table|
 
{{Table|
{{TableHeader|A}}
+
{{TH|A}}
{{TableHeader|B}}
+
{{TH|B}}
{{TableHeader|C}}
+
{{TH|C}}
 
{{TableBodyTop|1}}
 
{{TableBodyTop|1}}
 
{{TableBody|2}}
 
{{TableBody|2}}
Line 25: Line 25:
 
Makes:
 
Makes:
 
{{Table|
 
{{Table|
{{TableHeader|A}}
+
{{TH|A}}
{{TableHeader|B}}
+
{{TH|B}}
{{TableHeader|C}}
+
{{TH|C}}
 
{{TableBodyTop|1}}
 
{{TableBodyTop|1}}
 
{{TableBody|2}}
 
{{TableBody|2}}

Revision as of 17:30, February 29, 2012

{{{1}}}

Usage

Typical table structure should be like this:

{{Table|
{{TH|A}}
{{TH|B}}
{{TH|C}}
{{TableBodyTop|1}}
{{TableBody|2}}
{{TableBody|3}}
{{TableBodyTop|4}}
{{TableBody|5}}
{{TableBody|6}}
}}

Makes:

A B C
1 2 3
4 5 6

The only difference between {{TableBodyTop}} 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.