Difference between revisions of "Template:Ability"

From DDO Compendium
m (Undo revision 148512 by Ague (talk))
Tag: Undo
m (Undo revision 148511 by Ague (talk))
Tag: Undo
 
Line 1: Line 1:
<noinclude>
<noinclude>{{TemplateDocumentation
<templatedata>
|name = Ability
{
|description = This template is used on equipment for the ability enchantment.  It shows the text of the ability as close as possible to the way it looks on an items examine window.
"params": {
|category=Item Enchantment Template
"1": {
|usesnamedparameters=
"label": "Ability",
|example1 = <nowiki>{{Ability|Constitution|10|Insight}}</nowiki>
"description": "This specifies which Ability is being added.",
|example1output = {{Ability|Constitution|10|Insight}}
"type": "string",
|example2 = <nowiki>{{Ability|Dexterity|-1||Curse of Clumsiness}}</nowiki>
"required": true,
|example2output = {{Ability|Dexterity|-1||Curse of Clumsiness}}
"example": "{{Ability|Constitution|10}}"
|parameter1name = Ability
},
|parameter1description = This specifies which [[Abilities|Ability]] is being added.
"2": {
|parameter1values =
"label": "Enhancement Amount",
|parameter2name = Enhancement Amount
"description": "This is the amount the ability is increased or decreased. A negative value here will produce \"penalty\" instead of \"bonus\".",
|parameter2description = This is the amount the ability is increased or decreased. A negative value here will produce "penalty" instead of "bonus".
"type": "number",
|parameter2values =
"required": true,
|parameter3name = Bonus Type
"example": "{{Ability|Constitution|10}}"
|parameter3description = This is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Enhancement.
},
|parameter3values =
"3": {
|parameter4name = Title
"label": "Bonus Type",
|parameter4description = A specific title to this enchantment
"description": "This is the type of bonus - Insight, Enhancement, Quality, etc.",
}}<!-- If updating this template is required, don't forget to update the categorization! -->
"type": "string",
</noinclude><onlyinclude>{{EnchTitle|Abilities#{{{1}}}|{{#ifexpr: {{{2}}} < 0 ||{{BonusTypeNameConversion|{{{3|}}}|True}}}} {{{1}}} {{#ifexpr: {{{2}}} < 0 ||+}}{{{2}}}|{{{4|}}}}}{{EnchBody|Passive: {{#ifexpr: {{{2}}} < 0 ||+}}{{{2}}} {{#ifexpr: {{{2}}} < 0 ||{{BonusTypeNameConversion|{{{3|Enhancement}}}}}}} {{#ifexpr: {{{2}}} < 0 |penalty|bonus}} to {{#switch: {{{1|}}}
"default": "Enhancement",
"suggested": true,
"example": "{{Ability|Constitution|10|Insight}}"
},
"4": {
"label": "Title",
"description": "\tA specific title to this enchantment",
"type": "string",
"example": "{{Ability|Dexterity|-1||Curse of Clumsiness}}"
}
},
"description": "This template is used on equipment for the ability enchantment. It shows the text of the ability as close as possible to the way it looks on an items examine window.",
"format": "inline"
}
</templatedata>[[Category:Template]]
</noinclude><includeonly>{{EnchTitle|Abilities#{{{1}}}|{{#ifexpr: {{{2}}} < 0 ||{{BonusTypeNameConversion|{{{3|}}}|True}}}} {{{1}}} {{#ifexpr: {{{2}}} < 0 ||+}}{{{2}}}|{{{4|}}}}}{{EnchBody|Passive: {{#ifexpr: {{{2}}} < 0 ||+}}{{{2}}} {{#ifexpr: {{{2}}} < 0 ||{{BonusTypeNameConversion|{{{3|Enhancement}}}}}}} {{#ifexpr: {{{2}}} < 0 |penalty|bonus}} to {{#switch: {{{1|}}}
|Well Rounded=All Abilities.
|Well Rounded=All Abilities.
|#default={{{1}}}.
|#default={{{1}}}.
Line 42: Line 26:
|Well Rounded=All Abilities
|Well Rounded=All Abilities
|#default={{ucfirst:{{lc:{{{1|}}}}}}}
|#default={{ucfirst:{{lc:{{{1|}}}}}}}
}}}}</includeonly>
}}}}</onlyinclude>

Latest revision as of 07:15, 2 April 2022

Ability[edit]

This template is used on equipment for the ability enchantment. It shows the text of the ability as close as possible to the way it looks on an items examine window.

Example Usage
{{Ability|Constitution|10|Insight}}Insightful Constitution +10: Passive: +10 Insight bonus to Constitution.
{{Ability|Dexterity|-1||Curse of Clumsiness}}Curse of Clumsiness: Passive: -1 penalty to Dexterity.

Usage[edit]

{{Ability|(Ability)|(Enhancement Amount)|(Bonus Type)|(Title)}}

Parameter Documentation
AbilityThis specifies which Ability is being added.
Enhancement AmountThis is the amount the ability is increased or decreased. A negative value here will produce "penalty" instead of "bonus".
Bonus TypeThis is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Enhancement.
TitleA specific title to this enchantment

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


[[Abilities#{{{1}}}|Expression error: Unrecognized punctuation character "{". {{{1}}} Expression error: Unrecognized punctuation character "{".{{{2}}}:]] Passive: Expression error: Unrecognized punctuation character "{".{{{2}}} Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". to {{{1}}}.