Difference between revisions of "Template:AddAttributePoints/doc"
From Istaria Lexica
(Created page with "==Description== Sets properties for skill points. You can finally display those in a table using Template:ShowSkillPoints. * If first parameter is not provided, do nothin...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
− | Sets properties for skill points. You can finally display those in a table using [[Template: | + | Sets properties for skill points. You can finally display those in a table using [[Template:ShowAttributePoints]]. |
+ | *Try out this template in your [{{fullurl:Special:MyPage/sandbox|action=edit§ion=new&preload={{FULLPAGENAMEE}}/sample}} sandbox] | ||
+ | *[[Special:WhatLinksHere/{{FULLPAGENAME}}|Find pages]] using this template | ||
* If first parameter is not provided, do nothing. | * If first parameter is not provided, do nothing. | ||
==Syntax== | ==Syntax== | ||
− | <pre>{{ | + | <pre>{{AddAttributePoints|name|points=|maxpoints=}}</pre> |
==Parameters== | ==Parameters== | ||
<section begin=Parameters /><pre> | <section begin=Parameters /><pre> | ||
− | {{ | + | {{AddAttributePoints |
− | | = Name of the | + | | = Name of the attribute (ex. Health, Strength, Dexterity). |
|points = Points gained each level. (Integer only!) | |points = Points gained each level. (Integer only!) | ||
|maxpoints = (optional) Maximum points gained when on maximum level. (Integer only!) | |maxpoints = (optional) Maximum points gained when on maximum level. (Integer only!) | ||
Line 18: | Line 20: | ||
==Example== | ==Example== | ||
<pre> | <pre> | ||
− | {{ | + | {{AddAttributePoints|Strength|points=6|maxpoints=750}} |
− | {{ | + | {{AddAttributePoints|Dexterity|points=11|maxpoints=1100}} |
− | {{ | + | {{AddAttributePoints|Focus|points=10|maxpoints=1000}} |
− | {{ | + | {{ShowAttributePoints}} |
</pre> | </pre> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 21:38, 25 September 2022
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}}