Difference between revisions of "Template:Merchant test"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<!-- <span "The chosen design"> "The text this will affect" </span> --> | |||
<span style="text-align:left;"> '''PRICE FLUCTUATION''' </span> | <span style="text-align:left;"> '''PRICE FLUCTUATION''' </span> | ||
---- | ---- | ||
<!-- "----" Horizontal dividing line --> | |||
{| width=250px;|style="text-align:left;"| | {| width=250px;|style="text-align:left;"| | ||
{{#if: {{{Trader Favorability|}}} | {{!}}{{C|Gray|Trader Favorability}} {{!!}} {{C|{{#ifexpr: {{{Trader Favorability}}}>0 | + | - }} | {{{Trader Favorability}}}%}} | }} | {{#if: {{{Trader Favorability|}}} | {{!}}{{C|Gray|Trader Favorability}} {{!!}} {{C|{{#ifexpr: {{{Trader Favorability}}}>0 | + | - }} | {{{Trader Favorability}}}%}} | }} | ||
|} | |} | ||
<!-- {{C|{{#ifexpr: {{{Trader Favorability}}}>0 | + | - }} | {{{Trader Favorability}}}%}} This is a command whose purpose is to check whether the number is positive or negative and color the number accordingly.--> | |||
<span style="text-align:left;"> '''SUPPLY''' </span> | <span style="text-align:left;"> '''SUPPLY''' </span> | ||
---- | ---- | ||
| Line 20: | Line 23: | ||
{{#if: {{{Overall Demand|}}} | {{!}}{{C|Gray|Overall Demand}} {{!!}} {{C|{{#ifexpr: {{{Overall Demand}}}>0 | + | - }} | {{{Overall Demand}}}%}} | }} | {{#if: {{{Overall Demand|}}} | {{!}}{{C|Gray|Overall Demand}} {{!!}} {{C|{{#ifexpr: {{{Overall Demand}}}>0 | + | - }} | {{{Overall Demand}}}%}} | }} | ||
|- | |- | ||
<!--{{{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. | ||
This allows you to ensure that only the things related to that merchant are displayed.--> | This allows you to ensure that only the things related to that merchant are displayed.--> | ||
| Line 50: | Line 53: | ||
{{#if: {{{Artifacts|}}} | {{!}}{{C|Gray|Artifacts}} {{!!}} {{{Artifacts|0.35}}}x | }} | {{#if: {{{Artifacts|}}} | {{!}}{{C|Gray|Artifacts}} {{!!}} {{{Artifacts|0.35}}}x | }} | ||
|- | |- | ||
{{#if: {{{Materials|}}} | {{!}}{{C|Gray|Materials}} {{!!}} {{{Materials|0.2}}}x | }} | |||
|- | |||
{{#if: {{{Ammunition|}}} | {{!}}{{C|Gray|Ammunition}} {{!!}} {{{Ammunition|0.15}}}x | }} | |||
|- | |||
<!-- Commodity prices--> | <!-- Commodity prices--> | ||
Revision as of 14:52, 11 October 2025
it a test do not use Documentation needs to be added