Template:Items infobox/store: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
m (selling price changed from 25% to 30%. wasn't in the patch notes. I have no idea how long it's been like this)
(Simplified the template a lot + added clown and husk merchants)
Line 1: Line 1:
<includeonly><!--
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!--
  // {{{1}}} outpost identifier
  // {{{1}}} outpost identifier
  // {{{2}}} base price
  // {{{2}}} base price
Line 8: Line 8:
  // Habitation Outpost - outpost
  // Habitation Outpost - outpost
  ////
  ////
-->{{#ifeq: {{{1}}}|outpost|<!--


  // {{{2}}} none => can't be bought and sold at an outpost (skip)
  // {{{2}}} none => can't be bought and sold at an outpost (skip)
-->{{#ifeq: {{{2}}}|none||{{!}} style="width:40%;font-size:105%;" {{#ifeq: {{{10columns}}}|yes|colspan="4"|}} {{!}} [[File:Location_Habitation_Outpost.png|30px|Habitation Outpost|link=Campaign#Habitation Outpost]]Habitation
-->{{#ifeq: {{{2}}}|none||{{!}} style="width:40%;font-size:105%;" {{#ifeq: {{{10columns}}}|yes|colspan="4"|}} {{!}} {{#switch:{{{1}}}|outpost=[[File:Location_Habitation_Outpost.png|30px|Habitation Outpost|link=Campaign#Habitation Outpost]]Habitation|city=[[File:Location_Colony.png|30px|Colony|link=Campaign#Colony]]Colony|research= [[File:Location_Research Outpost.png|30px|Research Outpost|link=Campaign#Research Outpost]]Research|military=[[File:Location_Military_Outpost.png|30px|Military Outpost|link=Campaign#Military Outpost]]Military|mine=[[File:Location_Mining_Outpost.png|30px|Mining Outpost|link=Campaign#Mining Outpost]]Mining|medical=[[File:Medical Merchant.png|30px|Medical Merchant|link=Store#Dedicated Merchants]]Medical Merchant|engineering=[[File:Engineering Merchant.png|30px|Engineer Merchant|link=Store#Dedicated Merchants]]Engineer Merchant|armory=[[File:Armory Merchant.png|30px|Armory Merchant|link=Store#Dedicated Merchants]]Armory Merchant|clown=[[File:Clown Merchant.png|30px|Clown Merchant|link=Store#Dedicated Merchants]]Clown Merchant|husk=[[File:Husk Merchant.png|30px|Habitation Outpost|link=Store#Dedicated Merchants]]Husk Merchant}}
{{!}} {{#ifeq: {{{10columns}}}|yes|{{#ifeq: {{{4}}}|all|colspan="6" style="width:6|colspan="3" style="width:3}}|style="width:3}}0%;text-align:center;vertical-align:middle;" {{!}}<!--
{{!}} {{#ifeq: {{{10columns}}}|yes|{{#ifeq: {{{4}}}|all|colspan="6" style="width:6|colspan="3" style="width:3}}|style="width:3}}0%;text-align:center;vertical-align:middle;" {{!}}<!--


Line 41: Line 40:
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small> }}<!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small> }}<!--


-->}} }} }} }} |}}<!--
////
// Colony - city
//
-->{{#ifeq: {{{1}}}|city|<!--
// {{{3}}} both => can't be bought nor sold at an outpost (skip)
-->{{#ifeq: {{{2}}}|none||{{!}} style="width:40%;font-size:105%;" {{#ifeq: {{{10columns}}}|yes|colspan="4"|}} {{!}} [[File:Location_Colony.png|30px|Colony|link=Campaign#Colony]]Colony
{{!}} {{#ifeq: {{{10columns}}}|yes|{{#ifeq: {{{4}}}|all|colspan="6" style="width:6|colspan="3" style="width:3}}|style="width:3}}0%;text-align:center;vertical-align:middle;" {{!}}<!--
// {{{4}}} all => not buyable at any outpost (only sellable)
-->{{#ifeq: {{{4}}}|all|<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small><!--
// {{{4}}} true => not buyable at an outpost
-->|{{#ifeq: {{{4}}}|true|<span style="color:red">N/A</span>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small><!--
// {{{5}}} all => not sellable at any outpost (only buyable)
-->|{{#ifeq: {{{5}}}|all|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small><!--
// {{{5}}} true => not sellable at an outpost
-->|{{#ifeq: {{{5}}}|true|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<span style="color:red">N/A</span><!--
// Buyable & sellable
-->|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small> }}<!--
-->}} }} }} }} |}}<!--
////
// Research Outpost - research
////
-->{{#ifeq: {{{1}}}|research|<!--
// {{{3}}} both => can't be bought nor sold at an outpost (skip)
-->{{#ifeq: {{{2}}}|none||{{!}} style="width:40%;font-size:105%;" {{#ifeq: {{{10columns}}}|yes|colspan="4"|}} {{!}} [[File:Location_Research Outpost.png|30px|Research Outpost|link=Campaign#Research Outpost]]Research
{{!}} {{#ifeq: {{{10columns}}}|yes|{{#ifeq: {{{4}}}|all|colspan="6" style="width:6|colspan="3" style="width:3}}|style="width:3}}0%;text-align:center;vertical-align:middle;" {{!}}<!--
// {{{4}}} all => not buyable at any outpost (only sellable)
-->{{#ifeq: {{{4}}}|all|<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small><!--
// {{{4}}} true => not buyable at an outpost
-->|{{#ifeq: {{{4}}}|true|<span style="color:red">N/A</span>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small><!--
// {{{5}}} all => not sellable at any outpost (only buyable)
-->|{{#ifeq: {{{5}}}|all|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small><!--
// {{{5}}} true => not sellable at an outpost
-->|{{#ifeq: {{{5}}}|true|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<span style="color:red">N/A</span><!--
// Buyable & sellable
-->|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small> }}<!--
-->}} }} }} }} |}}<!--
////
// Military Outpost - military
////
-->{{#ifeq: {{{1}}}|military|<!--
// {{{3}}} both => can't be bought nor sold at an outpost (skip)
-->{{#ifeq: {{{2}}}|none||{{!}} style="width:40%;font-size:105%;" {{#ifeq: {{{10columns}}}|yes|colspan="4"|}} {{!}} [[File:Location_Military_Outpost.png|30px|Military Outpost|link=Campaign#Military Outpost]]Military
{{!}} {{#ifeq: {{{10columns}}}|yes|{{#ifeq: {{{4}}}|all|colspan="6" style="width:6|colspan="3" style="width:3}}|style="width:3}}0%;text-align:center;vertical-align:middle;" {{!}}<!--
// {{{4}}} all => not buyable at any outpost (only sellable)
-->{{#ifeq: {{{4}}}|all|<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small><!--
// {{{4}}} true => not buyable at an outpost
-->|{{#ifeq: {{{4}}}|true|<span style="color:red">N/A</span>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small><!--
// {{{5}}} all => not sellable at any outpost (only buyable)
-->|{{#ifeq: {{{5}}}|all|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small><!--
// {{{5}}} true => not sellable at an outpost
-->|{{#ifeq: {{{5}}}|true|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<span style="color:red">N/A</span><!--
// Buyable & sellable
-->|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small> }}<!--
-->}} }} }} }} |}}<!--
////
// Mining Outpost - mine
////
-->{{#ifeq: {{{1}}}|mine|<!--
// {{{3}}} both => can't be bought nor sold at an outpost (skip)
-->{{#ifeq: {{{2}}}|none||{{!}} style="width:40%;font-size:105%;" {{#ifeq: {{{10columns}}}|yes|colspan="4"|}} {{!}} [[File:Location_Mining_Outpost.png|30px|Mining Outpost|link=Campaign#Mining Outpost]]Mining
{{!}} {{#ifeq: {{{10columns}}}|yes|{{#ifeq: {{{4}}}|all|colspan="6" style="width:6|colspan="3" style="width:3}}|style="width:3}}0%;text-align:center;vertical-align:middle;" {{!}}<!--
// {{{4}}} all => not buyable at any outpost (only sellable)
-->{{#ifeq: {{{4}}}|all|<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small><!--
// {{{4}}} true => not buyable at an outpost
-->|{{#ifeq: {{{4}}}|true|<span style="color:red">N/A</span>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small><!--
// {{{5}}} all => not sellable at any outpost (only buyable)
-->|{{#ifeq: {{{5}}}|all|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small><!--
// {{{5}}} true => not sellable at an outpost
-->|{{#ifeq: {{{5}}}|true|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<span style="color:red">N/A</span><!--
// Buyable & sellable
-->|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>
{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}} {{!}}<!--
// Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small> }}<!--
-->}} }} }} }} |}}<!--
////
// dedicated merchants
////
-->{{#ifeq: {{{1}}}|medical|&nbsp;
<!--
-->{{!}} style="width:40%;font-size:105%;" {{#ifeq: {{{10columns}}}|yes|colspan="4"|}} {{!}} [[File:Medical Merchant.png|30px|Medical Merchant|link=Store#Dedicated Merchants]]Medical Merchant<!-- col 1 format + content
-->{{#ifeq: {{{4}}}|all||&nbsp;
<!---->{{!}} {{#ifeq: {{{10columns}}}|yes|{{#ifeq: {{{4}}}|all|colspan="6" style="width:6|colspan="3" style="width:3}}|style="width:3}}0%;text-align:center;vertical-align:middle;"<!-- buy col format
    -->{{!}} {{#ifeq: {{{4}}}|true|<span style="color:red">N/A</span>|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>}}}}<!-- buy col content -->
<!--  -->{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}}<!-- sell col format
      -->{{!}} {{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small> <!-- sell col content
-->|}}<!--
-->{{#ifeq: {{{1}}}|engineering|&nbsp;
<!--
-->{{!}} style="width:40%;font-size:105%;" {{#ifeq: {{{10columns}}}|yes|colspan="4"|}} {{!}} [[File:Engineering Merchant.png|30px|Engineer Merchant|link=Store#Dedicated Merchants]]Engineer Merchant<!-- col 1 format + content
-->{{#ifeq: {{{4}}}|all||&nbsp;
<!---->{{!}} {{#ifeq: {{{10columns}}}|yes|{{#ifeq: {{{4}}}|all|colspan="6" style="width:6|colspan="3" style="width:3}}|style="width:3}}0%;text-align:center;vertical-align:middle;"<!-- buy col format
    -->{{!}} {{#ifeq: {{{4}}}|true|<span style="color:red">N/A</span>|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>}}}}<!-- buy col content -->
<!--  -->{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}}<!-- sell col format
      -->{{!}} {{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small> <!-- sell col content
-->|}}<!--


-->{{#ifeq: {{{1}}}|armory|&nbsp;
<!--
-->{{!}} style="width:40%;font-size:105%;" {{#ifeq: {{{10columns}}}|yes|colspan="4"|}} {{!}} [[File:Armory Merchant.png|30px|Armory Merchant|link=Store#Dedicated Merchants]]Armory Merchant<!-- col 1 format + content
-->{{#ifeq: {{{4}}}|all||&nbsp;
<!---->{{!}} {{#ifeq: {{{10columns}}}|yes|{{#ifeq: {{{4}}}|all|colspan="6" style="width:6|colspan="3" style="width:3}}|style="width:3}}0%;text-align:center;vertical-align:middle;"<!-- buy col format
    -->{{!}} {{#ifeq: {{{4}}}|true|<span style="color:red">N/A</span>|<big>'''{{#expr: floor({{{2}}}*{{{3}}}) }}'''</big> <small>mk</small>}}}}<!-- buy col content -->
<!--  -->{{!}} style="width:30%;text-align:center;vertical-align:middle;" {{#ifeq: {{{10columns}}}|yes|colspan="3"|}}<!-- sell col format
      -->{{!}} {{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.3) }}'''</big> }} <small>mk</small> <!-- sell col content
-->|}}<!--


--></includeonly><noinclude>
-->}} }} }} }}<!--
{| class="infobox" style="font-size:85%; !important;padding:0; background: #151e28; border-radius:7px;"
--></includeonly>
{{!}} class="infobox3" colspan="3" {{!}} Store
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} [[File:Outpost.png|32px|Outpost|link=Campaign#Location]][[Campaign#Location|Outpost]]
{{!}} style="width:30%;font-size:105%;text-align:center;vertical-align:middle;" {{!}} Buy
{{!}} style="width:30%;font-size:105%;text-align:center;vertical-align:middle;" {{!}} Sell
{{!}}-
{{!}} style="height:0;padding:0;" colspan="3" {{!}} <div style="margin: 0 auto;width:95%;float:center;border-bottom: 1px white dotted;"></div>
{{!}}-
{{Items_infobox/store|outpost|10|1}}
{{!}}-
{{Items_infobox/store|city|10|0.9}}
{{!}}-
{{Items_infobox/store|research|10|1.25}}
{{!}}-
{{Items_infobox/store|military|10|1.25}}
{{!}}-
{{Items_infobox/store|mine|10|1}}
|}<pre>{{!}}-
{{Items_infobox/store|outpost|10|1}}
{{!}}-
{{Items_infobox/store|city|10|0.9}}
{{!}}-
{{Items_infobox/store|research|10|1.25}}
{{!}}-
{{Items_infobox/store|military|10|1.25}}
{{!}}-
{{Items_infobox/store|mine|10|1}}</pre></noinclude>

Revision as of 14:15, 14 March 2023

Documentation

Template used to generate the Store table in the template:Items_infobox.

Template in use

Store
OutpostOutpost Buy Sell
Habitation OutpostHabitation 10 mk 3 mk
ColonyColony 9 mk 2 mk
Research OutpostResearch 12 mk 3 mk
Military OutpostMilitary 12 mk 3 mk
Mining OutpostMining 10 mk 3 mk
Medical MerchantMedical Merchant 10 mk 3 mk
Engineer MerchantEngineer Merchant 10 mk 3 mk
Armory MerchantArmory Merchant 10 mk 3 mk
Clown MerchantClown Merchant 10 mk 3 mk
Habitation OutpostHusk Merchant 10 mk 3 mk
{| class="infobox" style="font-size:85%; !important;padding:0; background: #151e28; border-radius:7px;"
{{!}} class="infobox3" colspan="3" {{!}} Store
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} [[File:Outpost.png|32px|Outpost|link=Campaign#Location]][[Campaign#Location|Outpost]]
{{!}} style="width:30%;font-size:105%;text-align:center;vertical-align:middle;" {{!}} Buy
{{!}} style="width:30%;font-size:105%;text-align:center;vertical-align:middle;" {{!}} Sell
{{!}}-
{{!}} style="height:0;padding:0;" colspan="3" {{!}} <div style="margin: 0 auto;width:95%;float:center;border-bottom: 1px white dotted;"></div>
{{!}}-
{{Items_infobox/store|outpost|10|1}}
{{!}}-
{{Items_infobox/store|city|10|0.9}}
{{!}}-
{{Items_infobox/store|research|10|1.25}}
{{!}}-
{{Items_infobox/store|military|10|1.25}}
{{!}}-
{{Items_infobox/store|mine|10|1}}
{{!}}-
{{Items_infobox/store|medical|10|1}}
{{!}}-
{{Items_infobox/store|engineering|10|1}}
{{!}}-
{{Items_infobox/store|armory|10|1}}
{{!}}-
{{Items_infobox/store|clown|10|1}}
{{!}}-
{{Items_infobox/store|husk|10|1}}
|}

Store
OutpostOutpost Sell
Habitation OutpostHabitation N/A 15 mk

Test 3

{{Items infobox
| test = yes
| afflictions = duration = 11, durationfail = 9;
burn = 10, fail = 5, delay = 3;  

lacerations = 15, fail = 10, duration = 6;  

bitewounds = 25, fail = 20, instant=yes;  
}}
Items infobox/store
Click to upload a new image.Dummy link
Statistics 
Medical Usage
Success:
 Burn (110)* (3s delay)
 Lacerations (90)*
 Bite Wounds (25)*
Duration 11s*
Failure:
 Burn (45)* (3s delay)
 Lacerations (60)*
 Bite Wounds (20)*
Duration 9s*
Crafting
Constructible? No
Deconstructible? No
Store
Minimum Difficulty 15%
Base Price 50 mk
Outposts
OutpostOutpost Sell
Habitation OutpostHabitation N/A 15 mk
ColonyColony N/A 15 mk
Research OutpostResearch N/A 15 mk
Military OutpostMilitary N/A 15 mk
Mining OutpostMining N/A 15 mk
Medical MerchantMedical Merchant N/A 15 mk
Engineer MerchantEngineer Merchant N/A 15 mk
Armory MerchantArmory Merchant N/A 15 mk
Clown MerchantClown Merchant N/A 15 mk
Habitation OutpostHusk Merchant N/A 15 mk
Technical
Identifier
Categories