Шаблон:STDT — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
Строка 1: Строка 1:
class="{{{1|}}} table"<noinclude>__NOTOC__
+
class="{{{1|}}} table"<noinclude>{{TOCright}}
 
 
 
== Description ==
 
== 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.
 
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 ==
 
== Usage ==
 
+
<pre>{{STDT}}</pre>
{|
+
<pre>{{STDT|<type>}}</pre>
! Default !! Topic specific
 
|-
 
| <pre>{{STDT}}</pre>
 
| <pre>{{STDT|<type>}}</pre>
 
|}
 
  
 
=== Parameters ===
 
=== Parameters ===
; ''unnamed parameter''  
+
; ''unnamed parameter 1''  
:Table coloring. Based on the topic:
+
: 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
 
:* Any profession title
 +
:** guardian
 +
:** revenant
 +
:** warrior
 +
:** engineer
 +
:** ranger
 +
:** thief
 +
:** elementalist
 +
:** mesmer
 +
:** necromancer
 
:* Any race name
 
:* Any race name
:* White (use this for for tables with multiple colors, e.g. [[List of downed skills]])
+
:** asura
 +
:** charr
 +
:** human
 +
:** norn
 +
:** sylvari
 
:* Other choices match the coloring scheme of the topic's navigation bars:
 
:* Other choices match the coloring scheme of the topic's navigation bars:
:** npc
+
:** boon, condition
:** pve
+
:** crafting, recipe
 
:** equip, item
 
:** equip, item
:** mech1, mech2 (for mechanics)
 
:** hom, lore
 
 
:** location
 
:** location
 +
:** lore
 +
:** mech1, mech2
 +
:** npc
 
:** promo
 
:** promo
:** boon, condition
+
:** pve
:See [[Guild Wars 2 Wiki:Table formatting#List of STDT parameters]] for an illustrated list.
+
:** skin
 +
See [[#Color examples]] below for the result of each of the above options and a description of when they should be used.
  
 
== Examples ==
 
== Examples ==
 
=== Basic use ===
 
=== Basic use ===
<pre>{| {{STDT}}
+
<pre>
 +
{| {{STDT}}
 
! Heading 1 !! Heading 2 !! Heading 3
 
! Heading 1 !! Heading 2 !! Heading 3
 
|-
 
|-
 
! Subheading 1
 
! Subheading 1
| 1.1 || | 1.2
+
| 1.1 || 1.2
 
|-
 
|-
 
! Subheading 2
 
! Subheading 2
| 2.1 || | 2.2
+
| 2.1 || 2.2
 
|}
 
|}
 
</pre>
 
</pre>
 
 
{| {{STDT}}
 
{| {{STDT}}
 
! Heading 1 !! Heading 2 !! Heading 3
 
! Heading 1 !! Heading 2 !! Heading 3
 
|-
 
|-
 
! Subheading 1
 
! Subheading 1
| 1.1 || | 1.2
+
| 1.1 || 1.2
 
|-
 
|-
 
! Subheading 2
 
! Subheading 2
| 2.1 || | 2.2
+
| 2.1 || 2.2
 
|}
 
|}
  
 
=== Specific use ===
 
=== Specific use ===
 
+
<pre>
<pre>{| {{STDT|sortable mesmer align-right}}
+
{| {{STDT|sortable mesmer align-right}}
 
! Heading 1 !! Heading 2 !! Heading 3
 
! Heading 1 !! Heading 2 !! Heading 3
 
|-
 
|-
 
! Subheading 1
 
! Subheading 1
| 1.1 || | 1.2
+
| 1.1 || 1.2
 
|-
 
|-
 
! Subheading 2
 
! Subheading 2
| 2.1 || | 2.2
+
| 2.1 || 2.2
 
|}
 
|}
 
</pre>
 
</pre>
 
 
{| {{STDT|sortable mesmer align-right}}
 
{| {{STDT|sortable mesmer align-right}}
 
! Heading 1 !! Heading 2 !! Heading 3
 
! Heading 1 !! Heading 2 !! Heading 3
 
|-
 
|-
 
! Subheading 1
 
! Subheading 1
| 1.1 || | 1.2
+
| 1.1 || 1.2
 
|-
 
|-
 
! Subheading 2
 
! Subheading 2
| 2.1 || | 2.2
+
| 2.1 || 2.2
 
|}
 
|}
  
 +
== Color examples ==
 +
{| {{STDT}}
 +
! colspan="2" | Professions
 +
|- class="guardian"
 +
! guardian
 +
| Profession colors
 +
|- class="revenant"
 +
! revenant
 +
|
 +
|- class="warrior"
 +
! warrior
 +
|
 +
|- class="engineer"
 +
! engineer
 +
|
 +
|- class="ranger"
 +
! ranger
 +
|
 +
|- class="thief"
 +
! thief
 +
|
 +
|- class="elementalist"
 +
! elementalist
 +
|
 +
|- class="mesmer"
 +
! mesmer
 +
|
 +
|- class="necromancer"
 +
! necromancer
 +
|
 +
 +
|- class="heading"
 +
! colspan="2" | Races
 +
|- class="asura"
 +
! asura
 +
| Racial colors
 +
|- class="charr"
 +
! charr
 +
|
 +
|- class="human"
 +
! human
 +
|
 +
|- class="norn"
 +
! norn
 +
|
 +
|- class="sylvari"
 +
! sylvari
 +
|
 +
 +
|- class="heading"
 +
! colspan="2" | Common to professions and/or races
 +
|- class="any"
 +
! any
 +
| style="background-color:#fff" | Things available to any profession/race (for example downed skill [[Bandage]], or environmental weapon skills like [[Chain Lightning (turret)| asura turret Chain Lightning]])
 +
 +
|- class="heading"
 +
! colspan="2" | Game mechanics and items
 +
|- class="boon"
 +
! boon
 +
| Boons: aegis, swiftness, might, etc.
 +
|- class="condition"
 +
! condition
 +
| Conditions: burning, crippled, immobilized, etc.
 +
|- class="crafting"
 +
! crafting
 +
| All crafting-related themes: disciplines, materials and components
 +
|- class="recipe"
 +
! recipe
 +
| Crafting recipes
 +
|- class="equip"
 +
! equip
 +
| Equipment: weapons, armor, runes, sigils, etc.
 +
|- class="item"
 +
! item
 +
| Other items: junk, food, consumables, etc.
 +
|- class="location"
 +
! location
 +
| Locations of different levels: continents, countries, areas
 +
|- class="lore"
 +
! lore
 +
| Lore-related content: the Elder Dragons, religions, calendars etc.
 +
|- class="mech1"
 +
! mech1
 +
| Major game mechanics: attributes, achievements, PvP
 +
|- class="mech2"
 +
! mech2
 +
| Other game mechanics: skills, traits, effects
 +
|- class="npc"
 +
! npc
 +
| [[NPC]]-related tables (e.g. list of scouts in Kryta)
 +
|- class="promo"
 +
! promo
 +
| Promotional game-related materials, like books, soundtrack etc.
 +
|- class="pve"
 +
! pve
 +
| PvE tables: dynamic events, renown hearts, personal storyline, dungeons, etc.
 +
|- class="skin"
 +
! skin
 +
| Skins from the wardrobe
 +
|}
  
[[Category:Formatting templates|STDT]]
+
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Версия 14:54, 3 апреля 2018

class=" table"

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

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

Specific use

{| {{STDT|sortable mesmer align-right}}
! 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

Color examples

Professions
guardian Profession colors
revenant
warrior
engineer
ranger
thief
elementalist
mesmer
necromancer
Races
asura Racial colors
charr
human
norn
sylvari
Common to professions and/or races
any Things available to any profession/race (for example downed skill Bandage, or environmental weapon skills like asura turret Chain Lightning)
Game mechanics and items
boon Boons: aegis, swiftness, might, etc.
condition Conditions: burning, crippled, immobilized, etc.
crafting All crafting-related themes: disciplines, materials and components
recipe Crafting recipes
equip Equipment: weapons, armor, runes, sigils, etc.
item Other items: junk, food, consumables, etc.
location Locations of different levels: continents, countries, areas
lore Lore-related content: the Elder Dragons, religions, calendars etc.
mech1 Major game mechanics: attributes, achievements, PvP
mech2 Other game mechanics: skills, traits, effects
npc NPC-related tables (e.g. list of scouts in Kryta)
promo Promotional game-related materials, like books, soundtrack etc.
pve PvE tables: dynamic events, renown hearts, personal storyline, dungeons, etc.
skin Skins from the wardrobe