Шаблон:STDT — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
|||
(не показана 1 промежуточная версия 1 участника) | |||
Строка 1: | Строка 1: | ||
− | class="{{{1|}}} table"<noinclude> | + | 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> | |
− | |||
− | |||
− | |||
− | |||
− | |||
=== Parameters === | === Parameters === | ||
− | ; ''unnamed parameter'' | + | ; ''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 | :* Any profession title | ||
+ | :** guardian | ||
+ | :** revenant | ||
+ | :** warrior | ||
+ | :** engineer | ||
+ | :** ranger | ||
+ | :** thief | ||
+ | :** elementalist | ||
+ | :** mesmer | ||
+ | :** necromancer | ||
:* Any race name | :* Any race name | ||
− | :* | + | :** 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: | ||
− | :** | + | :** boon, condition |
− | :** | + | :** crafting, recipe |
:** equip, item | :** equip, item | ||
− | |||
− | |||
:** location | :** location | ||
+ | :** lore | ||
+ | :** mech1, mech2 | ||
+ | :** npc | ||
:** promo | :** promo | ||
− | :** | + | :** pve |
− | :See [[ | + | :** skin |
+ | :* See [[#Color examples]] below for the result of each of the above options and a description of when they should be used. | ||
+ | :* Style choices: | ||
+ | :** collapsible — table is expanded by default and can be collapsed | ||
+ | :** expandable — table is collapsed by default and can be expanded | ||
+ | :** sortable — rows can be sorted | ||
+ | :** text-left — left align text | ||
+ | :** text-center — center-align text | ||
+ | :** text-right — right-align text | ||
== 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.1 || 1.2 |
|- | |- | ||
! Subheading 2 | ! Subheading 2 | ||
− | | 2.1 | + | | 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.1 || 1.2 |
|- | |- | ||
! Subheading 2 | ! Subheading 2 | ||
− | | 2.1 | + | | 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.1 || 1.2 |
|- | |- | ||
! Subheading 2 | ! Subheading 2 | ||
− | | 2.1 | + | | 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.1 || 1.2 |
|- | |- | ||
! Subheading 2 | ! Subheading 2 | ||
− | | 2.1 | + | | 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: | + | [[Category:Table formatting templates|*]] |
</noinclude> | </noinclude> |
Текущая версия на 07:56, 29 октября 2019
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.
- Style choices:
- collapsible — table is expanded by default and can be collapsed
- expandable — table is collapsed by default and can be expanded
- sortable — rows can be sorted
- text-left — left align text
- text-center — center-align text
- text-right — right-align text
- Any profession title
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 |