Template:CharStats: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 1: Line 1:
<!--
<includeonly>
    To someone who will make their version(s):
<div class="char-stats">
    Since the color param work for both Radar and table, use html-style (#xxx) color to make it work for Radar, BUT WITHOUT THE LEADING #.
<div class="char-stats-cat"><span>Speed</span></div><div class="char-stats-active">{{#switch: {{{Speed|}}}|#default|1=Slow|2=Average|3=Fast}}</div><div class="char-stats-attack">{{#switch: {{{Damage|}}}|#default|M=[[File:UI - Magical Class.png]]|P=[[File:UI - Physical Class.png]]}}</div>
    And, try use a dark colors, since the text with select color will be easier to look (It is previously done for Job Classes / Characters, and Job colors are normally dark, on which black is sometimes hard to see).
<div class="char-stats-cat"><span>Range</span></div><div class="char-stats-active">{{#switch: {{{Speed|}}}|#default|1=Short|2=Medium|3=Long}}</div>
    Thank you.
<div class="char-stats-cat"><span>Difficulty</span></div><div class="char-stats-active">{{#switch: {{{Speed|}}}|#default|1=Easy|2=Normal|3=Hard}}</div><div class="char-stats-attack-caption"><span>{{#switch: {{{Damage|}}}|#default|M=Magical|P=Physical}}</span></div>
    * PS: Since the Title in Radar Graph is too close to the graph, I move it to a separate title.
</div>
--><center><font style="font-size: 12pt">{{{Title|}}}</font><!--{{#pRadar: size=280x250|colors={{{Color|}}}|ymin=0|ymax=5|striped|stripecolor=#000|axiscolor=#000|filled|textfont=hel.ttf|textsize=10|data=
</includeonly><noinclude>{{Doc}}</noinclude>
HP,{{{HP}}}
MATK, {{{MATK}}}
MDEF, {{{MDEF}}}
PDEF, {{{PDEF}}}
PATK, {{{PATK}}}
}}-->
{| class="wikitable" style="text-align: center;"
! style="text-align: left; font-size: 10pt;" | Speed:
| {{#ifeq:{{{Speed|}}}|1|style="background-color: #{{{Color|}}}; color: #fff;" {{!}}}}Slow
| {{#ifeq:{{{Speed|}}}|2|style="background-color: #{{{Color|}}}; color: #fff;" {{!}}}}Average
| {{#ifeq:{{{Speed|}}}|3|style="background-color: #{{{Color|}}}; color: #fff;" {{!}}}}Fast
| rowspan=2 | {{#switch:{{{Damage|}}}| P = [[File:UI - Physical Class.png|50px]] | M = [[File:UI - Magical Class.png|50px]] | [[File:Dunno.png|50px]] }}
|-
! style="text-align: left; font-size: 10pt;" | Attack Range:
| {{#ifeq:{{{Range|}}}|1|style="background-color: #{{{Color|}}}; color: #fff;" {{!}}}}Short
| {{#ifeq:{{{Range|}}}|2|style="background-color: #{{{Color|}}}; color: #fff;" {{!}}}}Medium
| {{#ifeq:{{{Range|}}}|3|style="background-color: #{{{Color|}}}; color: #fff;" {{!}}}}Long
|-
! style="text-align: left; font-size: 10pt;" | Difficulty:
| {{#ifeq:{{{Difficulty|}}}|1|style="background-color: #{{{Color|}}}; color: #fff;" {{!}}}}Easy
| {{#ifeq:{{{Difficulty|}}}|2|style="background-color: #{{{Color|}}}; color: #fff;" {{!}}}}Normal
| {{#ifeq:{{{Difficulty|}}}|3|style="background-color: #{{{Color|}}}; color: #fff;" {{!}}}}Hard
| {{#switch:{{{Damage|}}}| P = Physical | M = Magical | ??? }}
|}</center>

Revision as of 11:17, 1 May 2022

Information: If you want to test this template, please use Sandbox.
The documentation does not exist, you can click here to create.