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 example of more complex decimal alignment |
wgg>Cadaei stat gain example |
||
| Line 30: | Line 30: | ||
<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}} | ||
<nowiki>{{stats | |||
| first = Base | |||
| second = Level 10 | |||
| hp = 20.5 | |||
| hp2 = 25 | |||
| hpGain = 2 | |||
| ra = 8.33 m | |||
| ra2 = 16 m | |||
| raGain = 3 | |||
| cd = 1.2 s | |||
| cd2 = 1.2 s | |||
| cdGain = 0 | |||
| cr = 2% | |||
| cr2 = 2.5% | |||
| crGain = 1 | |||
}}</nowiki> | |||
{{stats | |||
| first = Base | |||
| second = Level 10 | |||
| hp = 20.5 | |||
| hp2 = 25 | |||
| hpGain = 2 | |||
| ra = 8.33 m | |||
| ra2 = 16 m | |||
| raGain = 3 | |||
| cd = 1.2 s | |||
| cd2 = 1.2 s | |||
| cdGain = 0 | |||
| cr = 2% | |||
| cr2 = 2.5% | |||
| crGain = 1 | |||
}} | |||
{{doc/end}} | {{doc/end}} | ||
Revision as of 23:52, 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}}
{{stats
| first = Base
| second = Level 10
| hp = 20.5
| hp2 = 25
| hpGain = 2
| ra = 8.33 m
| ra2 = 16 m
| raGain = 3
| cd = 1.2 s
| cd2 = 1.2 s
| cdGain = 0
| cr = 2%
| cr2 = 2.5%
| crGain = 1
}}
| Base | Level 10 | ||||||
| 20 | .5 | 25 | |||||
| 2 | % | 2 | .5 | % | |||
| 1 | .2 | s | 1 | .2 | s | ||
| 8 | .33 | m | 16 | m | |||


