Template:STDT: Difference between revisions
Jump to navigation
Jump to search
(Created page with "class="{{{1|}}} table"<noinclude>__NOTOC__ ==Description== '''''S'''tandard '''T'''able '''D'''esign '''T'''emplate'' is used to give tables across the wiki a consistent desi...") |
No edit summary |
||
Line 1: | Line 1: | ||
class="{{{1|}}} table"<noinclude> | class="{{{1|}}} table"<noinclude>{{TOCright}} | ||
== Description == | |||
The '''''S'''tandard '''T'''able '''D'''esign '''T'''emplate'' is used to give tables across the wiki a similar design, fitting the topic of the main article. | |||
== | == Usage == | ||
<pre>{{STDT}}</pre> | |||
<pre>{{STDT|<type>}}</pre> | |||
=== Parameters === | |||
; ''unnamed parameter 1'' | |||
: Optional. The table class to apply, this determines the color of the table headers, rows and cells. The class chosen should be based on the topic: | |||
:* Any profession title | |||
:** guardian | |||
:** revenant | |||
:** warrior | |||
:** engineer | |||
:** ranger | |||
:** thief | |||
:** elementalist | |||
:** mesmer | |||
:** necromancer | |||
:* Any race name | |||
:** asura | |||
:** charr | |||
:** human | |||
:** norn | |||
:** sylvari | |||
:* Other choices match the coloring scheme of the topic's navigation bars: | |||
:** boon, condition | |||
:** crafting, recipe | |||
:** equip, item | |||
:** location | |||
:** lore | |||
:** mech1, mech2 | |||
:** npc | |||
:** promo | |||
:** pve | |||
:** skin | |||
See [[#Color examples]] below for the result of each of the above options and a description of when they should be used. | |||
== | == Examples == | ||
=== Basic use === | |||
== | |||
<pre> | <pre> | ||
{| {{STDT}} | {| {{STDT}} | ||
! Heading 1 !! Heading 2 !! Heading 3 | |||
|- | |||
! Subheading 1 | |||
| 1.1 || 1.2 | |||
|- | |||
! Subheading 2 | |||
| 2.1 || 2.2 | |||
|} | |||
</pre> | </pre> | ||
{| {{STDT}} | |||
! Heading 1 !! Heading 2 !! Heading 3 | |||
|- | |||
! Subheading 1 | |||
| 1.1 || 1.2 | |||
|- | |||
! Subheading 2 | |||
| 2.1 || 2.2 | |||
|} | |||
[[Category:Table formatting templates|*]] | |||
[[Category: | |||
</noinclude> | </noinclude> |
Revision as of 13:48, 1 April 2019
class=" table"Template:TOCright
Description
The Standard Table Design Template is used to give tables across the wiki a similar design, fitting the topic of the main article.
Usage
{{STDT}}
{{STDT|<type>}}
Parameters
- unnamed parameter 1
- Optional. The table class to apply, this determines the color of the table headers, rows and cells. The class chosen should be based on the topic:
- Any profession title
- guardian
- revenant
- warrior
- engineer
- ranger
- thief
- elementalist
- mesmer
- necromancer
- Any race name
- asura
- charr
- human
- norn
- sylvari
- Other choices match the coloring scheme of the topic's navigation bars:
- boon, condition
- crafting, recipe
- equip, item
- location
- lore
- mech1, mech2
- npc
- promo
- pve
- skin
- Any profession title
See #Color examples below for the result of each of the above options and a description of when they should be used.
Examples
Basic use
{| {{STDT}} ! Heading 1 !! Heading 2 !! Heading 3 |- ! Subheading 1 | 1.1 || 1.2 |- ! Subheading 2 | 2.1 || 2.2 |}
Heading 1 | Heading 2 | Heading 3 |
---|---|---|
Subheading 1 | 1.1 | 1.2 |
Subheading 2 | 2.1 | 2.2 |