Difference between revisions of "Template:AddAttributePoints"

From Istaria Lexica

Line 1: Line 1:
 
<includeonly>{{#if:{{{1|}}}|<nowiki/>
 
<includeonly>{{#if:{{{1|}}}|<nowiki/>
{{#set:{{{1}}}={{{points|0}}}}}{{#set:{{{name}}}max={{{maxpoints|0}}}}}}}</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 19:12, 25 September 2022

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)