Difference between revisions of "Template:Table"

From From The Ashes Wiki
Jump to: navigation, search
 
Line 38: Line 38:
 
| options      = any combination of: center colon bold
 
| options      = any combination of: center colon bold
 
| class        = add a custom class to your table
 
| class        = add a custom class to your table
| style        = inline css to style your table (using <nowiki>{{#css: }} on your page is more flexible though)
+
| style        = inline css to style your table (using {{#css: }} on your page is more flexible though)
 
| cols        = N (Default 2)
 
| cols        = N (Default 2)
 
| <thing>        each line is a cell; notice there are no equals signs
 
| <thing>        each line is a cell; notice there are no equals signs

Latest revision as of 06:25, 19 March 2018

Usage

{{Table
| options      = any combination of: center colon bold
| class        = add a custom class to your table
| style        = inline css to style your table (using {{#css: }} on your page is more flexible though)
| cols         = N (Default 2)
| <thing>        each line is a cell; notice there are no equals signs
| <thing>
| <thing>
[...]
| <thing>
}}

Examples

{{Table
| Topic
| Info
| Another topic
| More info
}}

gives:

TopicInfo
Another topicMore info
{{Table
| options        = bold colon center
| cols           = 3
| Topic
| Info
| Oh and this
| Another topic
| More info
| Third Thing
| Yet more info
| Also
| This stuff
}}

gives:

TopicInfoOh and this
Another topicMore infoThird Thing
Yet more infoAlsoThis stuff