Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.
Template:Stats/doc: Difference between revisions
From Super Fantasy Kingdom Official Wiki
wgg>Cadaei Created page with "{{doc/start}} Displays stats for units. ==Examples== <nowiki>{{stats|hp=33|dmg=8|shield=4|crit=2%|pdef=20%|mdef=10%}}</nowiki> {{stats|hp=33|dmg=8|shield=4|crit=2%|pdef=20%|mdef=10%}} <nowiki>{{stats|hp=33|dmg=8|shield=4|crit=2%|pdef=20%|mdef=10%|inline=1}}</nowiki> {{stats|hp=33|dmg=8|shield=4|crit=2%|pdef=20%|mdef=10%|inline=1}} {{doc/end}}" |
updated doc with align option |
||
| (11 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
Displays [[stats]] for [[units]]. Call with [[Template:Stats]], code is in [[Module:Stats]]. | |||
Displays stats for units. | |||
==Parameters== | |||
* <code>inline</code>: If not empty stats will be shown in one line, else in a table format | |||
* <code>align</code>: Optional, valid values are <code>left</code>, <code>center</code> or <code>right</code>. It will display the stats in a simple column with the stated alignment. | |||
* <code>hp</code>: Health | |||
* <code>ma</code>: Mana | |||
* <code>sh</code>: Shield | |||
* <code>pd</code>: Physical Defense | |||
* <code>md</code>: Magical Defense | |||
* <code>dm</code>: Damage | |||
* <code>cr</code>: Critical Chance | |||
* <code>ra</code>: Range | |||
* <code>cd</code>: Cooldown | |||
* <code>ar</code>: Area | |||
* <code>kb</code>: Knockback | |||
* <code>sp</code>: Speed | |||
* <code>du</code>: Duration | |||
* <code>rg</code>: Rage | |||
* <code>gr</code>: Greed | |||
* <code>rr</code>: Reroll | |||
* <code>ba</code>: Banish | |||
* <code>cu</code>: Curse | |||
==Examples== | ==Examples== | ||
<nowiki>{{stats|hp=33| | <nowiki>{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%}}</nowiki> | ||
{{stats|hp=33| | {{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%}} | ||
<nowiki>{{stats|hp=20.5|ra=8.33 m|cd=1.2 s|cr=2%}}</nowiki> | |||
{{stats|hp=20.5|ra=8.33 m|cd=1.2 s|cr=2%}} | |||
<nowiki>{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%|inline=1}}</nowiki> | |||
{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%|inline=1}} | |||
<nowiki>{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%|align=center}}</nowiki> | |||
{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%|align=center}} | |||
<nowiki>{{stats|hp= | <nowiki>{{stats | ||
{{stats|hp= | | first = Base stats | ||
| second = Maxed<br/>Base stats | |||
| dm = 5 | |||
| dm2 = 6.25 | |||
| dmGain = 1 | |||
| hp = 11 | |||
| hp2 = 14.3 | |||
| hpGain = 1 | |||
| sh = 13 m | |||
| sh2 = 16.9 m | |||
| shGain = 2 | |||
| cr = 5% | |||
| cr2 = 5.63% | |||
| crGain = 1 | |||
| pd = 0% | |||
| pd2 = 15% | |||
| pdGain = 3 | |||
| md = 0% | |||
| md2 = 15% | |||
| mdGain = 3 | |||
}}</nowiki> | |||
{{stats | |||
| first = Base stats | |||
| second = Maxed<br/>Base stats | |||
| dm = 5 | |||
| dm2 = 6.25 | |||
| dmGain = 1 | |||
| hp = 11 | |||
| hp2 = 14.3 | |||
| hpGain = 1 | |||
| sh = 13 m | |||
| sh2 = 16.9 m | |||
| shGain = 2 | |||
| cr = 5% | |||
| cr2 = 5.63% | |||
| crGain = 1 | |||
| pd = 0% | |||
| pd2 = 15% | |||
| pdGain = 3 | |||
| md = 0% | |||
| md2 = 15% | |||
| mdGain = 3 | |||
}}<noinclude>[[Category:Template documentation]]</noinclude> | |||
Latest revision as of 17:16, 25 November 2025
Displays stats for units. Call with Template:Stats, code is in Module:Stats.
Parameters
inline: If not empty stats will be shown in one line, else in a table formatalign: Optional, valid values areleft,centerorright. It will display the stats in a simple column with the stated alignment.hp: Healthma: Manash: Shieldpd: Physical Defensemd: Magical Defensedm: Damagecr: Critical Chancera: Rangecd: Cooldownar: Areakb: Knockbacksp: Speeddu: Durationrg: Ragegr: Greedrr: Rerollba: Banishcu: Curse
Examples
{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%}}
| 33 | |||
| 4 | |||
| 2 | % | ||
| 20 | % | ||
| 10 | % | ||
| 8 |
{{stats|hp=20.5|ra=8.33 m|cd=1.2 s|cr=2%}}
| 20 | .5 | ||
| 2 | % | ||
| 1 | .2 | s | |
| 8 | .33 | m |
{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%|inline=1}}
{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%|align=center}}
{{stats
| first = Base stats
| second = Maxed<br/>Base stats
| dm = 5
| dm2 = 6.25
| dmGain = 1
| hp = 11
| hp2 = 14.3
| hpGain = 1
| sh = 13 m
| sh2 = 16.9 m
| shGain = 2
| cr = 5%
| cr2 = 5.63%
| crGain = 1
| pd = 0%
| pd2 = 15%
| pdGain = 3
| md = 0%
| md2 = 15%
| mdGain = 3
}}
| Base stats | Maxed Base stats | ||||||
| 11 | 14 | .3 | |||||
| 13 | m | 16 | .9 | m | |||
| 5 | % | 5 | .63 | % | |||
| 0 | % | 15 | % | ||||
| 0 | % | 15 | % | ||||
| 5 | 6 | .25 | |||||


