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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
(не показаны 3 промежуточные версии этого же участника)
Строка 1: Строка 1:
<includeonly>{{#if:{{{hidetext|}}}| | ''Более детальную историю изменений {{#switch:{{{type|{{lc:{{#if: {{{type|}}} | {{{type}}} | {{#ifeq:{{#show: {{BASEPAGENAME}} | ?Has context}}|Item|{{#show: {{BASEPAGENAME}} |?Has item type}}|{{#show: {{BASEPAGENAME}} | ?Has context | default = Skill }}}}}}}}}}}|trait=черты|effect=эффекта|rune=руны|sigil=сигила|умения}} смотрите [[{{FULLPAGENAME}}/history|здесь]]''.}}
+
<includeonly>{{#if:{{{hidetext|}}}| | ''Более детальную историю изменений {{#switch:{{lc:{{{type|{{#show: {{BASEPAGENAME}} | ?Has context | default = Skill}}}}}}}|trait=черты|effect=эффекта|rune=руны|sigil=сигила|specialization=специализации|умения}} смотрите [[{{FULLPAGENAME}}/history|здесь]]''.}}
{| class = "table {{{1}}} {{#switch: {{{table|}}} | normal = | collapsed = expandable | collapsible}}"
+
{| class="table {{lc:{{{1}}}}} history {{#switch: {{{table|}}} | normal = | collapsed = expandable | collapsible}}" style="max-width: {{{2|80%}}};"
! width="120px" | Патч
+
! style="width:10em;" | Патч
! {{#if:{{{2}}}| width="{{{2}}}"{{!}}}} Изменения  
+
! Изменения
 
|-
 
|-
 
</includeonly><noinclude>
 
</includeonly><noinclude>
==Description==
+
== Description ==
 
This is a template created for the [[Guild Wars 2 Wiki:Projects/Skill Version History|Skill Version History project]].
 
This is a template created for the [[Guild Wars 2 Wiki:Projects/Skill Version History|Skill Version History project]].
  
===Parameters===
+
== Usage ==
; unnamed parameter 1
+
=== Parameters ===
 +
;unnamed parameter 1
 
: Optional. Adds the parameter as a class to the table.
 
: Optional. Adds the parameter as a class to the table.
 
+
;unnamed parameter 2
; unnamed parameter 2
 
 
: Optional. Sets the width of the table.  
 
: Optional. Sets the width of the table.  
 
+
;table
; table
 
 
: Optional. Values can be "normal" for a non-collapsible table or "collapsed" for a collapsed table.
 
: Optional. Values can be "normal" for a non-collapsible table or "collapsed" for a collapsed table.
 
+
;type
; type
+
: Optional, defaults to skill or [[Property: Has context]] if it has been set.
: Optional, defaults to skill. Values can be 'trait', 'effect', 'rune' or 'sigil'. If the page has ?Has context set, this property will be used as default.
+
;hidetext
 
 
; hidetext
 
 
: Optional, hides the link to /history.
 
: Optional, hides the link to /history.
  
==Example usage==
+
=== Examples ===
 
;skill table, no fixed width:
 
;skill table, no fixed width:
 
<pre>{{Version history table header|revenant}}
 
<pre>{{Version history table header|revenant}}
Строка 30: Строка 27:
 
* Duelist's Preparation has been added to the game.
 
* Duelist's Preparation has been added to the game.
 
|}</pre>
 
|}</pre>
 
Result:
 
 
 
{{Version history table header|revenant}}
 
{{Version history table header|revenant}}
 
{{Version history table row|2015-10-23|Revenant}}
 
{{Version history table row|2015-10-23|Revenant}}
Строка 39: Строка 33:
  
 
;effect table, fixed width, collapsed, hidetext:
 
;effect table, fixed width, collapsed, hidetext:
<pre>{{Version history table header|condition|90%|type=effect|table=collapsed|hidetext=y}}
+
<pre>{{Version history table header|condition|40%|type=effect|table=collapsed|hidetext=y}}
 
{{Version history table row|release}}
 
{{Version history table row|release}}
 
* Confusion has been added to the game.
 
* Confusion has been added to the game.
 
|}</pre>
 
|}</pre>
 
+
{{Version history table header|condition|40%|type=effect|table=collapsed|hidetext=y}}
Result: <br/>
 
{{Version history table header|condition|90%|type=effect|table=collapsed|hidetext=y}}
 
 
{{Version history table row|release}}
 
{{Version history table row|release}}
 
* Confusion has been added to the game.
 
* Confusion has been added to the game.
 
|}
 
|}
==See also==
+
 
*{{tl|Version history table row}}
+
== See also ==
</noinclude>
+
* {{tl|Version history table row}}
 +
 
 +
[[Category:Table formatting templates]]</noinclude>

Текущая версия на 05:30, 3 декабря 2021

Description[править]

This is a template created for the Skill Version History project.

Usage[править]

Parameters[править]

unnamed parameter 1
Optional. Adds the parameter as a class to the table.
unnamed parameter 2
Optional. Sets the width of the table.
table
Optional. Values can be "normal" for a non-collapsible table or "collapsed" for a collapsed table.
type
Optional, defaults to skill or Property: Has context if it has been set.
hidetext
Optional, hides the link to /history.

Examples[править]

skill table, no fixed width
{{Version history table header|revenant}}
{{Version history table row|2015-10-23|Revenant}}
* Duelist's Preparation has been added to the game.
|}

Более детальную историю изменений умения смотрите здесь.

Патч Изменения
23 октября 2015 Выход Heart of Thorns:
  • Duelist's Preparation has been added to the game.
effect table, fixed width, collapsed, hidetext
{{Version history table header|condition|40%|type=effect|table=collapsed|hidetext=y}}
{{Version history table row|release}}
* Confusion has been added to the game.
|}

See also[править]