Template:Traits/doc: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 38: Line 38:
"label": "MP Usage",
"label": "MP Usage",
"type": "number",
"type": "number",
            "description": "The template returns an error if you specify the multiplier argument (such as mp1) while this field is empty.",
"description": "The template returns an error if you specify the multiplier argument (such as mp1) while this field is empty.",
"suggested": true
"suggested": true
},
},
Line 44: Line 44:
"label": "Cooldown",
"label": "Cooldown",
"type": "number",
"type": "number",
            "description": "The template returns an error if you specify the multiplier argument (such as cd1) while this field is empty.",
"description": "The template returns an error if you specify the multiplier argument (such as cd1) while this field is empty.",
"suggested": true
"suggested": true
},
},
        "mp_pvp": {
"mp_pvp": {
"label": "MP Usage (PvP)",
"label": "MP Usage (PvP)",
"type": "number"
"type": "number"
Line 55: Line 55:
"type": "number"
"type": "number"
},
},
        "mp_enhanced": {
"mp_enhanced": {
"label": "MP Usage (Final Enhanced)",
"label": "MP Usage (Final Enhanced)",
"type": "number"
"type": "number"
Line 85: Line 85:
"duration": {
"duration": {
"label": "Duration",
"label": "Duration",
            "description": "The template returns an error if you specify the multiplier argument (such as duration1) while this field is empty.",
"description": "The template returns an error if you specify the multiplier argument (such as duration1) while this field is empty.",
"type": "number"
"type": "number"
},
},
        "duration_pvp": {
"duration_pvp": {
"label": "Duration (PvP)",
"label": "Duration (PvP)",
"type": "number"
"type": "number"
},
},
        "duration_enhanced": {
"duration_enhanced": {
"label": "Duration (Final Enhanced)",
"label": "Duration (Final Enhanced)",
"type": "number"
"type": "number"
Line 135: Line 135:
"type": "string"
"type": "string"
},
},
        "detail1_trait1_pvp": {
"detail1_trait1_pvp": {
"label": "Trait 1 Detail 1 (PvP)",
"label": "Trait 1 Detail 1 (PvP)",
"description": "Custom detail field. (While undocumented, you can generate more than 2 fields)",
"description": "Custom detail field. (While undocumented, you can generate more than 2 fields)",
Line 155: Line 155:
"type": "string"
"type": "string"
},
},
        "detail1_trait1_enhanced": {
"detail1_trait1_enhanced": {
"label": "Trait 1 Detail 1 (Final Enhanced)",
"label": "Trait 1 Detail 1 (Final Enhanced)",
"description": "Custom detail field. (While undocumented, you can generate more than 2 fields)",
"description": "Custom detail field. (While undocumented, you can generate more than 2 fields)",
Line 207: Line 207:
},
},
"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"
"format": "block",
"paramOrder": [
"1",
"2",
"3",
"mp",
"cd",
"mp_pvp",
"cd_pvp",
"mp_enhanced",
"cd_enhanced",
"mp1",
"mp2",
"cd1",
"cd2",
"duration",
"duration_pvp",
"duration_enhanced",
"desc1_trait1",
"desc1_trait2",
"desc2_trait1",
"desc2_trait2",
"detail1_trait1",
"detail2_trait1",
"detail1_trait2",
"detail2_trait2",
"detail1_trait1_pvp",
"detail2_trait1_pvp",
"detail1_trait2_pvp",
"detail2_trait2_pvp",
"detail1_trait1_enhanced",
"detail2_trait1_enhanced",
"detail1_trait2_enhanced",
"detail2_trait2_enhanced",
"header1_trait1",
"header2_trait1",
"header1_trait2",
"header2_trait2",
"duration1",
"duration2"
]
}
}
</templatedata>
</templatedata>

Revision as of 14:16, 29 August 2022

Information: This template is using a Scribunto Module: Module:Traits.

A template used to generate a tabular information section about a skill's traits.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Character Name1 char

Used to apply a color to table headers.

Example
Laby
Stringrequired
Skill Name2 skill

no description

Example
Suplen
Stringrequired
Traits3 traits

Both trait names separated with a comma. White-space is stripped.

Default
-, -
Example
Light, Regenerating (1)
Stringsuggested
MP Usagemp

The template returns an error if you specify the multiplier argument (such as mp1) while this field is empty.

Numbersuggested
Cooldowncd

The template returns an error if you specify the multiplier argument (such as cd1) while this field is empty.

Numbersuggested
MP Usage (PvP)mp_pvp

no description

Numberoptional
Cooldown (PvP)cd_pvp

no description

Numberoptional
MP Usage (Final Enhanced)mp_enhanced

no description

Numberoptional
Cooldown (Final Enhanced)cd_enhanced

no description

Numberoptional
Trait 1 MP Effectmp1

Specify in % (without the sign). If certain MP traits are active (such as Reversed) and this is not specified 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).

Numberoptional
Trait 2 MP Effectmp2

Specify in % (without the sign). If certain MP traits are active (such as Reversed) and this is not specified 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).

Numberoptional
Trait 1 Cooldown Effectcd1

Specify in % (without the sign). If certain Cooldown traits are active (such as Reversed) and this is not specified 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 = 120).

Numberoptional
Trait 2 Cooldown Effectcd2

Specify in % (without the sign). If certain Cooldown traits are active (such as Reversed) and this is not specified 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 = 120).

Numberoptional
Durationduration

The template returns an error if you specify the multiplier argument (such as duration1) while this field is empty.

Numberoptional
Duration (PvP)duration_pvp

no description

Numberoptional
Duration (Final Enhanced)duration_enhanced

no description

Numberoptional
Trait 1 SkillText 1desc1_trait1

Pass an argument to a trait's SkillText.

Numberoptional
Trait 2 SkillText 1desc1_trait2

Pass an argument to a trait's SkillText.

Numberoptional
Trait 1 SkillText 2desc2_trait1

Pass an argument to a trait's SkillText.

Numberoptional
Trait 2 SkillText 2desc2_trait2

Pass an argument to a trait's SkillText.

Unknownoptional
Trait 1 Detail 1detail1_trait1

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 1 Detail 2detail2_trait1

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 2 Detail 1detail1_trait2

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 2 Detail 2detail2_trait2

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 1 Detail 1 (PvP)detail1_trait1_pvp

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 1 Detail 2 (PvP)detail2_trait1_pvp

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 2 Detail 1 (PvP)detail1_trait2_pvp

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 2 Detail 2 (PvP)detail2_trait2_pvp

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 1 Detail 1 (Final Enhanced)detail1_trait1_enhanced

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 1 Detail 2 (Final Enhanced)detail2_trait1_enhanced

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 2 Detail 1 (Final Enhanced)detail1_trait2_enhanced

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 2 Detail 2 (Final Enhanced)detail2_trait2_enhanced

Custom detail field. (While undocumented, you can generate more than 2 fields)

Stringoptional
Trait 1 Header 1header1_trait1

Custom detail header. (While undocumented, you can generate more than 2 headers)

Stringoptional
Trait 1 Header 2header2_trait1

Custom detail header. (While undocumented, you can generate more than 2 headers)

Stringoptional
Trait 2 Header 1header1_trait2

Custom detail header. (While undocumented, you can generate more than 2 headers)

Stringoptional
Trait 2 Header 2header2_trait2

Custom detail header. (While undocumented, you can generate more than 2 headers)

Stringoptional
Trait 1 Duration Effectduration1

Specify in % (without the sign). If Killing Blow (1) is active and this is not specified for the exact index, the template returns an error.

Numberoptional
Trait 2 Duration Effectduration2

Specify in % (without the sign). If Killing Blow (1) is active and this is not specified for the exact index, the template returns an error.

Numberoptional