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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
(не показано 6 промежуточных версий этого же участника)
Строка 1: Строка 1:
 
<includeonly>{{increment|factcnt}}{{#subobject:fact{{#var:factcnt}}
 
<includeonly>{{increment|factcnt}}{{#subobject:fact{{#var:factcnt}}
   |Has context=Skill fact
+
   |Has context={{#var:skill fact context|Skill fact}}
 
   |Is for skill={{PAGENAME}}
 
   |Is for skill={{PAGENAME}}
 +
  |Is missing fact={{#var:missing skill fact|false}}
 
   |Has fact index={{#var:factcnt}}
 
   |Has fact index={{#var:factcnt}}
 
   |Has fact={{{1|}}}
 
   |Has fact={{{1|}}}
 +
  |Has secondary fact={{{2|}}}
 
   |Has fact type={{{type|}}}
 
   |Has fact type={{{type|}}}
  |Has game icon={{#if: {{{icon|}}}|File:{{{icon}}}|File:{{{1|}}}.png}}
 
 
   |Has fact text={{{text|}}}
 
   |Has fact text={{{text|}}}
   |Has fact description={{{description|}}}
+
   |Has game description={{{description|{{{text|}}}}}}
   |Has fact number={{#iferror: {{#expr: {{{number|}}} }} || {{{number|}}} }}
+
   |Has fact effect={{{1|}}};{{#arraymap: {{{effect bonus|}}}|;|@@@|{{#switch: {{lc:@@@}}|condition damage=Condition Damage|healing power=Healing Power|#default={{ucfirst:@@@}}}}|;}}|+sep=;
 +
  |Has fact effect number={{#iferror: {{#expr: {{#replace:{{{effect bonus number|}}}|.|,}} }} || {{{effect bonus number|}}} }}
 +
  |Has fact number={{#iferror: {{#expr: {{#replace:{{{number|}}}|.|,}} }} || {{#replace:{{{number|}}}|,}} }}
 
   |Has fact stacks={{#iferror: {{#expr: {{{stacks|}}} }} || {{{stacks|}}} }}
 
   |Has fact stacks={{#iferror: {{#expr: {{{stacks|}}} }} || {{{stacks|}}} }}
 
   |Has fact strikes={{#iferror: {{#expr: {{{strikes|}}} }} || {{{strikes|}}} }}
 
   |Has fact strikes={{#iferror: {{#expr: {{{strikes|}}} }} || {{{strikes|}}} }}
 
   |Has fact coefficient={{#iferror: {{#expr: {{#replace:{{{coefficient|}}}|.|,}} }} || {{{coefficient|}}} }}
 
   |Has fact coefficient={{#iferror: {{#expr: {{#replace:{{{coefficient|}}}|.|,}} }} || {{{coefficient|}}} }}
 +
  |Applies to={{{applies to|}}}
 +
  |Has game icon={{#if: {{{icon|}}}|File:{{{icon}}}|File:{{ifimage|{{{1|}}}.png|{{{1|}}}.png|Miscellaneous effect.png}}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
To be used to create {{tl|Skill fact}} subobjects.
 
To be used to create {{tl|Skill fact}} subobjects.
Строка 24: Строка 29:
 
|-
 
|-
 
| 1 ''(unnamed parameter)'' || [[Property:Has fact]]
 
| 1 ''(unnamed parameter)'' || [[Property:Has fact]]
 +
|-
 +
| 2 ''(unnamed parameter)'' || [[Property:Has secondary fact]]
 
|-
 
|-
 
| type || [[Property:Has fact type]]
 
| type || [[Property:Has fact type]]
|-
 
| icon || [[Property:Has game icon]]
 
 
|-
 
|-
 
| text || [[Property:Has fact text]]
 
| text || [[Property:Has fact text]]
 
|-
 
|-
| description || [[Property:Has fact description]]
+
| description, ''alternatively:'' text || [[Property:Has game description]]
 +
|-
 +
| 1 ''(unnamed parameter)'' + effect bonus || [[Property:Has fact effect]]
 +
|-
 +
| effect bonus number || [[Property:Has fact effect number]]
 
|-
 
|-
 
| number || [[Property:Has fact number]]
 
| number || [[Property:Has fact number]]
Строка 40: Строка 49:
 
|-
 
|-
 
| coefficient || [[Property:Has fact coefficient]]
 
| coefficient || [[Property:Has fact coefficient]]
 +
|-
 +
| applies to || [[Property:Applies to]]
 +
|-
 +
| icon || [[Property:Has game icon]]
 
|}
 
|}
 
[[Category:Subobject templates]]
 
[[Category:Subobject templates]]

Текущая версия на 09:45, 22 декабря 2022

To be used to create {{Skill fact}} subobjects.

Parameters[править]

Parameter Property
{{PAGENAME}} Property:Is for skill
{{#var:factcnt}} Property:Has fact index
1 (unnamed parameter) Property:Has fact
2 (unnamed parameter) Property:Has secondary fact
type Property:Has fact type
text Property:Has fact text
description, alternatively: text Property:Has game description
1 (unnamed parameter) + effect bonus Property:Has fact effect
effect bonus number Property:Has fact effect number
number Property:Has fact number
stacks Property:Has fact stacks
strikes Property:Has fact strikes
coefficient Property:Has fact coefficient
applies to Property:Applies to
icon Property:Has game icon