Template:Traits/doc: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 9: Line 9:
"type": "string",
"type": "string",
"required": true,
"required": true,
"suggested": true
"suggested": true,
"aliases": [
"char"
]
},
},
"2": {
"2": {
Line 16: Line 19:
"type": "string",
"type": "string",
"required": true,
"required": true,
"suggested": true
"suggested": true,
"aliases": [
"skill"
]
},
},
"3": {
"3": {
Line 24: Line 30:
"type": "string",
"type": "string",
"default": "-, -",
"default": "-, -",
"suggested": true,
"aliases": [
"traits"
]
},
"mp": {
"label": "MP Usage",
"type": "number",
"suggested": true
},
"cd": {
"label": "Cooldown",
"type": "number",
"suggested": true
"suggested": true
},
},
"4": {
"mp1": {
"aliases": [
"label": "Trait 1 MP Effect",
"effects1"
"description": "Specify in % (without the sign)",
],
"type": "number"
"label": "Trait 1 Skill Text",
},
"description": "First trait's values included in the SkillText template.",
"mp2": {
"example": "80, 150",
"label": "Trait 2 MP Effect",
"type": "string",
"description": "Specify in % (without the sign)",
"default": "Trait's default values"
"type": "number"
},
"cd1": {
"label": "Trait 1 Cooldown Effect",
"description": "Specify in % (without the sign)",
"type": "number"
},
"cd2": {
"label": "Trait 2 Cooldown Effect",
"description": "Specify in % (without the sign)",
"type": "number"
},
"duration": {
"label": "Duration",
"type": "number"
},
"desc1_trait1": {
"label": "Trait 1 SkillText 1",
"description": "Pass an argument to a trait's SkillText.",
"type": "number"
},
"desc1_trait2": {
"label": "Trait 2 SkillText 1",
"description": "Pass an argument to a trait's SkillText.",
"type": "number"
},
"desc2_trait1": {
"label": "Trait 1 SkillText 2",
"description": "Pass an argument to a trait's SkillText.",
"type": "number"
},
"desc2_trait2": {
"label": "Trait 2 SkillText 2",
"description": "Pass an argument to a trait's SkillText."
},
"detail1_trait1": {
"label": "Trait 1 Detail 1",
"description": "Custom detail field. (While undocumented, you can generate more than 2 fields)",
"type": "string"
},
"detail2_trait1": {
"label": "Trait 1 Detail 2",
"description": "Custom detail field. (While undocumented, you can generate more than 2 fields)",
"type": "string"
},
"detail1_trait2": {
"label": "Trait 2 Detail 1",
"description": "Custom detail field. (While undocumented, you can generate more than 2 fields)",
"type": "string"
},
"detail2_trait2": {
"label": "Trait 2 Detail 2",
"description": "Custom detail field. (While undocumented, you can generate more than 2 fields)",
"type": "string"
},
"header1_trait1": {
"label": "Trait 1 Header 1",
"description": "Custom detail header. (While undocumented, you can generate more than 2 headers)",
"type": "string"
},
},
"5": {
"header2_trait1": {
"aliases": [
"label": "Trait 1 Header 2",
"effects2"
"description": "Custom detail header. (While undocumented, you can generate more than 2 headers)",
],
"type": "string"
"label": "Trait 2 Skill Text",
"description": "Second trait's values included in the SkillText template.",
"example": "130",
"type": "string",
"default": "Trait's default values"
},
},
"6": {
"header1_trait2": {
"aliases": [
"label": "Trait 2 Header 1",
"desc1"
"description": "Custom detail header. (While undocumented, you can generate more than 2 headers)",
],
"label": "Trait 1 Details",
"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"
"type": "string"
},
},
"7": {
"header2_trait2": {
"aliases": [
"label": "Trait 2 Header 2",
"desc2"
"description": "Custom detail header. (While undocumented, you can generate more than 2 headers)",
],
"label": "Trait 2 Details",
"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"
"type": "string"
},
"duration1": {
"label": "Trait 1 Duration Effect",
"description": "Specify in % (without the sign)",
"type": "number"
},
"duration2": {
"label": "Trait 2 Duration Effect",
"description": "Specify in % (without the sign)",
"type": "number"
}
}
},
},
Line 70: Line 144:
"2",
"2",
"3",
"3",
"4",
"mp",
"5",
"cd",
"6",
"duration",
"7"
"mp1",
"mp2",
"cd1",
"cd2",
"duration1",
"duration2",
"desc1_trait1",
"desc2_trait1",
"desc1_trait2",
"desc2_trait2",
"detail1_trait1",
"detail2_trait1",
"detail1_trait2",
"detail2_trait2",
"header1_trait1",
"header2_trait1",
"header1_trait2",
"header2_trait2"
],
],
"format": "{{_\n| _ = _\n}}"
"format": "block"
}
}
</templatedata>
</templatedata>

Revision as of 20:07, 28 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

no description

Numbersuggested
Cooldowncd

no description

Numbersuggested
Durationduration

no description

Numberoptional
Trait 1 MP Effectmp1

Specify in % (without the sign)

Numberoptional
Trait 2 MP Effectmp2

Specify in % (without the sign)

Numberoptional
Trait 1 Cooldown Effectcd1

Specify in % (without the sign)

Numberoptional
Trait 2 Cooldown Effectcd2

Specify in % (without the sign)

Numberoptional
Trait 1 Duration Effectduration1

Specify in % (without the sign)

Numberoptional
Trait 2 Duration Effectduration2

Specify in % (without the sign)

Numberoptional
Trait 1 SkillText 1desc1_trait1

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 1desc1_trait2

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 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