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
link to module, more examples
wgg>Cadaei
updated with more stats
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
Displays stats for units. [[Module:Stats]].
Displays stats for units. [[Module:Stats]].
==Parameters==
* <code>inline</code>: If not empty stats will be shown in one line, else in a table format
* <code>hp</code>: Health
* <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>gr</code>: Greed
* <code>rr</code>: Reroll
* <code>ba</code>: Banish
* <code>cu</code>: Curse


==Examples==
==Examples==
  <nowiki>{{stats|hp=33|dmg=8|shield=4|crit=2%|pdef=20%|mdef=10%}}</nowiki>
  <nowiki>{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%}}</nowiki>
{{stats|hp=33|dmg=8|shield=4|crit=2%|pdef=20%|mdef=10%}}
{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%}}


  <nowiki>{{stats|hp=20|range=8 m|cd=1.2 s|crit=2%}}</nowiki>
  <nowiki>{{stats|hp=20|ra=8 m|cd=1.2 s|cr=2%}}</nowiki>
{{stats|hp=20|range=8 m|cd=1.2 s|crit=2%}}
{{stats|hp=20|ra=8 m|cd=1.2 s|cr=2%}}


  <nowiki>{{stats|hp=33|dmg=8|shield=4|crit=2%|pdef=20%|mdef=10%|inline=1}}</nowiki>
  <nowiki>{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%|inline=1}}</nowiki>
{{stats|hp=33|dmg=8|shield=4|crit=2%|pdef=20%|mdef=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 14:22, 15 July 2023

Displays stats for units. Module:Stats.

Parameters

  • inline: If not empty stats will be shown in one line, else in a table format
  • hp: Health
  • sh: Shield
  • pd: Physical Defense
  • md: Magical Defense
  • dm: Damage
  • cr: Critical Chance
  • ra: Range
  • cd: Cooldown
  • ar: Area
  • kb: Knockback
  • sp: Speed
  • du: Duration
  • gr: Greed
  • rr: Reroll
  • ba: Banish
  • cu: Curse

Examples

{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%}}
33
4
2%
20%
10%
8
{{stats|hp=20|ra=8 m|cd=1.2 s|cr=2%}}
20
2%
1.2s
8m
{{stats|hp=33|dm=8|sh=4|cr=2%|pd=20%|md=10%|inline=1}}

 33 •  4 •  2% •  20% •  10% •  8