Difference between revisions of "Template:AddAttributePoints"

From Istaria Lexica

(Created page with "{{#if:{{{1|}}}|{{#ifexpr:{{{points|0}}} > 0|<nowiki/> {{#set:{{{1}}}={{{points}}}}}{{ifexpr:{{{maxpoints|0}}} > 0|{{#set:{{{name}}}max={{{maxpoints}}}}}}}}}}}</includeonly><no...")
 
Line 1: Line 1:
{{#if:{{{1|}}}|{{#ifexpr:{{{points|0}}} > 0|<nowiki/>
+
{{#if:{{{1|}}}|<nowiki/>
{{#set:{{{1}}}={{{points}}}}}{{ifexpr:{{{maxpoints|0}}} > 0|{{#set:{{{name}}}max={{{maxpoints}}}}}}}}}}}</includeonly><noinclude>{{Clr}}{{Documentation}}[[Category:Table Templates]][[Category:Non-standalone Templates]]</noinclude>
+
{{#set:{{{1}}}={{{points=0}}}}}{{#set:{{{name}}}max={{{maxpoints|0}}}}}}}</includeonly><noinclude>{{Clr}}{{Documentation}}[[Category:Table Templates]][[Category:Non-standalone Templates]]</noinclude>

Revision as of 18:57, 25 September 2022

</includeonly>

Template documentation (for the template shown above, sometimes hidden or invisible)

Description[edit]

Sets properties for skill points. You can finally display those in a table using Template:ShowAttributePoints.

  • Try out this template in your sandbox
  • Find pages using this template
  • If first parameter is not provided, do nothing.

Syntax[edit]

{{AddAttributePoints|name|points=|maxpoints=}}

Parameters[edit]

{{AddAttributePoints
|              = Name of the attribute (ex. Health, Strength, Dexterity).
|points        = Points gained each level. (Integer only!)
|maxpoints     = (optional) Maximum points gained when on maximum level. (Integer only!)
}}

Example[edit]

{{AddAttributePoints|Strength|points=6|maxpoints=750}}
{{AddAttributePoints|Dexterity|points=11|maxpoints=1100}}
{{AddAttributePoints|Focus|points=10|maxpoints=1000}}
{{ShowAttributePoints}}
Visit Template:AddAttributePoints/doc to edit this text. (How to: document correctly)