Difference between revisions of "Template:Condition test"

From Stoneshard wiki
Jump to navigation Jump to search
(Created page with "<includeonly><!-- --- Load complete datastring into a variable - to only load from the Condition data page once. --- -->{{#vardefine:Datastring|{{#if: {{{1}}}|{{:Condition_data|{{{1}}}}}|{{:Condition_data|{{ROOTPAGENAME}}}}}} }}<!-- --- Separate values from datastring into individual variables. --- -->{{#vardefine:Properties1|{{#explode: {{#var:Datastring}}|;|0}}}}<!-- -->{{#vardefine:Values1|{{#explode: {{#var:Datastring}}|;|1}}}}<!-- -->{{#vardefine:Properties2|{{#expl...")
 
m
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--- Load complete datastring into a variable - to only load from the Condition data page once. ---
--- Load complete datastring into a variable - to only load from the Condition data page once. ---
-->{{#vardefine:Datastring|{{#if: {{{1}}}|{{:Condition_data|{{{1}}}}}|{{:Condition_data|{{ROOTPAGENAME}}}}}} }}<!--
-->{{#vardefine:Datastring|{{#if: {{{1|}}}|{{:Condition_data|{{{1|}}}}}|{{:Condition_data|{{ROOTPAGENAME}}}}}} }}<!--
--- Separate values from datastring into individual variables. ---
--- Separate values from datastring into individual variables. ---
-->{{#vardefine:Properties1|{{#explode: {{#var:Datastring}}|;|0}}}}<!--
-->{{#vardefine:Properties1|{{#explode: {{#var:Datastring}}|;|0}}}}<!--
Line 21: Line 21:
-->{{#vardefine:PropertyText|{{#explode: {{#var:Datastring}}|;|-1}}}}<!--
-->{{#vardefine:PropertyText|{{#explode: {{#var:Datastring}}|;|-1}}}}<!--
-->{| width=400px;
-->{| width=400px;
|<span style="font-size: 20px;">{{#if:{{{1}}}|{{Translate|{{{1}}}|ConditionNames}}|{{Translate|{{ROOTPAGENAME}}|ConditionNames}}}}</span> <br /> <span style="color:#9d9a9a;">{{c|{{#var:ConditionType|White}}|{{Translate|{{#var:ConditionType|ConditionType}}|Properties}}}}</span>{{Tooltip rule}}
|<span style="font-size: 20px;">{{#if:{{{1|}}}|{{Translate|{{{1|}}}|ConditionNames}}|{{Translate|{{ROOTPAGENAME}}|ConditionNames}}}}</span> <br /> <span style="color:#9d9a9a;">{{c|{{#var:ConditionType|White}}|{{Translate|{{#var:ConditionType|ConditionType}}|Properties}}}}</span>{{Tooltip rule}}
|-
|-
|<div style="width:100%;color:white;">
|<div style="width:100%;color:white;">

Revision as of 15:50, 6 April 2023

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