Difference between revisions of "Template:Condition test"

From Stoneshard wiki
Jump to navigation Jump to search
Line 21: Line 21:
-->{{#vardefine:Properties8|{{#ifexpr: {{#var:Count}}>15|{{#explode: {{#var:Datastring}}|;|14}}|}}}}<!--
-->{{#vardefine:Properties8|{{#ifexpr: {{#var:Count}}>15|{{#explode: {{#var:Datastring}}|;|14}}|}}}}<!--
-->{{#vardefine:Values8|{{#ifexpr: {{#var:Count}}>15|{{#explode: {{#var:Datastring}}|;|15}}|}}}}<!--
-->{{#vardefine:Values8|{{#ifexpr: {{#var:Count}}>15|{{#explode: {{#var:Datastring}}|;|15}}|}}}}<!--
-->{{#vardefine:PropertyText|{{ifeq: {{#explode: {{#var:Datastring}}|;|-1}}|None||{{#explode: {{#var:Datastring}}|;|-1}}}}}}<!--
-->{{#vardefine:PropertyText|{{ifeq: {{#explode: {{#var:Datastring}}|;|-1}}|None| |{{#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}}
Line 34: Line 34:
-->{{#if: {{#var:Properties7}} | <div style="float:left;">{{Translate|{{#var:Properties7}}|Properties}}</div> <div style="float: right;">{{#var:Values7}}</div> | }}{{Clear}}<!--
-->{{#if: {{#var:Properties7}} | <div style="float:left;">{{Translate|{{#var:Properties7}}|Properties}}</div> <div style="float: right;">{{#var:Values7}}</div> | }}{{Clear}}<!--
-->{{#if: {{#var:Properties8}} | <div style="float:left;">{{Translate|{{#var:Properties8}}|Properties}}</div> <div style="float: right;">{{#var:Values8}}</div> | }}{{Clear}}<!--
-->{{#if: {{#var:Properties8}} | <div style="float:left;">{{Translate|{{#var:Properties8}}|Properties}}</div> <div style="float: right;">{{#var:Values8}}</div> | }}{{Clear}}<!--
-->{{#if: {{#var:PropertyText}} | <div style="float:left;">{{#if: {{:{{ROOTPAGENAME}}|Properties1}}|<br>| }} {{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{#var:PropertyText}} | {{Translate|{{ROOTPAGENAME}}|ConditionDescriptions}}}} | {{#var:PropertyText}}}}</div> |}}</div>
-->{{#if: {{#var:PropertyText}} | <div style="float:left;">{{#if: {{#var:Properties1}}|<br>| }} {{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{#var:PropertyText}} | {{Translate|{{ROOTPAGENAME}}|ConditionDescriptions}}}} | {{#var:PropertyText}}}}</div> |}}</div>
|-
|-
|style="color:#9d7969;"|{{#if: {{#var:Description}} | {{Tooltip rule}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{#var:Description}} | {{Translate|{{ROOTPAGENAME}} Description|ConditionDescriptions}}}} | {{#var:Description}}}} <br />| }}
|style="color:#9d7969;"|{{#if: {{#var:Description}} | {{Tooltip rule}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{#var:Description}} | {{Translate|{{ROOTPAGENAME}} Description|ConditionDescriptions}}}} | {{#var:Description}}}} <br />| }}

Revision as of 16:29, 6 April 2023

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