Difference between revisions of "Template:Merchant test"

From Stoneshard wiki
Jump to navigation Jump to search
Line 10: Line 10:
----
----
{| width=250px;|style="text-align:left;"|
{| width=250px;|style="text-align:left;"|
 
|{{C|Gray|Markup}} || {{{Markup|1.25}}}x
|}
|}


Line 16: Line 16:
----
----
{| width=250px;|style="text-align:left;"|
{| width=250px;|style="text-align:left;"|
<!-- It's one big table built with two columns "||" or "{{!!}}" ,To a new line "|-" Then "|".-->
{{#if: {{{Overall Demand|}}} | {{!}}{{C|Gray|Overall Demand}} {{!!}} {{C|{{#ifexpr: {{{Overall Demand}}}>0 | + | - }} | {{{Overall Demand}}}%}} | }}


<!-- It's one big table built with two columns "||" or "{{!!}}" ,To a new line "|-" Then "|".-->
<!--{{{Valuables|0.5}}} This will check if there is a {{{variable}}} with that name and if so it will take its value, and if not it will take the default 0.5 -->
<!--{{{Valuables|0.5}}} This will check if there is a {{{variable}}} with that name and if so it will take its value, and if not it will take the default 0.5 -->
<!-- |{{#if: {{{Metal|}}} | {{C|Gray|Metal}} {{!!}} {{C|+|{{{Metal}}}%}} | }}  This is a command that says,  
<!-- |{{#if: {{{Metal|}}} | {{C|Gray|Metal}} {{!!}} {{C|+|{{{Metal}}}%}} | }}  This is a command that says,  
if the variable {{{metal}}} is empty then don't display the line (which is the last option - after "|") but if there is content there, display the line as usual.
if the variable {{{metal}}} is empty then don't display the line (which is the last option - after "|") but if there is content there, display the line as usual.

Revision as of 04:05, 10 October 2025


it a test do not use Documentation needs to be added