Difference between revisions of "Template:Infobox item"
Jump to navigation
Jump to search
m (encumbrance -> armor penalty) |
(added a tooltip explaining quality ranges) |
||
(89 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {| class="infobox" style="font-family:'pf_tempesta_seven',sans-serif; font-size:12px; {{#if:{{{component1|}}}||max-width:420px; width:420px;}}" | |
− | {| style= | + | |- |
− | + | | | |
− | + | {| <!-- start image/name/type table --> | |
− | + | |- <!-- item image column. use {{{image}}} if it is set. otherwise, default to misc_icon.png --> | |
− | + | | style="padding-right:10px; width:35px; height:35px; text-align:center; vertical-align:middle;" rowspan="3" title="{{#if:{{{image|}}}|{{{name}}} icon|Default icon}}" {{!}}<!-- | |
− | + | -->{{#if:{{{image|}}}|[[File:{{{image}}}]]|[[File:Misc_icon.png]]}} | |
− | -- | ||
− | {{#if:{{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | + | |- <!-- item name row. color of item name is quality-dependent --> | |
− | + | | style="font-size:127%; color:{{ | |
− | + | #switch: {{{itemquality}}} | |
− | + | | low = {{TimelapseColors|ItemQualityColors.ItemQuality.Low}} | |
− | + | | normal = {{TimelapseColors|ItemQualityColors.ItemQuality.Normal}} | |
− | + | | high = {{TimelapseColors|ItemQualityColors.ItemQuality.High}} | |
− | + | | rarity | |
− | + | | rare = {{TimelapseColors|ItemQualityColors.ItemQuality.Rare}} | |
− | + | | unique = {{TimelapseColors|ItemQualityColors.ItemQuality.Unique}} | |
− | + | | artifact = {{TimelapseColors|ItemQualityColors.ItemQuality.Artifact}} | |
− | + | | oddity = {{TimelapseColors|Oddity}} | |
− | + | | #default = {{TimelapseColors|ItemQualityColors.ItemQuality.Normal}} | |
− | + | }}; font-weight:bold;" title="{{ | |
− | + | #switch: {{{itemquality}}} | |
− | |||
− | |||
− | <!-- | ||
− | |||
− | |||
− | |||
− | |||
− | item name row. color of item name is quality-dependent | ||
− | --> | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | #default = | ||
− | }}; font-weight:bold;" title="{{#switch:{{{itemquality}}} | ||
| low = Item quality: Low | | low = Item quality: Low | ||
| normal = Item quality: Normal | | normal = Item quality: Normal | ||
| high = Item quality: High | | high = Item quality: High | ||
− | | rarity = Item quality: | + | | rare |
+ | | rarity = Item quality: Rare | ||
+ | | unique = Item quality: Unique | ||
| artifact = Item quality: Artifact | | artifact = Item quality: Artifact | ||
| oddity = Oddity item | | oddity = Oddity item | ||
| #default = No quality specified | | #default = No quality specified | ||
− | }} | + | }} | {{{name}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | |- <!-- item type row --> | ||
+ | | style="color:yellow;" title="Item type" | {{{type}}} | ||
+ | |} <!-- close image/name/type table --> | ||
+ | |- <!-- item description row. --> | ||
+ | | class="infobox-pb" style="color:gray;" colspan="2" title="Item description" | {{{description}}} | ||
− | + | |- <!-- component quality row --> | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | component quality row | ||
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{quality|}}} | {{#if:<noinclude>string</noinclude>{{{quality|}}} | ||
− | |{{!}} | + | |{{!}} class="infobox-pb" title="Component quality" {{!}} {{#ifexpr: {{{quality|1}}} < 0 | Quality range:| Quality:}} {{{quality}}} <sup>{{tooltip|Quality ranges for manufactured components are generally 15-160, or somewhat higher with Underrail: Expedition installed. Quality of animal parts depends on the level of the animal that dropped them.|?}}</sup> |
− | |||
|}} | |}} | ||
− | |||
− | |||
− | crafting skills required row | + | |- <!-- crafting skills required row --> |
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{skillsreq|}}} | {{#if:<noinclude>string</noinclude>{{{skillsreq|}}} | ||
− | |{{!}} | + | |{{!}} title="List of required crafting skills" {{!}} Required crafting skills{{#if:<noinclude>string</noinclude>{{{quality|}}}|{{#ifexpr: {{{quality|1}}} < 0 | (as percentage of quality)|}}|}}: |
− | |||
<noinclude>:</noinclude>{{{skillsreq}}} | <noinclude>:</noinclude>{{{skillsreq}}} | ||
|}} | |}} | ||
− | |||
− | + | |- <!-- weapon damage row --> | |
− | weapon damage row | ||
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{damage|}}} | {{#if:<noinclude>string</noinclude>{{{damage|}}} | ||
− | |{{!}} | + | |{{!}} class="infobox-pb" title="Damage per shot and damage type" {{!}} Damage: {{{damage}}} |
− | |||
|}} | |}} | ||
− | |||
− | + | |- <!-- weapon impact speed row. its color depends on "impactspeed" value --> | |
− | weapon impact speed row. its color depends on "impactspeed" value | ||
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{impactspeed|}}} | {{#if:<noinclude>string</noinclude>{{{impactspeed|}}} | ||
− | |{{!}} | + | |{{!}} title="Impact speed determines shield penetration" {{!}} Impact speed: <span style="color:{{ |
− | + | #switch: {{{impactspeed}}} | |
− | | Very Low = | + | | Very Low = {{TimelapseColors|ImpactSpeedColors.ImpactSpeed.VeryLow}} |
− | | Low = | + | | Low = {{TimelapseColors|ImpactSpeedColors.ImpactSpeed.Low}} |
− | | Medium = | + | | Medium = {{TimelapseColors|ImpactSpeedColors.ImpactSpeed.Medium}} |
− | | High = | + | | High = {{TimelapseColors|ImpactSpeedColors.ImpactSpeed.High}} |
− | | Very High = | + | | Very High = {{TimelapseColors|ImpactSpeedColors.ImpactSpeed.VeryHigh}} |
− | | #default = | + | | #default = {{TimelapseColors|ImpactSpeedColors.ImpactSpeed.Medium}} |
}};">{{{impactspeed}}}</span> | }};">{{{impactspeed}}}</span> | ||
|}} | |}} | ||
− | |||
− | |||
− | weapon action point cost row | + | |- <!-- weapon action point cost row --> |
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{ap|}}} | {{#if:<noinclude>string</noinclude>{{{ap|}}} | ||
− | |{{!}} | + | |{{!}} title="Action point cost" {{!}} Base action points: {{{ap}}} |
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- weapon spread angle row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{spread|}}} | ||
+ | |{{!}} title="Spread angle" {{!}} Spread angle: {{{spread}}} | ||
+ | |}} | ||
− | weapon range row | + | |- <!-- weapon range row --> |
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{range|}}} | {{#if:<noinclude>string</noinclude>{{{range|}}} | ||
− | |{{!}} | + | |{{!}} title="Maximum (and optimal) range" {{!}} Range: {{{range}}} |
− | |||
|}} | |}} | ||
− | |||
− | + | |- <!-- weapon precision row --> | |
− | weapon precision row | ||
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{precision|}}} | {{#if:<noinclude>string</noinclude>{{{precision|}}} | ||
− | |{{!}} | + | |{{!}} title="Precision modifies your chance to hit" {{!}} Precision: {{{precision}}} |
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- weapon close quarters precision row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{cqprec.|}}} | ||
+ | |{{!}} title="Melee range precision penalty" {{!}} Close quarters precision: {{color|red|{{{cqprec.}}}}} | ||
+ | |}} | ||
− | weapon | + | |- <!-- weapon move & shoot precision row --> |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{moveprec.|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} title="Unfocused precision penalty" {{!}} Move and shoot precision: {{color|red|{{{moveprec.}}}}} |
− | |{{!}} | ||
− | |||
|}} | |}} | ||
− | |||
− | + | |- <!-- weapon burst precision row --> | |
− | weapon | + | {{#if:<noinclude>string</noinclude>{{{burstprec.|}}} |
− | --> | + | |{{!}} title="Burst precision" {{!}} Burst precision: {{{burstprec.}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | ||
− | |{{!}} | ||
− | |||
|}} | |}} | ||
− | |||
− | + | |- <!-- weapon extra burst shosts row --> | |
− | weapon | + | {{#if:<noinclude>string</noinclude>{{{extraburst|}}} |
− | --> | + | |{{!}} title="Extra shots per Burst attack" {{!}} Extra burst shots: {{{extraburst}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | ||
− | |{{!}} | ||
− | |||
|}} | |}} | ||
− | |||
− | + | |- <!-- weapon critical chance row --> | |
− | weapon critical | ||
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{critchance|}}} | {{#if:<noinclude>string</noinclude>{{{critchance|}}} | ||
− | |{{!}} | + | |{{!}} title="Chance to critically hit" {{!}} Critical chance: {{{critchance}}} |
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- weapon critical damage bonus row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{critbonus|}}} | ||
+ | |{{!}} class="infobox-pb" title="Bonus damage multiplier to critical hits" {{!}} Critical damage bonus: {{{critbonus}}} | ||
+ | |}} | ||
− | + | |- <!-- vehicle part size --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{partsize|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} title="Vehicle part size" {{!}} Part Size: {{{partsize}}} |
− | |{{!}} | ||
− | |||
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- vehicle part power --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{power|}}} | ||
+ | |{{!}} title="Vehicle part engine power" {{!}} Power: {{{power}}} | ||
+ | |}} | ||
− | + | |- <!-- vehicle part consumption ratio --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{consumption|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} class="infobox-pb" title="Vehicle part energy consumption ratio" {{!}} Consumption Ratio: {{{consumption}}} |
− | |{{!}} | ||
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- vehicle part stability --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{stability|}}} | ||
+ | |{{!}} class="infobox-pb" title="Vehicle part suspension stability" {{!}} Stability: {{{stability}}} | ||
+ | |}} | ||
− | + | |- <!-- shield emitter capacity row --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{capacity|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} title="Total energy shield capacity" {{!}} Capacity: {{{capacity}}} |
− | |{{!}} | ||
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- shield emitter conversion rate row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{conversion|}}} | ||
+ | |{{!}} title="Energy shield conversion rate" {{!}} Conversion Rate: {{{conversion}}} | ||
+ | |}} | ||
− | + | |- <!-- shield emitter dissipation rate row --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{dissipation|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} class="infobox-pb" title="Energy shield dissipation rate" {{!}} Dissipation Rate: {{{dissipation}}} |
− | |{{!}} | + | |}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |- <!-- shield emitter shielding row --> | |
+ | {{#if:<noinclude>string</noinclude>{{{shield-vlow|}}}{{{shield-low|}}}{{{shield-med|}}}{{{shield-high|}}}{{{shield-vhigh|}}} | ||
+ | |{{!}} title="Energy shield impact speed spectrum breakdown" {{!}} Shielding: | ||
+ | :<span style="color:{{TimelapseColors|ImpactSpeedColors.ImpactSpeed.VeryLow}};">Very Low: {{{shield-vlow}}}</span> | ||
+ | :<span style="color:{{TimelapseColors|ImpactSpeedColors.ImpactSpeed.Low}};">Low: {{{shield-low}}}</span> | ||
+ | :<span style="color:{{TimelapseColors|ImpactSpeedColors.ImpactSpeed.Medium}};">Medium: {{{shield-med}}}</span> | ||
+ | :<span style="color:{{TimelapseColors|ImpactSpeedColors.ImpactSpeed.High}};">High: {{{shield-high}}}</span> | ||
+ | :<span style="color:{{TimelapseColors|ImpactSpeedColors.ImpactSpeed.VeryHigh}};">Very High: {{{shield-vhigh}}}</span> | ||
+ | |}} | ||
− | + | |- <!-- armor resistances row --> | |
+ | {{#if:<noinclude>string</noinclude>{{{resistances|}}}{{{res-mech|}}}{{{res-heat|}}}{{{res-cold|}}}{{{res-elec|}}}{{{res-acid|}}}{{{res-ener|}}}{{{res-bio|}}} | ||
+ | |{{!}} title="Damage resistances and tresholds provided" {{!}} Resistances: | ||
+ | {{#if:<noinclude>string</noinclude>{{{res-mech|}}}|:<span style="color:{{TimelapseColors|DamageColors.DamageType.Mechanical}}">Mechanical: {{{res-mech}}}</span>|}}{{ | ||
+ | #if:<noinclude>string</noinclude>{{{res-heat|}}}|:<span style="color:{{TimelapseColors|DamageColors.DamageType.Heat}}">Heat: {{{res-heat}}}</span>|}}{{ | ||
+ | #if:<noinclude>string</noinclude>{{{res-cold|}}}|:<span style="color:{{TimelapseColors|DamageColors.DamageType.Cold}}">Cold: {{{res-cold}}}</span>|}}{{ | ||
+ | #if:<noinclude>string</noinclude>{{{res-elec|}}}|:<span style="color:{{TimelapseColors|DamageColors.DamageType.Electricity}}">Electricity: {{{res-elec}}}</span>|}}{{ | ||
+ | #if:<noinclude>string</noinclude>{{{res-acid|}}}|:<span style="color:{{TimelapseColors|DamageColors.DamageType.Acid}}">Acid: {{{res-acid}}}</span>|}}{{ | ||
+ | #if:<noinclude>string</noinclude>{{{res-ener|}}}|:<span style="color:{{TimelapseColors|DamageColors.DamageType.Energy}}">Energy: {{{res-ener}}}</span>|}}{{ | ||
+ | #if:<noinclude>string</noinclude>{{{res-bio|}}} |:<span style="color:{{TimelapseColors|DamageColors.DamageType.Bio}}">Bio: {{{res-bio}}}</span>|}} | ||
+ | |}} | ||
− | + | |- <!-- trap stats row, for skillreq and detection difficulty --> | |
+ | {{#if:<noinclude>string</noinclude>{{{trapstats|}}} | ||
+ | |{{!}} class="infobox-pb" title="Trap stats" {{!}} {{{trapstats}}} | ||
+ | |}} | ||
− | + | |- <!-- minimal strength requirement row --> | |
− | + | {{#if:<noinclude>string</noinclude>{{{minstr|}}} | |
− | + | |{{!}} {{#if:<noinclude>string</noinclude>{{{minskill|}}}||class="infobox-pb"}} title="Minimal strength requirement" {{!}} Minimal strength: {{{minstr}}} | |
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- minimal skill requirement row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{minskill|}}} | ||
+ | |{{!}} class="infobox-pb" title="Minimal skill requirement" {{!}} Minimal weapon skill: {{{minskill}}} | ||
+ | |}} | ||
− | + | |- <!-- capabilities row. color is different for oddities. --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{capabilities|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} class="infobox-pb" style="color:{{#ifeq:{{{type|}}}|Oddity|{{TimelapseColors|Oddity}}|lime}};" title="Item capabilities" {{!}} {{{capabilities}}} |
− | |{{!}} style="color: | ||
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- incurred stats row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{incurred|}}} | ||
+ | |{{!}} class="infobox-pb" style="color:orange;" title="Incurred stats" {{!}} {{{incurred}}} | ||
+ | |}} | ||
− | + | |- <!-- armor encumbrance (armor penalty) row --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{encumbrance|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} class="infobox-pb" title="Armor penalty reduces movement points, dodge, evasion and stealth" {{!}} Armor penalty: {{color|red|{{{encumbrance}}}}} |
− | |{{!}} | ||
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- on equip stats row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{onequip|}}} | ||
+ | |{{!}} class="infobox-pb" style="color:lime;" title="Bonuses/penalties when equipped" {{!}} {{{onequip}}} | ||
+ | |}} | ||
− | + | |- <!-- generic requirements row --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{requirements|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} class="infobox-pb" title="Requirements" {{!}} Requirements: |
− | |{{!}} | + | {{{requirements}}} |
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- ammo type row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{ammotype|}}} | ||
+ | |{{!}} title="Type of ammunition used" {{!}} Ammo type: {{{ammotype}}} | ||
+ | |}} | ||
− | + | |- <!-- magazine capacity row --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{magcap|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} {{#if:<noinclude>string</noinclude>{{{reloadcost|}}}||class="infobox-pb"}} title="Magazine ammunition capacity" {{!}} Magazine capacity: {{{magcap}}} |
− | |{{!}} | ||
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- reloading cost row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{reloadcost|}}} | ||
+ | |{{!}} class="infobox-pb" title="Reloading cost modifier" {{!}} Reloading cost: {{{reloadcost}}} | ||
+ | |}} | ||
− | + | |- <!-- special abilities row. --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{specials|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} class="infobox-pb" style="color:lime;" title="Special Abilities granted by item" {{!}} {{color|white|Special abilities:}} |
− | |{{!}} style="color: | + | {{{specials}}} |
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- ammo capabilities row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{ammouses|}}} | ||
+ | |{{!}} class="infobox-pb" style="color:lime;" title="Ammunition capabilities" {{!}} {{{ammouses}}} | ||
+ | |}} | ||
− | energy per shot row | + | |- <!-- energy per shot row --> |
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{energy/shot|}}} | {{#if:<noinclude>string</noinclude>{{{energy/shot|}}} | ||
− | |{{!}} | + | |{{!}} title="Energy/shot" {{!}} Energy usage per shot: {{color|lime|{{{energy/shot}}}}} |
− | |||
|}} | |}} | ||
− | |||
− | + | |- <!-- energy capacity row --> | |
− | energy capacity row | ||
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{energy|}}} | {{#if:<noinclude>string</noinclude>{{{energy|}}} | ||
− | |{{!}} | + | |{{!}} class="infobox-pb" title="Energy storage capacity" {{!}} Energy: {{color|lime|{{{energy}}}}} |
− | |||
|}} | |}} | ||
− | |||
+ | |- <!-- durability row --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{durability|}}} | ||
+ | |{{!}} {{#if:<noinclude>string</noinclude>{{{disassembly|}}}||class="infobox-pb"}} title="Durability and its type" {{!}} Durability: {{{durability}}} | ||
+ | |}} | ||
− | + | |- <!-- disassembly row --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{disassembly|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} class="infobox-pb" style="color:orange;" title="This item can be disassembled" {{!}} Can be disassembled. |
− | |{{!}} style="color: | ||
− | |||
|}} | |}} | ||
− | |||
− | |||
− | + | |- <!-- limitations row --> | |
− | --> | + | {{#if:<noinclude>string</noinclude>{{{limitations|}}} |
− | {{#if:<noinclude>string</noinclude>{{{ | + | |{{!}} {{#if:<noinclude>string</noinclude>{{{weight|}}}{{{value|}}}|class="infobox-pb"|}} title="Limitations" {{!}} {{{limitations}}}<noinclude><small> (this is for combat limitations)</small></noinclude> |
− | |{{!}} | ||
− | |||
|}} | |}} | ||
− | |||
− | + | |- <!-- weight row --> | |
− | weight row | ||
− | --> | ||
{{#if:<noinclude>string</noinclude>{{{weight|}}} | {{#if:<noinclude>string</noinclude>{{{weight|}}} | ||
− | |{{!}} style="color: | + | |{{!}} {{#if:<noinclude>string</noinclude>{{{value|}}}|class="infobox-pb"|}} style="color:Burlywood;" title="Item weight" {{!}} Weight: {{{weight}}} |
− | |||
|}} | |}} | ||
− | |||
− | + | |- <!-- base trading value row --> | |
− | base trading value row | ||
− | --> | ||
{{#switch:{{{type}}} <!-- switch-if to check if the item is a plot item with value omitted. --> | {{#switch:{{{type}}} <!-- switch-if to check if the item is a plot item with value omitted. --> | ||
|Plot|Misc.|Misc|Key={{#if:<noinclude>string</noinclude>{{{value|}}} | |Plot|Misc.|Misc|Key={{#if:<noinclude>string</noinclude>{{{value|}}} | ||
− | |{{!}} style="color: | + | |{{!}} style="color:gold;" title="Base trading value" {{!}}Value: {{{value}}} |
− | |{{!}} style="color: | + | |{{!}} style="color:gold;" title="Plot items cannot be sold" {{!}}Cannot be sold.}} |
+ | |Currency={{!}} style="color:gold;" title="Base trading value" {{!}}Value: {{{value}}} | ||
|#default={{#if:<noinclude>string</noinclude>{{{value|}}} | |#default={{#if:<noinclude>string</noinclude>{{{value|}}} | ||
− | |{{!}} style="color: | + | |{{!}} style="color:gold;" title="Base trading value" {{!}}Value: {{ |
+ | |||
+ | #iferror: {{#ifexpr: {{{value}}} }} <!-- also convert value to game currencies if {{{value}}} is a number --> | ||
+ | | {{{value}}} | ||
+ | | {{{value|127}}} | ||
+ | * {{#expr: ceil({{{value|127}}}/10) }} [[SGS Credits]] | ||
+ | * {{#expr: ceil({{{value|127}}}/30) }} [[Stygian Coin]] | ||
+ | * {{#expr: ceil({{{value|127}}}/50) }} [[United Stations Dollar]] | ||
+ | * {{#expr: ceil({{{value|127}}}/15) }} [[Zlatortiya]] | ||
+ | }} | ||
+ | |||
|}} | |}} | ||
}} | }} | ||
<!-- | <!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 398: | Line 300: | ||
blueprint crafting page start --> | blueprint crafting page start --> | ||
{{#if:<noinclude>string</noinclude>{{{component1|}}} | {{#if:<noinclude>string</noinclude>{{{component1|}}} | ||
− | |<hr style="background-color:#AE5700; height:2px;"><!-- | + | |{{!}}- |
+ | {{!}}<hr style="background-color:#AE5700; height:2px; margin:10px -10px 0 -10px;"><!-- | ||
COMPONENT TABLE STARTS HERE. | COMPONENT TABLE STARTS HERE. | ||
Line 405: | Line 308: | ||
--> | --> | ||
− | {{(}}{{!}} width="100%" cellspacing="10" style=" | + | {{(}}{{!}} width="100%" cellspacing="10" style="color:#FFF;" |
{{!}}- | {{!}}- | ||
{{!}} colspan="3" title="Crafting recipe description" {{!}}{{{description2}}} | {{!}} colspan="3" title="Crafting recipe description" {{!}}{{{description2}}} | ||
{{!}}- align="center" valign="middle" | {{!}}- align="center" valign="middle" | ||
− | {{!}} | + | {{!}} class="infobox-cc" title="First component" {{!}} '''{{{component1}}}''' |
− | |||
<!-- | <!-- | ||
− | |||
box for 2nd component | box for 2nd component | ||
-->{{#if:<noinclude>string</noinclude>{{{component2|}}} | -->{{#if:<noinclude>string</noinclude>{{{component2|}}} | ||
− | |{{!}} | + | |{{!}} class="infobox-cc" title="Second component" {{!}} '''{{{component2}}}''' |
− | |||
<!-- | <!-- | ||
− | + | close table & begin new here if there are 4 components, but not 5 | |
− | new | ||
-->{{#if:<noinclude>string</noinclude>{{{component4|}}} | -->{{#if:<noinclude>string</noinclude>{{{component4|}}} | ||
− | |{{!}}- align="center" valign=" | + | |{{#if:<noinclude>string</noinclude>{{{component5|}}}| |
− | |}} | + | |{{!}}{{)}} |
+ | {{(}}{{!}} width="100%" cellspacing="10" style="color:#FFF;" | ||
+ | {{!}}- align="center" valign="middle" | ||
+ | }}|}} | ||
<!-- | <!-- | ||
− | |||
box for 3rd component | box for 3rd component | ||
-->{{#if:<noinclude>string</noinclude>{{{component3|}}} | -->{{#if:<noinclude>string</noinclude>{{{component3|}}} | ||
− | |{{!}} | + | |{{!}} class="infobox-cc" title="Third component" {{!}} '''{{{component3}}}''' |
− | |||
<!-- | <!-- | ||
+ | close table & begin new here if there are 5 components | ||
+ | -->{{#if:<noinclude>string</noinclude>{{{component5|}}} | ||
+ | |{{!}}{{)}} | ||
+ | {{(}}{{!}} width="100%" cellspacing="10" style="color:#FFF;" | ||
+ | {{!}}- align="center" valign="middle" | ||
+ | |}} | ||
+ | <!-- | ||
box for 4th component | box for 4th component | ||
-->{{#if:<noinclude>string</noinclude>{{{component4|}}} | -->{{#if:<noinclude>string</noinclude>{{{component4|}}} | ||
− | |{{!}} | + | |{{!}} class="infobox-cc" title="Fourth component" {{!}} '''{{{component4}}}''' |
− | -->'''{{{ | + | <!-- |
+ | |||
+ | box for 5th component | ||
+ | -->{{#if:<noinclude>string</noinclude>{{{component5|}}} | ||
+ | |{{!}} class="infobox-cc" title="Fourth component" {{!}} '''{{{component5}}}''' | ||
+ | |}} <!-- close if component5 --> | ||
|}} <!-- close if component4 --> | |}} <!-- close if component4 --> | ||
|}} <!-- close if component3 --> | |}} <!-- close if component3 --> | ||
Line 445: | Line 357: | ||
{{!}}{{)}} <!-- close mandatory component table --> | {{!}}{{)}} <!-- close mandatory component table --> | ||
− | {{(}}{{!}} width="100%" cellspacing="10" style=" | + | {{(}}{{!}} width="100%" cellspacing="10" style="color:#FFF;" |
− | {{!}}- align="center | + | {{!}}- align="center" |
<!-- | <!-- | ||
− | |||
optional component 1 | optional component 1 | ||
-->{{#if:<noinclude>string</noinclude>{{{optional1|}}} | -->{{#if:<noinclude>string</noinclude>{{{optional1|}}} | ||
− | |{{!}} | + | |{{!}} class="infobox-oc" title="First optional component" {{!}} '''{{{optional1}}}'''<br/><div class="infobox-opt">Optional. |
− | |||
− | <div | ||
<!-- | <!-- | ||
optional difficulty mod 1 | optional difficulty mod 1 | ||
-->{{#if:<noinclude>string</noinclude>{{{diffmod1|}}} | -->{{#if:<noinclude>string</noinclude>{{{diffmod1|}}} | ||
− | + | |<br/>Using this slot will increase the total skill requirements by <span title="Difficulty modifier">{{{diffmod1}}}</span> of the occupying item's requirements. | |
− | + | |}}</div> | |
− | |||
<!-- | <!-- | ||
− | |||
optional component 2 | optional component 2 | ||
-->{{#if:<noinclude>string</noinclude>{{{optional2|}}} | -->{{#if:<noinclude>string</noinclude>{{{optional2|}}} | ||
− | |{{!}} | + | |{{!}} class="infobox-oc" title="Second optional component" {{!}} '''{{{optional2}}}'''<br/><div class="infobox-opt">Optional. |
− | |||
− | <div | ||
<!-- | <!-- | ||
optional difficulty mod 2 | optional difficulty mod 2 | ||
-->{{#if:<noinclude>string</noinclude>{{{diffmod2|}}} | -->{{#if:<noinclude>string</noinclude>{{{diffmod2|}}} | ||
− | + | |<br/>Using this slot will increase the total skill requirements by <span title="Difficulty modifier">{{{diffmod2}}}</span> of the occupying item's requirements. | |
− | + | |}}</div> | |
− | |||
<!-- | <!-- | ||
− | |||
optional component 3 | optional component 3 | ||
-->{{#if:<noinclude>string</noinclude>{{{optional3|}}} | -->{{#if:<noinclude>string</noinclude>{{{optional3|}}} | ||
− | |{{!}} | + | |{{!}} class="infobox-oc" title="Third optional component" {{!}} '''{{{optional3}}}'''<br/><div class="infobox-opt">Optional. |
− | |||
− | <div | ||
<!-- | <!-- | ||
optional difficulty mod 3 | optional difficulty mod 3 | ||
-->{{#if:<noinclude>string</noinclude>{{{diffmod3|}}} | -->{{#if:<noinclude>string</noinclude>{{{diffmod3|}}} | ||
− | + | |<br/>Using this slot will increase the total skill requirements by <span title="Difficulty modifier">{{{diffmod3}}}</span> of the occupying item's requirements. | |
− | + | |}}</div> | |
− | |||
|}} <!-- close if optional component3 --> | |}} <!-- close if optional component3 --> | ||
|}} <!-- close if optional component2 --> | |}} <!-- close if optional component2 --> | ||
Line 497: | Line 397: | ||
{{!}}{{)}}<!-- close optional component table --> | {{!}}{{)}}<!-- close optional component table --> | ||
|}} <!-- close blueprint crafting page #IF --> | |}} <!-- close blueprint crafting page #IF --> | ||
− | |}{{#if:{{{example|}}} | + | |}<!-- |
− | + | ||
− | + | ||
+ | |||
+ | |||
+ | AUTOMATIC CATEGORIES: | ||
+ | -->{{#if:{{NAMESPACE}}|<!-- non-empty namespace -->{{#ifeq:{{NAMESPACE}}|Template|{{Infobox tab}}|}}|<!-- | ||
+ | |||
+ | |||
+ | empty namespace, aka main namespace: | ||
+ | |||
+ | check if component stats are example | ||
+ | -->{{#if:{{{quality|}}} | ||
+ | |{{#ifexpr: {{{quality|1-2}}} < 0 <!-- checks if quality is a range --> | ||
+ | | | ||
+ | |<includeonly>[[Category:Components with example stats]]</includeonly> | ||
+ | }} | ||
| | | | ||
− | |{{#ifeq:{{{type}}}| | + | }}<!-- |
+ | |||
+ | check if it's weightless and not oddity, not key, not misc. | ||
+ | -->{{#if:{{{weight|}}} | ||
+ | | | ||
+ | |{{#ifeq:{{{type}}}|Oddity | ||
| | | | ||
− | |<includeonly>[[Category:Items without weight]]</includeonly>}}}}<noinclude> | + | |{{#ifeq:{{{type}}}|Key |
− | <br style="clear:both;"/>{{documentation}}</noinclude> | + | | |
+ | |{{#ifeq:{{{type}}}|Misc. | ||
+ | | | ||
+ | |<includeonly>[[Category:Items without weight]]</includeonly> | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | check for itemquality | ||
+ | -->{{#if:{{{itemquality|}}} | ||
+ | |{{#ifeq:{{{itemquality}}}|artifact | ||
+ | |<includeonly>[[Category:Artifact-quality items]]</includeonly> | ||
+ | |}}<!-- | ||
+ | -->{{#ifeq:{{{itemquality}}}|unique | ||
+ | |<includeonly>[[Category:Unique-quality items]]</includeonly> | ||
+ | |}}<!-- | ||
+ | -->{{#ifeq:{{{itemquality}}}|rarity | ||
+ | |<includeonly>[[Category:Rare-quality items]]</includeonly> | ||
+ | |}}<!-- | ||
+ | -->{{#ifeq:{{{itemquality}}}|rare | ||
+ | |<includeonly>[[Category:Rare-quality items]]</includeonly> | ||
+ | |}}<!-- | ||
+ | -->{{#ifeq:{{{itemquality}}}|high | ||
+ | |<includeonly>[[Category:High-quality items]]</includeonly> | ||
+ | |}}<!-- | ||
+ | -->{{#ifeq:{{{itemquality}}}|normal | ||
+ | |<includeonly>[[Category:Normal-quality items]]</includeonly> | ||
+ | |}}<!-- | ||
+ | -->{{#ifeq:{{{itemquality}}}|low | ||
+ | |<includeonly>[[Category:Low-quality items]]</includeonly> | ||
+ | |}} | ||
+ | |<includeonly>[[Category:Items without itemquality]]</includeonly> | ||
+ | }}<!-- | ||
+ | |||
+ | -->}}<!-- close namespace #IF --><noinclude><br style="clear:both;"/>{{documentation}}</noinclude> |
Latest revision as of 02:04, 5 September 2020
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Infobox_item/doc to view this documentation. (edit) (How does this work?)
Visit Template:Infobox_item/doc to view this documentation. (edit) (How does this work?)
Description
This is the infobox template for all items.
Old unused aliases: Template:Infobox ammo, Template:Infobox armor, Template:Infobox blueprint, Template:Infobox component, Template:Infobox weapon
Syntax
To use this template:
- copy the following code
- fill in the appropriate fields
- remove all unused lines
{{item infobox | itemquality = [accepted values: low, normal, high, rarity, unique, artifact] | image = [should match name with .png suffix] | name = | type = | description = | trapstats = [skill req and detection difficulty for traps] | capabilities = [Use / On Hit / other item capabilities] | requirements = [new 1.1 requirements listing, each req on a new line beginning with :*] | incurred = [incurred stats written in orange] | onequip = [bonuses/penalties on equip] | ammouses = [ammo capabilities, for either ammo or loaded weapons] | energy = [battery capacity] | durability = [durability and its type] | disassembly = [remove this if item is not disassemble-able] | limitations = [general restrictions like cant be used in combat etc] | weight = | value = [base trading value, NOT value affected by trading multiplier] | |armor attributes: | res-mech = | res-heat = | res-cold = | res-elec = | res-acid = | res-ener = | res-bio = | encumbrance = [aka armor penalty] | |blueprint attributes: | description2 = [description on the crafting recipe] | component1 = [mandatory first component] | component2 = | component3 = | component4 = | component5 = | optional1 = | diffmod1 = | optional2 = | diffmod2 = | optional3 = | diffmod3 = | |component attributes: | quality = | skillsreq = [multiple lines, each intended with ":"] | |shield emitter attributes: | capacity = | conversion = | dissipation = | shield-vlow = | shield-low = | shield-med = | shield-high = | shield-vhigh = | |weapon attributes: | damage = | impactspeed = [accepted values: Very Low, Low, Medium, High, Very High] | ap = | spread = | range = | precision = | cqprec. = | moveprec. = | burstprec. = | extraburst = | critchance = | critbonus = | ammotype = | magcap = | reloadcost = | energy/shot = | energy = | |vehicle part attributes: | partsize = | power = | consumption = | stability = | |meta: | datafile = [the item definition file] }}
Samples
| ||||||||
Contain instructions on how to create a sniper rifle. | ||||||||
Use: Download blueprint into your wristpad. | ||||||||
Weight: 0.05 | ||||||||
Value: 2000
| ||||||||
|
{{infobox item | itemquality = high | image = Blueprint: Sniper Rifle.png | name = Blueprint: Sniper Rifle | type = Blueprint | description = Contain instructions on how to create a sniper rifle. | capabilities = Use: Download blueprint into your wristpad. | weight = 0.05 | value = 2000 | description2 = Sniper rifles can be created from frame, barrel and scope parts. The type and quality of the frame will determine the rifle's overall damage potential, while the barrel will dictate the payload. Scope will influence the rifle's precision, critical hit chance and other qualities.<br/><br/>A number of optional components can also be added to further enhance the weapon. | component1 = Frame | component2 = Barrel | component3 = Scope | optional1 = Sniper Rifle Enhancement | diffmod1 = 15% | optional2 = Sniper Rifle Enhancement | diffmod2 = 15% }}
| |||||||
Contains instructions on how to create a health hypo. | |||||||
Use: Download blueprint into your wristpad. | |||||||
Weight: 0.05 | |||||||
Value: 800
| |||||||
|
{{infobox item | itemquality = high | image = Blueprint: Health Hypo.png | name = Blueprint: Health Hypo | type = Blueprint | description = Contains instructions on how to create a health hypo. | capabilities = Use: Download blueprint into your wristpad. | weight = 0.05 | value = 800 | description2 = Health Hypo can be created by mixing healthy animal blood with insectoid saliva and preserving the mixture with anticoagulant. | component1 = Blood (x3) | component2 = Insectoid Saliva | component3 = Anticoagulant | component4 = Syringe (x2) }}
| |||
A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use. | |||
Use: Instantly restores 80 health points. (AP: 10, Cooldown: 6 turns) | |||
Weight: 0.10 | |||
Value: 120 |
{{infobox item | itemquality = normal | image = Health Hypo.png | name = Health Hypo | type = Medicine | description = A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use. | capabilities = Use: Instantly restores 80 health points.<br/>(AP: 10, Cooldown: 6 turns) | weight = 0.10 | value = 120 }}
| |||
This handy tool can also be used as a weapon in a pinch. | |||
Damage: 5-13 (Mechanical) | |||
Impact speed: Very Low | |||
Base action points: 18 AP | |||
Range: Melee | |||
Critical chance: 10% | |||
Critical damage bonus: 100% | |||
Damage increased by 3% for every point in strength above 6. Use: Forces open a ventilation shaft. It won't be able to close afterwards. (AP: 15) | |||
Weight: 2.50 | |||
Value: 50 |
{{infobox item | itemquality = normal | image = Steel Crowbar.png | name = Steel Crowbar | type = Melee Weapon | description = This handy tool can also be used as a weapon in a pinch. | damage = 5-13 (Mechanical) | impactspeed = Very Low | ap = 18 AP | range = Melee | critchance = 10% | critbonus = 100% | capabilities = Damage increased by 3% for every point in strength above 6.<br><br>Use: Forces open a ventilation shaft. It won't be able to close afterwards.<br>(AP: 15) | weight = 2.50 | value = 50 }}
| |||
This is a 9mm jacketed hollow point round. | |||
- Incurs 150% of mechanical damage resistance and threshold, but the damage that penetrates the armor is increased by 40% against organic targets. | |||
Use: Reload a weapon with 9mm JHP rounds. (AP: 15) Use: Reload the current weapon with 9mm JHP rounds. (AP: 15) Use: Loads a single 9mm JHP round into a weapon. Can only be performed out of combat. (AP: 15) Use: Loads a single 9mm JHP round into the current weapon. Can only be performed out of combat. (AP: 15) | |||
Weight: 0.04 | |||
Value: 18 |
{{Infobox ammo | itemquality = high | image = 9mm JHP Round.png | name = 9mm JHP Round | type = Ammo | description = This is a 9mm jacketed hollow point round. | incurred = - Incurs 150% of mechanical damage resistance and threshold, but the damage that penetrates the armor is increased by 40% against organic targets. | ammouses = Use: Reload a weapon with 9mm JHP rounds.<br>(AP: 15)<br><br>Use: Reload the current weapon with 9mm JHP rounds.<br>(AP: 15)<br><br>Use: Loads a single 9mm JHP round into a weapon. Can only be performed out of combat.<br>(AP: 15)<br><br>Use: Loads a single 9mm JHP round into the current weapon. Can only be performed out of combat.<br>(AP: 15) | weight = 0.04 | value = 18 | datafile = Ammo/Caliber_9_JHP.item }}
| |||
This is a suit of steel armor. Below the protective plates is a vest that provides moderate protection against electrical attacks. | |||
Resistances:
| |||
Minimal strength: 8 | |||
Armor penalty: 70% | |||
Durability: 505 / 505 (mechanical) | |||
Weight: 20.00 | |||
Value: 10758
|
{{infobox item | itemquality = normal | image = Galvanic Steel Armor.png | name = Galvanic Steel Armor | type = Armor Suit | description = This is a suit of steel armor. Below the protective plates is a vest that provides moderate protection against electrical attacks. | res-mech = 51% / 15 | res-heat = 5 | res-elec = 16% / 3 | res-acid = 5 | res-ener = 38% / 10 | encumbrance = 70% | minstr = 8 | durability = 505 / 505 (mechanical) | weight = 20.00 | value = 10758 }}
| |||
This skin can be turned into an acid resistant leather armor. | |||
Quality range: 34 - 62 ? | |||
Required crafting skills (as percentage of quality):
| |||
Weight: 5.00 | |||
Value: 75 + 8 * quality |
{{infobox item | itemquality = high | image = Mutated Dog Leather.png | name = Mutated Dog Leather | type = Component | description = This skin can be turned into an acid resistant leather armor. | quality = 34 - 62 | skillsreq = :Tailoring 80% :Chemistry 24% | weight = 5.00 | value = 75 + 8 * quality }}
| |||
Unlocks your private quarters. | |||
Cannot be sold. |
{{infobox item | itemquality = normal | image = Private Quarters Key Card.png | name = Private Quarters Key Card | type = Key | description = Unlocks your private quarters. }}