Template:STDT

From Thorium Mod Wiki
Jump to navigation Jump to search

style="margin: 0.25em; border: 1px solid #AFCFE2;" cellpadding="3" cellspacing="0" rules="all"

Template-info.svg Documentation The documentation below is transcluded from Template:STDT/doc. (edit | history)

To use standard formatting for a table. Another common format is to use class="terraria".

Usage

{{STDT}}
{{STDT|<color>}}
{{STDT|+=<styles>}}

Standard table design template. Simply paste the following after the beginning of your table:

unnamed parameter 1
Optional. Border color. Defaults to black.
+
Optional. Adds the given styles to the style attribute

Examples

{| {{STDT|silver}}
! 0.1 !!| 0.2
|-
| 1.1 || 1.2
|-
| 2.1 || 2.2
|}
0.1 0.2
1.1 1.2
2.1 2.2

Compared to terraria class table:

0.1 0.2
1.1 1.2
2.1 2.2

Using the + parameter

{| {{STDT|silver|+=float: right;}}
! 0.1 !!| 0.2
|-
| 1.1 || 1.2
|-
| 2.1 || 2.2
|}
0.1 0.2
1.1 1.2
2.1 2.2