Difference between revisions of "Template:Merchant test"

From Stoneshard wiki
Jump to navigation Jump to search
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<!-- <span "The chosen design"> "The text this will affect" </span>  -->
<span style="text-align:left;"> '''PRICE FLUCTUATION''' </span>
----
<!-- "----" Horizontal dividing line -->
{| width=250px;|style="text-align:left;"|
{{#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>
----
{| width=250px;|style="text-align:left;"|
|{{C|Gray|Markup}} ||  {{{Markup|1.25}}}x
|}


<span style="text-align:left;"> '''DEMAND''' </span>
<span style="text-align:left;"> '''DEMAND''' </span>
----
----
{| 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.
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.-->
<!--#if: {{{Valuables}}} Will also work with the variable empty.-->


<!-- Categories prices-->
{{#if: {{{Armor|}}} | {{!}}{{C|Gray|Armor}} {{!!}} {{{Armor|0.15}}}x | }}
|-
{{#if: {{{Weapons|}}} | {{!}}{{C|Gray|Weapons}} {{!!}} {{{Weapons|0.15}}}x | }}
|-
{{#if: {{{Food|}}} | {{!}}{{C|Gray|Food}} {{!!}} {{{Food|0.2}}}x | }}
|-
{{#if: {{{Medicine|}}} | {{!}}{{C|Gray|Medicine}} {{!!}} {{{Medicine|0.35}}}x | }}
|-
{{#if: {{{Valuables|}}} | {{!}}{{C|Gray|Valuables}} {{!!}} {{{Valuables|0.5}}}x | }}
{{#if: {{{Valuables|}}} | {{!}}{{C|Gray|Valuables}} {{!!}} {{{Valuables|0.5}}}x | }}
|-
|-
{{#if: {{{Jewlry|}}} | {{!}}{{C|Gray|Jewlry}} {{!!}} {{{Jewlry|0.5}}}x | }}
{{#if: {{{Jewlry|}}} | {{!}}{{C|Gray|Jewlry}} {{!!}} {{{Jewlry|0.5}}}x | }}
|-
|-
{{#if: {{{Tools|}}} | {{!}}{{C|Gray|Tools}} {{!!}} {{{Tools|0.3}}}x | }}
|-
{{#if: {{{Herbs|}}} | {{!}}{{C|Gray|Herbs}} {{!!}} {{{Herbs|0.25}}}x | }}
|-
{{#if: {{{Ingredients|}}} | {{!}}{{C|Gray|Ingredients}} {{!!}} {{{Ingredients|0.2}}}x | }}
|-
{{#if: {{{Drugs|}}} | {{!}}{{C|Gray|Drugs}} {{!!}} {{{Drugs|0.2}}}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-->
{{#if: {{{Grain|}}} | {{!}}{{C|Gray|Sack of Grain}} {{!!}} {{{Grain}}}x | }}
{{#if: {{{Sack_of_Grain|}}} | {{!}}{{C|Gray|Sack of Grain}} {{!!}} {{{Sack_of_Grain}}}x | }}
|-
|-
{{#if: {{{Charcoal|}}} | {{!}}{{C|Gray|Crates of Charcoal}} {{!!}} {{{Charcoal}}}x | }}
{{#if: {{{Crates_of_Charcoal|}}} | {{!}}{{C|Gray|Crates of Charcoal}} {{!!}} {{{Crates_of_Charcoal}}}x | }}
|-
|-
{{#if: {{{Timber|}}} | {{!}}{{C|Gray|Shipments of Timber}} {{!!}} {{{Timber}}}x | }}
{{#if: {{{Sack_of_Salt|}}} | {{!}}{{C|Gray|Sack of Salt}} {{!!}} {{{Sack_of_Salt}}}x | }}
|-
|-
{{#if: {{{Beer|}}} | {{!}}{{C|Gray|Barrels of Beer}} {{!!}} {{{Beer}}}x | }}
{{#if: {{{Shipments_of_Timber|}}} | {{!}}{{C|Gray|Shipments of Timber}} {{!!}} {{{Shipments_of_Timber}}}x | }}
|-
|-
{{#if: {{{Wine|}}} | {{!}}{{C|Gray|Crates of Wine}} {{!!}} {{{Wine}}}x | }}
{{#if: {{{Barrels_of_Beer|}}} | {{!}}{{C|Gray|Barrels of Beer}} {{!!}} {{{Barrels_of_Beer}}}x | }}
|-
|-
{{#if: {{{Cider|}}} | {{!}}{{C|Gray|Pails of Cider}} {{!!}} {{{Cider}}}x | }}
{{#if: {{{Crates_of_Wine|}}} | {{!}}{{C|Gray|Crates of Wine}} {{!!}} {{{Crates_of_Wine}}}x | }}
|-
{{#if: {{{Pails_of_Cider|}}} | {{!}}{{C|Gray|Pails of Cider}} {{!!}} {{{Pails_of_Cider}}}x | }}
|-
|-


Line 52: Line 95:
'''it a test do not use'''
'''it a test do not use'''
Documentation needs to be added
Documentation needs to be added
<!--{{doc}} Documentation needs to be added.-->
 
How does it look...
 
<!-- Please copy the template from here. -->
{{ {{{1|Tooltip hover box}}}|title= {{merchant test
 
|Trader Favorability = -5
|Markup              = 1.4
|Overall Demand      = +10
 
|Armor              = 0.15
|Weapons            = 0.15
|Food                = 0.2
|Medicine            = 0.35
|Valuables          = 0.5
|Jewlry              = 0.5
|Tools              = 0.3
|Herbs              = 0.25
|Ingredients        = 0.2
|Drugs              = 0.2
|Artifacts          = 0.35
|Materials          = 0.2
|Ammunition          = 0.15
 
|Sack_of_Grain      = 1.2
|Crates_of_Charcoal  = 1.23
|Sack_of_Salt        = 1.1
|Shipments_of_Timber = 1.15
|Barrels_of_Beer    = 1.23
|Crates_of_Wine      = 1.31
|Pails_of_Cider      = 1.25
 
|Metal              = +10
|Wood                = +10
|Leadther            = +10
|Cloth              = +10
 
|Gold                = +20
|Silver              = +10
|Gems                = +15
}} }}
<!-- to here. -->
 
The text that needs to be copied to the merchant's page. The numbers should be changed according to the merchant's information, and anything that does not appear should be deleted.<br>
(It is preferable to copy directly from the template shown here - it's more organized, done through source editing)
 
<nowiki>{{ {{{1|Tooltip hover box}}}|title= {{merchant test </nowiki>
<br>
|Trader Favorability = -5<br>
<br>
|Markup              = 1.4<br>
|Overall Demand      = +10<br>
<br>
|Armor              = 0.15<br>
|Weapons            = 0.15<br>
|Food                = 0.2<br>
|Medicine            = 0.35<br>
|Valuables          = 0.5<br>
|Jewlry              = 0.5<br>
|Tools              = 0.3<br>
|Herbs              = 0.25<br>
|Ingredients        = 0.2<br>
|Drugs              = 0.2<br>
|Artifacts          = 0.35<br>
|Materials          = 0.2<br>
|Ammunition          = 0.15<br>
<br>
|Sack_of_Grain      = 1.2<br>
|Crates_of_Charcoal  = 1.23<br>
|Sack_of_Salt        = 1.1<br>
|Shipments_of_Timber = 1.15<br>
|Barrels_of_Beer    = 1.23<br>
|Crates_of_Wine      = 1.31<br>
|Pails_of_Cider      = 1.25<br>
 
|Metal              = +10<br>
|Wood                = +10<br>
|Leadther            = +10<br>
|Cloth              = +10<br>
 
|Gold                = +20<br>
|Silver              = +10<br>
|Gems                = +15<br>
<nowiki>}} }}
</nowiki>
 
<!--{{doc}}-->
[[Category:Tooltip templates]]
[[Category:Tooltip templates]]
</noinclude>
</noinclude>

Latest revision as of 21:39, 28 October 2025


it a test do not use Documentation needs to be added

How does it look...

PRICE FLUCTUATION


Trader Favorability -5%

SUPPLY


Markup 1.4x

DEMAND


Overall Demand +10%
Armor 0.15x
Weapons 0.15x
Food 0.2x
Medicine 0.35x
Valuables 0.5x
Jewlry 0.5x
Tools 0.3x
Herbs 0.25x
Ingredients 0.2x
Drugs 0.2x
Artifacts 0.35x
Materials 0.2x
Ammunition 0.15x
Sack of Grain 1.2x
Crates of Charcoal 1.23x
Sack of Salt 1.1x
Shipments of Timber 1.15x
Barrels of Beer 1.23x
Crates of Wine 1.31x
Pails of Cider 1.25x
Metal +10%
Wood +10%
Leadther +10%
Cloth +10%
Gold +20%
Silver +10%
Gems +15%

The text that needs to be copied to the merchant's page. The numbers should be changed according to the merchant's information, and anything that does not appear should be deleted.
(It is preferable to copy directly from the template shown here - it's more organized, done through source editing)

{{ {{{1|Tooltip hover box}}}|title= {{merchant test
|Trader Favorability = -5

|Markup = 1.4
|Overall Demand = +10

|Armor = 0.15
|Weapons = 0.15
|Food = 0.2
|Medicine = 0.35
|Valuables = 0.5
|Jewlry = 0.5
|Tools = 0.3
|Herbs = 0.25
|Ingredients = 0.2
|Drugs = 0.2
|Artifacts = 0.35
|Materials = 0.2
|Ammunition = 0.15

|Sack_of_Grain = 1.2
|Crates_of_Charcoal = 1.23
|Sack_of_Salt = 1.1
|Shipments_of_Timber = 1.15
|Barrels_of_Beer = 1.23
|Crates_of_Wine = 1.31
|Pails_of_Cider = 1.25

|Metal = +10
|Wood = +10
|Leadther = +10
|Cloth = +10

|Gold = +20
|Silver = +10
|Gems = +15
}} }}