Template:Traits/doc: Difference between revisions

m
add lang
No edit summary
m (add lang)
 
(19 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Lua|Traits}}
{{Lua|Traits}}
== All trait examples ==
<pre><nowiki>{{Traits
|Rena
|Lyrical Flow
|Empowered, Gigantic
|130
|140
}}</nowiki></pre>
{{Traits
|Rena
|Lyrical Flow
|Empowered, Gigantic
|130
|140
}}
<pre><nowiki>{{Traits
|Rose
|Penetrating Bullet
|Light, Heavy
|mp=300
|cd=21
|mp1=70
}}</nowiki></pre>
{{Traits
|Rose
|Penetrating Bullet
|Light, Heavy
|mp=300
|cd=21
|mp1=70
}}
<pre><nowiki>{{Traits
|Rose
|Viper Shot
|Light, Regenerating (1)
|mp=35
|mp1=70
|mp2=65
|ecp=true
}}</nowiki></pre>
{{Traits
|Rose
|Viper Shot
|Light, Regenerating (1)
|mp=35
|mp1=70
|mp2=65
|ecp=true
}}
<pre><nowiki>{{Traits
|Elesis
|Outburst
|Useful, Enhanced
|dmg1=67
|hits=10
}}</nowiki></pre>
{{Traits
|Elesis
|Outburst
|Useful, Enhanced
|dmg1=67
|hits=10
}}
<pre><nowiki>{{Traits
|Noah
|Eternal Fog
|Reversed, Critical
|mp=300
|cd=21
|mp1=47
|cd2=65
|def_ignore2=66
|pvp_def_ignore2=33
}}</nowiki></pre>
{{Traits
|Noah
|Eternal Fog
|Reversed, Critical
|mp=300
|cd=21
|mp1=47
|cd2=65
|def_ignore2=66
|pvp_def_ignore2=33
}}
<pre><nowiki>{{Traits
|Eve
|Trojan Horse
|Haste, Regenerating (1)
|mp=300
|cd=21
|cd1=75
|mp2=45
|chance2=68
}}</nowiki></pre>
{{Traits
|Eve
|Trojan Horse
|Haste, Regenerating (1)
|mp=300
|cd=21
|cd1=75
|mp2=45
|chance2=68
}}
<pre><nowiki>{{Traits
|Ara
|Iceberg
|Regenerating (2), Ruthless
|mp=300
|cd=21
|cd1=55
|chance1=68
}}</nowiki></pre>
{{Traits
|Ara
|Iceberg
|Regenerating (2), Ruthless
|mp=300
|cd=21
|cd1=55
|chance1=68
}}
<pre><nowiki>{{Traits
|Add
|Venipuncture
|Evil, Powerful
|20
|cd=21
|cd2=135
}}</nowiki></pre>
{{Traits
|Add
|Venipuncture
|Evil, Powerful
|20
|cd=21
|cd2=135
}}
<pre><nowiki>{{Traits
|Elsword
|Armor Break
|Killing Blow (1), Killing Blow (2)
|duration=20
|duration1=145
|
|56
|effects={{se|073|Test}} Physical Defense Decrease: 20%<br/>{{se|074|Test}} Magical Defense Decrease: 10%<br/>
}}</nowiki></pre>
{{Traits
|Elsword
|Armor Break
|Killing Blow (1), Killing Blow (2)
|duration=20
|duration1=145
|
|56
|effects={{se|073|Test}} Physical Defense Decrease: 20%<br/>{{se|074|Test}} Magical Defense Decrease: 10%<br/>
}}
<pre><nowiki>{{Traits
|Raven
|Shockwave - Divider
|Absorbing, Persistent
|40
|120
}}</nowiki></pre>
{{Traits
|Raven
|Shockwave - Divider
|Absorbing, Persistent
|40
|120
}}
<pre><nowiki>{{Traits
|Aisha
|Icicle Spear
|Evil, Persistent2
|40
|120
}}</nowiki></pre>
{{Traits
|Aisha
|Icicle Spear
|Evil, Persistent2
|40
|120
}}
<br>
<templatedata>
<templatedata>
{
{
Line 9: Line 221:
"type": "string",
"type": "string",
"required": true,
"required": true,
"suggested": true
"suggested": true,
"aliases": [
"char"
]
},
},
"2": {
"2": {
Line 16: Line 231:
"type": "string",
"type": "string",
"required": true,
"required": true,
"suggested": true
"suggested": true,
"aliases": [
"skill"
]
},
},
"3": {
"3": {
Line 24: Line 242:
"type": "string",
"type": "string",
"default": "-, -",
"default": "-, -",
"suggested": true
"suggested": true,
"aliases": [
"traits"
]
},
},
"4": {
"4": {
"aliases": [
"label": "Trait 1 SkillText",
"effects1"
"description": "Comma-separated values provided to the SkillText template. Warning! Does not generate details properly when they're needed."
],
"label": "Trait 1 Values",
"description": "First trait's values included in the SkillText template.",
"example": "80, 150",
"type": "string",
"default": "Trait's default values"
},
},
"5": {
"5": {
"aliases": [
"label": "Trait 2 SkillText",
"effects2"
"description": "Comma-separated values provided to the SkillText template. Warning! Does not generate details properly when they're needed."
],
},
"label": "Trait 2 Values",
"mp": {
"description": "Second trait's values included in the SkillText template.",
"label": "MP Usage",
"example": "130",
"type": "number",
"type": "string",
"description": "The template returns an error if you specify the multiplier argument (such as mp1) while this field is empty.",
"default": "Trait's default values"
"suggested": true
},
"cd": {
"label": "Cooldown",
"type": "number",
"description": "The template returns an error if you specify the multiplier argument (such as cd1) while this field is empty.",
"suggested": true
},
"mp_pvp": {
"label": "MP Usage (PvP)",
"type": "number"
},
"cd_pvp": {
"label": "Cooldown (PvP)",
"type": "number"
},
"mp_enhanced": {
"label": "MP Usage (Final Enhanced)",
"type": "number"
},
"cd_enhanced": {
"label": "Cooldown (Final Enhanced)",
"type": "number"
},
"mp1": {
"label": "Trait 1 MP Effect",
"description": "Specify in % (without the sign). If certain MP traits are active (such as Reversed), and this field is empty for the exact index, the template returns an error. Specific traits derive the default values and thus do not require this argument provided (Critical = 120, Light = 80).",
"type": "number"
},
"mp2": {
"label": "Trait 2 MP Effect",
"description": "Specify in % (without the sign). If certain MP traits are active (such as Reversed), and this field is empty for the exact index, the template returns an error. Specific traits derive the default values and thus do not require this argument provided (Critical = 120, Light = 80).",
"type": "number"
},
"cd1": {
"label": "Trait 1 Cooldown Effect",
"description": "Specify in % (without the sign). If certain Cooldown traits are active (such as Reversed), and this field is empty for the exact index, the template returns an error. Specific traits derive the default values and thus do not require this argument provided (Heavy = 120, Haste = 80, Ruthless = 200, Powerful = 150).",
"type": "number"
},
"cd2": {
"label": "Trait 2 Cooldown Effect",
"description": "Specify in % (without the sign). If certain Cooldown traits are active (such as Reversed), and this field is empty for the exact index, the template returns an error. Specific traits derive the default values and thus do not require this argument provided (Heavy = 120, Haste = 80, Ruthless = 200, Powerful = 150).",
"type": "number"
},
"duration": {
"label": "Duration",
"description": "The template returns an error if you specify the multiplier argument (such as duration1) while this field is empty.",
"type": "number"
},
"duration_pvp": {
"label": "Duration (PvP)",
"type": "number"
},
"duration_enhanced": {
"label": "Duration (Final Enhanced)",
"type": "number"
},
"duration1": {
"label": "Trait 1 Duration Effect",
"description": "Specify in % (without the sign). If Killing Blow (1) is active, and this field is empty for the exact index, the template returns an error.",
"type": "number"
},
"duration2": {
"label": "Trait 2 Duration Effect",
"description": "Specify in % (without the sign). If Killing Blow (1) is active, and this field is empty for the exact index, the template returns an error.",
"type": "number"
},
"chance1": {
"label": "Trait 1 Chance Effect",
"description": "For Regenerating trait"
},
"chance2": {
"label": "Trait 2 Chance Effect",
"description": "For Regenerating trait"
},
"mp_enhanced_pvp": {
"label": "MP Usage (PvP Enhanced)"
},
"cd_enhanced_pvp": {
"label": "Cooldown (PvP Enhanced)"
},
"duration_enhanced_pvp": {
"label": "Duration (PvP Enhanced)"
},
"hits": {
"label": "Useful Hit Count"
},
"detail1": {
"label": "Trait 1 Detail Force",
"description": "Only works for Max Hits (probably)"
},
},
"6": {
"detail2": {
"aliases": [
"label": "Trait 2 Detail Force",
"desc1"
"description": "Only works for Max Hits (probably)"
],
"label": "Trait 1 Description",
"description": "First trait's additional attribute information, such as Cooldown or MP Usage when the trait is selected. Split headers fields between values with a semicolon, and fields with a comma. Header fields can be skipped & auto-filled for certain traits: Light, Critical, Heavy, Haste, Regenerating (1) & (2), Reversed, Ruthless, Powerful and Killing Blow (1). If header fields skipped, mathematic formulas will be calculated immediately, and proper suffixes (MP and Seconds) will be added. If multiplication sign not detected, the template will try to calculate the effect based on what it has.",
"example": "MP Usage, Duration; 200 MP; 25 Seconds",
"type": "string"
},
},
"7": {
"lang": {
"aliases": [
"label": "Language Suffix",
"desc2"
"description": "A language suffix for multi-language variants.",
],
"example": "zh-hans"
"label": "Trait 2 Description",
"description": "Second trait's additional attribute information, such as Cooldown or MP Usage when the trait is selected. Split headers fields between values with a semicolon, and fields with a comma. Header fields can be skipped & auto-filled for certain traits: Light, Critical, Heavy, Haste, Regenerating (1) & (2), Reversed, Ruthless, Powerful and Killing Blow (1). If header fields skipped, mathematic formulas will be calculated immediately, and proper suffixes (MP and Seconds) will be added. If multiplication sign not detected, the template will try to calculate the effect based on what it has.",
"example": "Duration, Attack Increase; 10 Seconds, 15%",
"type": "string"
}
}
},
},
"description": "A template used to generate a tabular information section about a skill's traits.",
"description": "A template used to generate a tabular information section about a skill's traits.",
"format": "block",
"paramOrder": [
"paramOrder": [
"1",
"1",
Line 72: Line 368:
"4",
"4",
"5",
"5",
"6",
"lang",
"7"
"mp",
],
"mp_pvp",
"format": "block"
"mp_enhanced",
"mp_enhanced_pvp",
"cd",
"cd_pvp",
"cd_enhanced",
"cd_enhanced_pvp",
"duration",
"duration_pvp",
"duration_enhanced",
"duration_enhanced_pvp",
"mp1",
"mp2",
"cd1",
"cd2",
"duration1",
"duration2",
"chance1",
"chance2",
"hits",
"detail1",
"detail2"
]
}
}
</templatedata>
</templatedata>