Template:Item: Difference between revisions

173 bytes added ,  19:15, 16 December 2021
exclude additional details from search index
m (relocate MA)
(exclude additional details from search index)
Line 131: Line 131:
{{#if: {{{ammodamagetypes|}}} | {{infobox row|[[Damage Type]]|{{{ammodamagetypes}}} }} }}
{{#if: {{{ammodamagetypes|}}} | {{infobox row|[[Damage Type]]|{{{ammodamagetypes}}} }} }}
{{#if: {{{ammo|}}}    | {{infobox row|Ammo Type|{{consecutive links|{{{ammo}}}}} }} }}
{{#if: {{{ammo|}}}    | {{infobox row|Ammo Type|{{consecutive links|{{{ammo}}}}} }} }}
{{#if: {{{accuracy|}}}| {{infobox row|Accuracy|{{#switch: {{{accuracy|0}}}|0=Very High|1|2|3|4=High|5|6|7|8|9=Medium|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24=Low|Very Low}} ({{{accuracy}}}) }} }}
{{#if: {{{accuracy|}}}| {{infobox row|Accuracy|<div class="navigation-not-searchable">{{#switch: {{{accuracy|0}}}|0=Very High|1|2|3|4=High|5|6|7|8|9=Medium|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24=Low|Very Low}} ({{{accuracy}}})</div> }} }}
{{#if: {{{shots|}}}  | {{infobox row|Shots per Action|{{{shots}}} }} }}
{{#if: {{{shots|}}}  | {{infobox row|Shots per Action|{{{shots}}} }} }}
{{#if: {{{ammoperaction|}}}| {{infobox row|Ammo per Action|{{{ammoperaction}}} }} }}
{{#if: {{{ammoperaction|}}}| {{infobox row|Ammo per Action|{{{ammoperaction}}} }} }}
Line 139: Line 139:
{{#if: {{{liquidgenrate|}}}| {{infobox row|Liquid Generation|1 dram of [[{{{liquidgentype}}}]] every {{#if:{{#pos:{{{liquidgenrate}}}|-}}|{{dice tooltip|{{{liquidgenrate}}}}}|{{{liquidgenrate}}}}} turns}} }}
{{#if: {{{liquidgenrate|}}}| {{infobox row|Liquid Generation|1 dram of [[{{{liquidgentype}}}]] every {{#if:{{#pos:{{{liquidgenrate}}}|-}}|{{dice tooltip|{{{liquidgenrate}}}}}|{{{liquidgenrate}}}}} turns}} }}
<!--gases-->
<!--gases-->
{{#if: {{{inhaled|}}} | {{infobox row|Inhaled{{Tooltip|Whether this gas is<br>[[respiration|respiration-based]]}}|{{{inhaled}}} }} }}  
{{#if: {{{inhaled|}}} | {{infobox row|Inhaled{{Tooltip|Whether this gas is<br>[[respiration|respiration-based]]||nosearch}}|{{{inhaled}}} }} }}  
{{#if: {{{seeping|}}} | {{infobox row|Seeping{{Tooltip|Whether this gas can<br>seep through walls}}|{{{seeping}}} }} }}
{{#if: {{{seeping|}}} | {{infobox row|Seeping{{Tooltip|Whether this gas can<br>seep through walls||nosearch}}|{{{seeping}}} }} }}
<!--Generic item stuff-->
<!--Generic item stuff-->
{{#if: {{{maxcharge|}}}|{{infobox row|Max Charge|{{{maxcharge}}} }} }}
{{#if: {{{maxcharge|}}}|{{infobox row|Max Charge|{{{maxcharge}}} }} }}
Line 147: Line 147:
{{#if: {{{chargefunction|}}}  | {{infobox row|Charge Used For|{{{chargefunction}}} }} }}
{{#if: {{{chargefunction|}}}  | {{infobox row|Charge Used For|{{{chargefunction}}} }} }}
}}
}}
{{#if: {{{imprintchargecost|}}} | {{infobox row|Imprint Cost{{Tooltip|Charge cost to program a<br>location into this recoiler}}|{{{imprintchargecost}}} }} }}
{{#if: {{{imprintchargecost|}}} | {{infobox row|Imprint Cost{{Tooltip|Charge cost to program a<br>location into this recoiler||nosearch}}|{{{imprintchargecost}}} }} }}
{{#if: {{{chargeperdram|}}}| {{infobox row|Charge per Dram|{{{chargeperdram}}} }} }}
{{#if: {{{chargeperdram|}}}| {{infobox row|Charge per Dram|{{{chargeperdram}}} }} }}
<!--tinkering-->
<!--tinkering-->
Line 160: Line 160:
{{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }}
{{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }}
{{#if: {{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }}
{{#if: {{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }}
{{#ifeq: {{{canbuild|}}} | yes | {{infobox row|Tinker Skill|[[{{Tinker check| {{#sub:{{{bits|0}}}| -1 }} }}]] }} }}  
{{#ifeq: {{{canbuild|}}} | yes | {{infobox row|Tinker Skill|<div class="searchaux">[[{{Tinker check| {{#sub:{{{bits|0}}}| -1 }} }}]]</div> }} }}  
<!--What skill tree it uses-->
<!--What skill tree it uses-->
{{#if: {{{weaponskill|}}}    | {{infobox row|Skill Used|{{consecutive links |{{{weaponskill}}} }} }} }}
{{#if: {{{weaponskill|}}}    | {{infobox row|Skill Used|<div class="searchaux">{{consecutive links |{{{weaponskill}}} }}</div> }} }}
{{#if: {{{reputationbonus|}}}| {{Infobox row|Reputation Bonus|{{{reputationbonus}}} }}  
{{#if: {{{reputationbonus|}}}| {{Infobox row|Reputation Bonus|{{{reputationbonus}}} }}  
[[Category:Reputation-altering items]] }}
[[Category:Reputation-altering items]] }}
<!-- Potential mods -->
<!-- Potential mods -->
{{#if: {{{supportedmods|}}}| {{infobox row|Potential<br>Mods{{Tooltip|Mods this item can support<br>(subject to additional logic & rules)}}|{{consecutive templates|{{{supportedmods}}}|,|, |||mod type to category link}} }} }}
{{#if: {{{supportedmods|}}}| {{infobox row|Potential<br>Mods{{Tooltip|Mods this item can support<br>(subject to additional logic & rules)||nosearch}}|{{consecutive templates|{{{supportedmods}}}|,|, |||mod type to category link}} }} }}
<!--Renderstring, with the ColorString appended before it-->
<!--Renderstring, with the ColorString appended before it-->
{{#if: {{{renderstr|}}}| {{infobox row|Character|{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr|}}}}} }} }}
{{#if: {{{renderstr|}}}| {{infobox row|Character|{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr|}}}}} }} }}
<!--This is the name of the object in ObjectBlueprints.xml-->
<!--This is the name of the object in ObjectBlueprints.xml-->
{{#if: {{{id|}}}      | {{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for the item}}|{{{id}}} }} }}
{{#if: {{{id|}}}      | {{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for the item||nosearch}}|{{{id}}} }} }}
<!--This is more specific stuff-->
<!--This is more specific stuff-->
{{#if: {{{bookid|}}}  | {{infobox row|Book ID|{{{bookid}}} }} }}
{{#if: {{{bookid|}}}  | {{infobox row|Book ID|{{{bookid}}} }} }}
{{#if: {{{chairlevel|}}} | {{infobox row|Chair Level{{Tooltip|Chair level affects the power<br>of the [[sitting]] effect}}|{{{chairlevel}}} }} }}
{{#if: {{{chairlevel|}}} | {{infobox row|Chair Level{{Tooltip|Chair level affects the power<br>of the [[sitting]] effect||nosearch}}|{{{chairlevel}}} }} }}
{{#if: {{{lightradius|}}}| {{infobox row|Light Radius{{Tooltip|This object acts as<br>a [[light source]]}}|{{{lightradius}}} }} }}
{{#if: {{{lightradius|}}}| {{infobox row|Light Radius{{Tooltip|This object acts as<br>a [[light source]]||nosearch}}|{{{lightradius}}} }} }}
{{#if: {{{healing|}}} | {{infobox row|Healing|{{{healing}}} }} }}
{{#if: {{{healing|}}} | {{infobox row|Healing|{{{healing}}} }} }}
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{favilink id|{{{harvestedinto}}} }} }} }}
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{favilink id|{{{harvestedinto}}} }} }} }}