FANDOM


Use this for testing purposes only!

I made a mooky db:

{{#switch: {{lc:{{{1}}}}}
|e=Normal
|n1=Mooky|n2=Kowa|n3=Oxin
|h1=71|h2=81|h3=107
|a1=0|a2=29|a3=44
|d1=26|d2=51|d3=58
|sa1=0|sa2=15|sa3=15
|sd1=0|sd2=15|sd3=40
|s1=49|s2=62|s3=72
}}

I made a template:

{{guardians/stats<!--
-->|{{stats/{{{1}}}|h1}}|{{stats/{{{1}}}|h2}}|{{stats/{{{1}}}|h3}}<!-- Health
-->|{{Stats/{{{1}}}|a1}}|{{stats/{{{1}}}|a2}}|{{stats/{{{1}}}|a3}}<!-- Attack
-->|{{stats/{{{1}}}|d1}}|{{stats/{{{1}}}|d2}}|{{stats/{{{1}}}|d3}}<!-- Defense
-->|{{stats/{{{1}}}|sa1}}|{{stats/{{{1}}}|sa2}}|{{stats/{{{1}}}|sa3}}<!-- Special Attack
-->|{{stats/{{{1}}}|sd1}}|{{stats/{{{1}}}|sd2}}|{{stats/{{{1}}}|sd3}}<!-- Special Defense
-->|{{stats/{{{1}}}|s1}}|{{stats/{{{1}}}|s2}}|{{stats/{{{1}}}|s3}}<!-- Speed
-->}}

and now if you write

{{:Test/template|Mooky}}

you get

Health
Attack
Defense
Special Attack
Special Defense
Speed
1st evolution 2nd evolution 3rd evolution

you can use the same data to display other things in other pages:

Mooky's health is {{Stats/Mooky|h1}}

Mooky's health is 71


I made another template:

{{#ifexpr: {{{1}}} > 100 | Good|
{{#ifexpr: {{{1}}} > 50 | OK|
Bad
}}}}
it displays words according to stats:
>100=Good , 51~99=OK, 0~50=Bad

now

{{stats/Mooky|n1}}'s speed is {{:test/template2|{{stats/Mooky|s1}}}}

{{stats/Mooky|n2}}'s speed is {{:test/template2|{{stats/Mooky|s2}}}}

{{stats/Mooky|n3}}'s speed is {{:test/template2|{{stats/Mooky|s3}}}}

{{stats/Mooky|n1}}'s element is {{stats/Mooky|e}}
gives:

Mooky's speed is Bad

Kowa's speed is OK

Oxin's speed is OK

Mooky's element is Normal

Notes

All the info displayed here is taken from the same page - Template:stats/Mooky

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.