Difference between revisions of "Template:Enemy test"

From Stoneshard wiki
Jump to navigation Jump to search
m
(two columns for protection and coloring, hp/energy coloring, enemy type coloring)
Line 70: Line 70:
<div style="text-align:center;"><br><span style="font-size: 20px;">{{#if:{{#var:Name}}|{{#var:Name}}|{{ROOTPAGENAME}}}}</span><br><!--
<div style="text-align:center;"><br><span style="font-size: 20px;">{{#if:{{#var:Name}}|{{#var:Name}}|{{ROOTPAGENAME}}}}</span><br><!--
-->Level {{#var:Level}} <!--
-->Level {{#var:Level}} <!--
-->{{#explode: {{#var:Datastring}}|;|3}}{{Clear}}<!--
--><span style="color:#d5b292;">{{#explode: {{#var:Datastring}}|;|3}}</span>{{Clear}}<!--
-->[[File:{{ROOTPAGENAME}}.png|link={{ROOTPAGENAME}}/Tooltip|class=image2x|alt={{ROOTPAGENAME}}|{{ROOTPAGENAME}}]]{{Clear}}<!--
-->[[File:{{ROOTPAGENAME}}.png|link={{ROOTPAGENAME}}/Tooltip|class=image2x|alt={{ROOTPAGENAME}}|{{ROOTPAGENAME}}]]{{Clear}}<!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Health: {{#explode: {{#var:Datastring}}|;|12}}</div><!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Health: <span style="color:#c75c5d;">{{#explode: {{#var:Datastring}}|;|12}}</span></div><!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Energy: {{#explode: {{#var:Datastring}}|;|13}}</div><!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Energy: <span style="color:#4c7fff;">{{#explode: {{#var:Datastring}}|;|13}}</span></div><!--
-->{{Tooltip rule}}'''Damage'''<br><!--
-->{{Tooltip rule}}'''Damage'''<br><!--
--- Only display Damage types that have a value. ---
--- Only display Damage types that have a value. ---
Line 91: Line 91:
-->{{Tooltip rule}}'''Protection'''</div><!--
-->{{Tooltip rule}}'''Protection'''</div><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--
--><div style="width: 145px;">Head <span style="float:right;">{{#var:Head DEF}}</span></div><!--
--><div style="width: 145px;">Head <span style="float:right;color:#d5b292;">{{#var:Head DEF}}</span></div><!--
--><div style="width: 145px;">Body <span style="float:right;">{{#var:Body DEF}}</span></div><br><!--
--><div style="width: 145px;">Body <span style="float:right;color:#d5b292;">{{#var:Body DEF}}</span></div></div><!--
--><div style="width: 145px;">Arms <span style="float:right;">{{#var:Arms DEF}}</span></div><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--
--><div style="width: 145px;">Legs <span style="float:right;">{{#var:Legs DEF}}</span></div></div><!--
--><div style="width: 145px;">Arms <span style="float:right;color:#d5b292;">{{#var:Arms DEF}}</span></div><!--
--><div style="width: 145px;">Legs <span style="float:right;color:#d5b292;">{{#var:Legs DEF}}</span></div></div><!--
--><div style="text-align:center;"><br>'''Resistances'''</div><!--
--><div style="text-align:center;"><br>'''Resistances'''</div><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--

Revision as of 18:48, 13 March 2023

This template has no documentation. If you know how to use this template, please add some.