User:Moxian/TestTemplate: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(Created page with "<noinclude> {{clr}} {{:User:Moxian/TestTemplate | name = Wrench | type = tool | image = Wrench.png | noreq = yes | baseprice = 10 | outpostmultiplier = 1 | outpostminavailabl...")
 
mNo edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
{{clr}}


{{:User:Moxian/TestTemplate
| name = Wrench
| type = tool
| image = Wrench.png
| noreq = yes
| baseprice = 10
| outpostmultiplier = 1
| outpostminavailable = 10
| citymultiplier = 0.9
| cityminavailable = 15
| researchmultiplier = 1.25
| researchminavailable = 10
| militarymultiplier = 1.25
| militaryminavailable = 10
| minemultiplier = 1
| mineminavailable = 10
| deconstructor = Yes
| fabricator = Yes
| fabricatortime = 10
| fabricatedamount = 1
| deconstructortime = 10
| fabricatormaterials = {{Hyperlink|Iron}}
| deconstructormaterials = {{Hyperlink|Iron}}
| nocat = yes
}}
</noinclude>
<includeonly>{| class="infobox responsive-table" align=right
! class="infobox2 responsive-table" colspan="3" | {{{name|{{PAGENAME}}}}}
|-
| colspan="3" style="padding:0.5em;text-align:center !important;" | {{#if: {{{customtext|}}} | {{{customtext}}} | {{ImageHandler
| file  = {{#if: {{{image|}}} | {{{image}}} | {{PAGENAME}}.png }}
| imagewidth  = {{#if: {{{imagewidth|}}} | {{{imagewidth}}}px |}}
}}
{{#if: {{{caption|}}} |<small>{{{caption}}}</small>}}{{#if: {{{image2|}}} |<br><br>[[File:{{{image2|}}}|{{{imagewidth2|180}}}px]]
{{#if: {{{caption2|}}} |<br><small>{{{caption2}}}</small>}}
|}}
|}}
|-<!--
-->
{{#if: {{{nostats|}}}||
! class="infobox3 responsive-table" colspan="3" {{!}} Stats
}}<!--
-->
|-
| style="width:40%;font-size:105%;" | Type
| style="width:60%;text-align:center;" colspan="2"  | {{#switch: {{{type}}} |weapon=[[:Category:Weapons|Weapon]]|tool=[[:Category:Tools|Tool]]|gear=[[:Category:Gear|Gear]]|chemical=[[:Category:Chemicals|Chemical]]|electrical=[[:Category:Electrical Components|Electrical Component]]|container=[[:Category:Containers|Container]]|ammo=[[:Category:Ammunition]]|fuel=Fuel|misc=[[:Category:Misc Items|Misc]] Item|gardening=[[:Category:Gardening|Gardening]] Item|exotic=Exotic Item|vehicle=Vehicle|#default=General [[:Category:Items|Item]]}}<!--
-->
{{#if: {{{maxstack|}}}|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} Maximum stack
{{!}} style="width:60%;text-align:center;" colspan="2"  {{!}} {{{maxstack}}}|}}<!--
// Deprecated, use multipliers for price
-->
|-
{{#if: {{{cost|}}}|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}}  <span class="explain" title="Min - Max base price from selling outposts at 0 RP">Item Cost</span>
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{cost}}} Marks
|}}<!--
// Deprecated, use multipliers for price
-->
{{#if: {{{sellprice|}}}|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} Sell Price
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{sellprice}}}
|}}<!--
-->
{{!}}-
{{#if: {{{ammo|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} Ammunition
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{ammo}}}
{{!}}-
|}}<!--
-->
{{#if: {{{ammomaxstack|}}}|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} <abbr title="Max number of ammunition stackable in the inventory, outside of the weapon">Ammo Max Stack</abbr>
{{!}} style="width:60%;text-align:center;" colspan="2"  {{!}} {{{ammomaxstack}}}
{{!}}-
|}}<!--
-->
{{#if: {{{ammocost|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} Ammo Cost
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{ammocost}}} Marks
{{!}}-
|}}<!--
-->
{{#if: {{{ammocount|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} <abbr title="Max number of ammunition stackable in the weapon">Ammo Capacity</abbr>
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{ammocount}}}
{{!}}-
|}}<!--
-->
{{#if: {{{fuel|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} Fuel
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fuel}}}
{{!}}-
|}}<!--
-->
{{#if: {{{fuelcost|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} Fuel Cost
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fuelcost}}} Marks
{{!}}-
|}}<!--
-->
{{#if: {{{fuelcount|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} Fuel Capacity
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fuelcount}}}
{{!}}-
|}}<!--
-->
{{#if: {{{payload|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} Payload
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{payload}}}
{{!}}-
|}}<!--
-->
{{#if: {{{payloadcost|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} Payload Cost
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{payloadcost}}} Marks
{{!}}-
|}}<!--
-->
{{#if: {{{payloadcount|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} Payload Capacity
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{payloadcount}}}
{{!}}-
|}}<!--
-->
{{#if: {{{supplyname|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} {{{supplyname}}}
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{supplyitems}}}
{{!}}-
|}}<!--
-->
{{#if: {{{supplycost|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} {{{supplyname}}} Cost
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{supplycost}}} Marks
{{!}}-
|}}<!--
-->
{{#if: {{{supplycount|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} {{{supplyname}}} Capacity
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{supplycount}}}
{{!}}-
|}}<!--
-->
{{#if:{{{itemcapacity|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} Storage Capacity
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{itemcapacity}}}
{{!}}-
|}}<!--
-->{{#if: {{{noreq|}}}||
! class="infobox3 responsive-table" colspan="3" {{!}} Skill Requirements
{{!}}-
{{#if: {{{weapons|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} '''[[Skills#Weapons|Weapons]]'''
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{weapons}}}
{{!}}-
|}}
{{#if: {{{mechanical|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} '''[[Skills#Mechanical Engineering|Mechanical Engineering]]'''
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{mechanical}}}
{{!}}-
|}}
{{#if: {{{electrical|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} '''[[Skills#Electrical Engineering|Electrical Engineering]]'''
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{electrical}}}
{{!}}-
|}}
{{#if: {{{medical|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} '''[[Skills#Medical|Medical]]'''
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{medical}}}
{{!}}-
|}}
{{#if: {{{handicap|}}}|
{{!}} style="width:40%;font-size:105%;" {{!}} <span class="explain" title="Penalty applied if the above skill requirement is not met">Handicap</span>
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{handicap}}}
{{!}}-
|}}
}}<!--
-->
|-
! class="infobox3 responsive-table" colspan="3" {{!}} [[Fabricator & Deconstructor|Crafting]]
|-
| style="width:40%;font-size:105%;" | Constructible?
| style="width:60%;text-align:center;" colspan="2" | {{#if:{{{fabricator|}}}|{{#switch: {{{fabricator|}}}<!--
-->| yes | Yes = [[File:Checkmark True.png|22px]]<!--
-->| no | No = [[File:Checkmark False.png|22px]]}}<!--
-->|[[File:Checkmark False.png|22px]]}}
|-
|-
| style="width:40%;font-size:105%;" | Deconstructible?
| style="text-align:center;" | [[File:{{{name}}}.png|x50px]] <br> [[{{{name}}}]]
| style="width:60%;text-align:center;" colspan="2" {{!}} {{#if:{{{deconstructor|}}}|{{#switch: {{{deconstructor|}}}<!--
| {{#replace:{{{qualitybonuses}}}|&lt;br&gt;|<br/>}}
-->| yes | Yes = [[File:Checkmark True.png|22px]]<!--
| {{#ifeq:{{{fabricator}}}|1|Fabricator|{{#ifeq:{{{medicalfabricator}}}|1|Medical Fabricator|}}}}
-->| no | No = [[File:Checkmark False.png|22px]]}}<!--
-->|[[File:Checkmark False.png|22px]]}}
|-<!--
 
-->
{{#if:{{{fabricatorskill|}}}|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} Fabricator Skill
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{#switch: {{{fabricatorskill}}}<!--
-->| mechanical = [[Skills#Mechanical Engineering|Mechanical Engineering]]<!--
-->| electrical = [[Skills#Electrical Engineering|Electrical Engineering]]<!--
-->| medical = [[Skills#Medical|Medical]]<!--
-->| weapons = [[Skills#Weapons|Weapons]]<!--
-->| {{{fabricatorskill}}}}}<!--
-->{{space}}{{{fabricatorskilllevel}}}|}}<!--
 
 
-->
{{#if:{{{fabricatortime|}}}|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} Crafting Time
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fabricatortime}}}|}}<!--
-->
{{#if:{{{fabricatedamount|}}}|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} Fabricated Amount
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fabricatedamount}}}|}}<!--
 
-->
{{#ifeq:{{{fabricator|}}}|Yes|<!--
 
-->
{{#if: {{{fabricatormaterials|}}}|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} [[Fabricator]] Materials
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fabricatormaterials}}}
|{{#if:{{{medicalfabricatormaterials|}}}||
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} [[Fabricator]] Materials
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} N/A}}<!--
 
-->
{{#if: {{{medicalfabricatormaterials|}}}|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} [[Medical Fabricator]] Materials
{{!}} colspan="3" {{!}} {{{medicalfabricatormaterials}}}|}}
|}}|}}<!--
 
-->
{{#if:{{{deconstructortime|}}}|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} Deconstructing Time
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{deconstructortime}}}|}}<!--
 
-->
{{#ifeq: {{{deconstructor|}}}|Yes|
{{!}}-
{{!}} style="width:40%;font-size:105%;" {{!}} [[Deconstructor]] Materials
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{deconstructormaterials|N/A}}}
|}}<!--
 
// Display prices using multipliers
// Only shows prices at 0 RP
// item price = location multiplier*base price of item
// item sell price = location multiplier*base price of item*0.8 (80% of buy price)
 
-->
{{!}}-
{{#if: {{{cost|}}}||<!-- temporary -->
{{#if: {{{nostore|}}}||
{{#if: {{{baseprice|}}}|
! class="infobox3 responsive-table" 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;" {{!}} {{#if: {{{unbuyable|}}}|Sell|{{#if: {{{unsellable|}}}|Buy| 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>
{{!}}-
{{#if:{{{outpostmultiplier|}}}|{{Items_infobox/store|outpost|{{{baseprice}}}|{{{outpostmultiplier}}}|{{{outpostunbuyable|}}}|{{{outpostunsellable|}}} }}
{{!}}-
|}}
{{#if:{{{citymultiplier|}}}|{{Items_infobox/store|city|{{{baseprice}}}|{{{citymultiplier}}}|{{{cityunbuyable|}}}|{{{cityunsellable|}}} }}
{{!}}-
|}}
{{#if:{{{researchmultiplier|}}}|{{Items_infobox/store|research|{{{baseprice}}}|{{{researchmultiplier}}}|{{{researchunbuyable|}}}|{{{researchsellable|}}} }}
{{!}}-
|}}
{{#if:{{{militarymultiplier|}}}|{{Items_infobox/store|military|{{{baseprice}}}|{{{militarymultiplier}}}|{{{militaryunbuyable|}}}|{{{militaryunsellable|}}} }}
{{!}}-
|}}
{{#if:{{{minemultiplier|}}}|{{Items_infobox/store|mine|{{{baseprice}}}|{{{minemultiplier}}}|{{{mineunbuyable|}}}|{{{mineunsellable|}}} }}
|}}|}}}}}}
|}
{{#if: {{{nocat|}}} | |[[Category:{{#switch: {{{type}}}|weapon=Weapons|tool=Tools|gear=Gear|medical=Medical Items|electrical=Electrical Components|container=Containers|ammo=Ammunition|misc=Misc Items|gardening=Gardening|vehicle|exotic|#default=Items}}]][[Category:Items]]}}
</includeonly>

Latest revision as of 22:33, 23 April 2023

|- | style="text-align:center;" | [[File:{{{name}}}.png|x50px]]
[[{{{name}}}]] | {{{qualitybonuses}}} |