Template:Item: Difference between revisions

6 bytes added ,  14:25, 9 August 2019
m
Add default renderstring if unspecified (the game uses . )
(cleaned up weapon accuracy code)
m (Add default renderstring if unspecified (the game uses . ))
Line 20: Line 20:
MaxVolume={{{maxvol|}}}|LiquidGen={{{liquidgen|}}}|LiquidType={{{liquidtype|}}}|
MaxVolume={{{maxvol|}}}|LiquidGen={{{liquidgen|}}}|LiquidType={{{liquidtype|}}}|
MaxCharge={{{maxcharge|}}}|ChargeUsed={{{chargeused|}}}|ChargePerDram={{{chargeperdram|}}}|Weight={{{weight|}}}|Commerce={{{commerce|}}}|Complexity={{{complexity|}}}|Tier={{{tier|}}}|Bits={{{bits|}}}|CanBuild={{{canbuild|no}}}|CanDisassemble={{{candisassemble|no}}}|Skill={{{skill|}}}|
MaxCharge={{{maxcharge|}}}|ChargeUsed={{{chargeused|}}}|ChargePerDram={{{chargeperdram|}}}|Weight={{{weight|}}}|Commerce={{{commerce|}}}|Complexity={{{complexity|}}}|Tier={{{tier|}}}|Bits={{{bits|}}}|CanBuild={{{canbuild|no}}}|CanDisassemble={{{candisassemble|no}}}|Skill={{{skill|}}}|
RenderString={{{renderstr|}}}|ColorString={{{colorstr|&y}}}|
RenderString={{{renderstr|.}}}|ColorString={{{colorstr|&y}}}|
ObjectID={{{id|}}}|BookID={{{bookid|}}}|
ObjectID={{{id|}}}|BookID={{{bookid|}}}|
LightRadius={{{lightradius|}}}|
LightRadius={{{lightradius|}}}|
Line 26: Line 26:
AgilityBonus={{{agility|}}}|StrengthBonus={{{strength|}}}|WillpowerBonus={{{willpower|}}}|ToughnessBonus={{{toughness|}}}|IntelligenceBonus={{{intelligence|}}}|EgoBonus={{{ego|}}}|
AgilityBonus={{{agility|}}}|StrengthBonus={{{strength|}}}|WillpowerBonus={{{willpower|}}}|ToughnessBonus={{{toughness|}}}|IntelligenceBonus={{{intelligence|}}}|EgoBonus={{{ego|}}}|
Acid={{{acid|}}}|Electric={{{electric|}}}|Cold={{{cold|}}}|Heat={{{heat|}}}|
Acid={{{acid|}}}|Electric={{{electric|}}}|Cold={{{cold|}}}|Heat={{{heat|}}}|
Description={{qud text|{{{desc|}}}}}|WornOn={{{wornon|}}}|UsesSlots={{{usesslots|{{{wornon|}}}}}}|Healing={{{healing|}}}|HarvestedInto={{{harvestedinto|}}}|PreservedInto={{{preservedinto|}}}|PreservedQuantity={{{preservedquantity|}}}|Movespeed={{{movespeed|}}} }} {{#cargo_store:_table=GeneralData|ObjectID={{{id|}}}|DisplayName={{qud text|&y{{{title|{{PAGENAME}}}}}}}|Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}|PlainName={{#titleparts:{{PAGENAME}}}}|Commerce={{{commerce|}}}|DisplayChar={{Qud char|{{{colorstr|&y}}}|{{{renderstr}}}}}|Weight={{{weight|}}} }}{{#vardefine:name|{{{title|{{#titleparts:{{PAGENAME}}}} }}} }}{{#invoke:infobox|infobox
Description={{qud text|{{{desc|}}}}}|WornOn={{{wornon|}}}|UsesSlots={{{usesslots|{{{wornon|}}}}}}|Healing={{{healing|}}}|HarvestedInto={{{harvestedinto|}}}|PreservedInto={{{preservedinto|}}}|PreservedQuantity={{{preservedquantity|}}}|Movespeed={{{movespeed|}}} }} {{#cargo_store:_table=GeneralData|ObjectID={{{id|}}}|DisplayName={{qud text|&y{{{title|{{PAGENAME}}}}}}}|Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}|PlainName={{#titleparts:{{PAGENAME}}}}|Commerce={{{commerce|}}}|DisplayChar={{Qud char|{{{colorstr|&y}}}|{{{renderstr|.}}}}}|Weight={{{weight|}}} }}{{#vardefine:name|{{{title|{{#titleparts:{{PAGENAME}}}} }}} }}{{#invoke:infobox|infobox
| rows =  
| rows =  
<!--lists the max pv, with a default base pv of 4. if you want to change the base pv, set pv to(number)-->
<!--lists the max pv, with a default base pv of 4. if you want to change the base pv, set pv to(number)-->
Line 68: Line 68:
{{#if: {{{reputationbonus|}}}|{{Infobox row|Reputation Bonus|{{{reputationbonus}}} }} }}
{{#if: {{{reputationbonus|}}}|{{Infobox row|Reputation Bonus|{{{reputationbonus}}} }} }}
<!--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|{{{id}}} }} }}
{{#if: {{{id|}}}      | {{infobox row|ID|{{{id}}} }} }}