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 links |
wgg>Cadaei example of more complex decimal alignment |
||
| Line 25: | Line 25: | ||
{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%}} | {{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%}} | ||
<nowiki>{{stats|hp=20|ra=8 m|cd=1.2 s|cr=2%}}</nowiki> | <nowiki>{{stats|hp=20.5|ra=8.33 m|cd=1.2 s|cr=2%}}</nowiki> | ||
{{stats|hp=20|ra=8 m|cd=1.2 s|cr=2%}} | {{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> | <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}} | {{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%|inline=1}} | ||
{{doc/end}} | {{doc/end}} | ||
Revision as of 21:33, 11 October 2023
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 formathp: Healthsh: Shieldpd: Physical Defensemd: Magical Defensedm: Damagecr: Critical Chancera: Rangecd: Cooldownar: Areakb: Knockbacksp: Speeddu: Durationgr: 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}}


