Template:Items infobox/store: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(fixed previous fix)
(support for specialized merchants)
Line 18: Line 18:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--


  // {{{4}}} true => not buyable at an outpost
  // {{{4}}} true => not buyable at an outpost
Line 25: Line 25:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--


  // {{{5}}} all => not sellable at any outpost (only buyable)
  // {{{5}}} all => not sellable at any outpost (only buyable)
Line 39: Line 39:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> }}<!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> }}<!--


-->}} }} }} }} |}}<!--
-->}} }} }} }} |}}<!--
Line 55: Line 55:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--


  // {{{4}}} true => not buyable at an outpost
  // {{{4}}} true => not buyable at an outpost
Line 62: Line 62:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--


  // {{{5}}} all => not sellable at any outpost (only buyable)
  // {{{5}}} all => not sellable at any outpost (only buyable)
Line 76: Line 76:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> }}<!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> }}<!--


-->}} }} }} }} |}}<!--
-->}} }} }} }} |}}<!--
Line 92: Line 92:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--


  // {{{4}}} true => not buyable at an outpost
  // {{{4}}} true => not buyable at an outpost
Line 99: Line 99:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--


  // {{{5}}} all => not sellable at any outpost (only buyable)
  // {{{5}}} all => not sellable at any outpost (only buyable)
Line 113: Line 113:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> }}<!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> }}<!--


-->}} }} }} }} |}}<!--
-->}} }} }} }} |}}<!--
Line 129: Line 129:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--


  // {{{4}}} true => not buyable at an outpost
  // {{{4}}} true => not buyable at an outpost
Line 136: Line 136:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--


  // {{{5}}} all => not sellable at any outpost (only buyable)
  // {{{5}}} all => not sellable at any outpost (only buyable)
Line 150: Line 150:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> }}<!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> }}<!--


-->}} }} }} }} |}}<!--
-->}} }} }} }} |}}<!--
Line 166: Line 166:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--


  // {{{4}}} true => not buyable at an outpost
  // {{{4}}} true => not buyable at an outpost
Line 173: Line 173:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small><!--


  // {{{5}}} all => not sellable at any outpost (only buyable)
  // {{{5}}} all => not sellable at any outpost (only buyable)
Line 187: Line 187:


  // Selling price can't be 0
  // Selling price can't be 0
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|1|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> }}<!--
-->{{#ifeq:{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> }}<!--


-->}} }} }} }} |}}</includeonly><noinclude>
-->}} }} }} }} |}}<!--
 
////
// 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: {{{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
    -->{{!}}<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.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</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: {{{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
    -->{{!}}<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.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</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: {{{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
    -->{{!}}<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.8) }}|0|'''1'''|<big>'''{{#expr: floor({{{2}}}*{{{3}}}*0.8) }}'''</big> }} <small>mk</small> <!-- sell col content
-->|}}<!--
 
--></includeonly><noinclude>
{| class="infobox" style="font-size:85%; !important;padding:0; background: #151e28; border-radius:7px;"
{| class="infobox" style="font-size:85%; !important;padding:0; background: #151e28; border-radius:7px;"
{{!}} class="infobox3" colspan="3" {{!}} Store
{{!}} class="infobox3" colspan="3" {{!}} Store

Revision as of 21:39, 16 June 2022

Store
OutpostOutpost Buy Sell
Habitation OutpostHabitation 10 mk 8 mk
ColonyColony 9 mk 7 mk
Research OutpostResearch 12 mk 10 mk
Military OutpostMilitary 12 mk 10 mk
Mining OutpostMining 10 mk 8 mk
{{!}}-
{{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}}