Редактирование: Шаблон:STDT

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск

Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.

Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.

На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.

Текущая версия Ваш текст
Строка 1: Строка 1:
class="{{{1|}}} table"<noinclude>{{TOCright}}
+
class="{{{1|}}} table"<noinclude>__NOTOC__
 +
 
 
== 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 1''  
+
; ''unnamed parameter''  
: 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:
+
:Table coloring. 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
+
:* White (use this for for tables with multiple colors, e.g. [[List of downed skills]])
:** 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
+
:** npc
:** crafting, recipe
+
:** pve
 
:** equip, item
 
:** equip, item
 +
:** mech1, mech2 (for mechanics)
 +
:** hom, lore
 
:** location
 
:** location
:** lore
 
:** mech1, mech2
 
:** npc
 
 
:** promo
 
:** promo
:** pve
+
:** boon, condition
:** skin
+
:See [[Guild Wars 2 Wiki:Table formatting#List of STDT parameters]] for an illustrated list.
:* 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>
+
<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
 
|}
 
|}
 
</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>
+
 
{| {{STDT|sortable mesmer align-right}}
+
<pre>{| {{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:Table formatting templates|*]]
+
[[Category:Formatting templates|STDT]]
 
</noinclude>
 
</noinclude>

Пожалуйста, учтите, что любой ваш вклад в проект «Guild Wars 2 wiki» может быть отредактирован или удалён другими участниками. Если вы не хотите, чтобы кто-либо изменял ваши тексты, не помещайте их сюда.
Вы также подтверждаете, что являетесь автором вносимых дополнений, или скопировали их из источника, допускающего свободное распространение и изменение своего содержимого (см. Guild Wars 2 wiki:Авторские права). НЕ РАЗМЕЩАЙТЕ БЕЗ РАЗРЕШЕНИЯ ОХРАНЯЕМЫЕ АВТОРСКИМ ПРАВОМ МАТЕРИАЛЫ!

Чтобы изменить эту страницу, пожалуйста, ответьте на приведённый ниже вопрос (подробнее):

Отменить | Справка по редактированию (в новом окне)

Шаблоны, используемые на этой странице: