Difference between revisions of "Template:Merchant test"

From Stoneshard wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>
<includeonly>
{| width=250px;|style="text-align:left;"|
{| width=250px;|style="text-align:left;"|
<!-- It's one big table built with two columns "||" ,To a new line "|-" Then "|".-->


<!-- 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 -->


|{{C|Gray|Valuables}}||{{{Valuables|0.5}}}x
<!-- |{{#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.
This allows you to ensure that only the things related to that merchant are displayed.-->
<!--#if: {{{Valuables}}} Will also work with the variable empty.-->
 
|{{#if: {{{Valuables}}} | {{C|Gray|Valuables}} {{!!}} {{{Valuables|0.5}}}x | }}
|-
|{{#if: {{{Jewlry}}} | {{C|Gray|Jewlry}} {{!!}} {{{Jewlry|0.5}}}x | }}
|-
|-
|{{C|Gray|Jewlry}}||{{{Jewlry|0.5}}}x
|{{#if: {{{Metal|}}} | {{C|Gray|Metal}} {{!!}} {{C|+|{{{Metal}}}%}} | }}
|-
|-
|{{#if: {{{Metal|}}} | {{C|Gray|Metal}}{{!!}}{{C|+|{{{Metal}}}%}} | }}
|{{#if: {{{Metal|}}} | {{C|Gray|Metal}} {{!!}} {{C|+|{{{Metal}}}%}} | }}
|-
|-
|{{C|Gray|Gold}}||{{C|+|{{{Gold|+15}}}%}}
|{{C|Gray|Gold}} || {{C|+|{{{Gold|+15}}}%}}
|-
|-
|{{C|Gray|Silver}}||{{C|+|{{{Silver|+5}}}%}}
|{{C|Gray|Silver}} || {{C|+|{{{Silver|+5}}}%}}
|-
|-
|{{C|Gray|Gems}}||{{C|+|{{{Gems|+10}}}%}}
|{{C|Gray|Gems}} || {{C|+|{{{Gems|+10}}}%}}


|}
|}

Revision as of 18:06, 9 October 2025


it a test do not use Documentation needs to be added