Template:Mod: Difference between revisions

3,341 bytes added ,  07:33, 16 October 2023
m
no edit summary
mNo edit summary
mNo edit summary
 
(78 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=Mods|Type=String|Restriction=String|MinTier=Integer|MaxTier=Integer|ModID=String|Value=Float|Rarity=String (allowed values=C,U,R,M)|Tinkerable=Boolean|TinkerTier=Integer|Description=Wikitext|Restriction=String|Type=List (,) of String (hierarchy;allowed values=*General
{{#cargo_declare:_table=Mods
|Type=String
|MinTier=Integer|MaxTier=Integer
|ModID=String
|Value=Float
|Rarity=String (allowed values=C,U,R,M)
|Tinkerable=Boolean
|TinkerTier=String
|BitUsed=Integer
|NativeTier=Integer
|CanAutoTinker=Boolean
|Description=Wikitext
|DisplayName=Wikitext
|PlainName=String
|Restriction=String
|TinkerTierNum=Integer
|Difficulty=Integer
|Complexity=Integer
|PowerLoadSensitive=Boolean
|EMPSensitive=Boolean
|RealityDistortionBased=Boolean
|ChargeUsed=String
|Type=List (,) of String (hierarchy;allowed values=*General
**Pottery
**Statue
**Jeweled
*Weapon
*Weapon
**Thrown Weapon
***Grenade
**Missile Weapon
**Missile Weapon
***Magazine
***Magazine
***Firearm
***Firearm
***Beam Weapon
**Melee Weapon
**Melee Weapon
***Blade
***Blade
Line 13: Line 41:
*Armor
*Armor
**Body
**Body
**Cloak
**Helmet
**Helmet
**Headwear
**Headwear
**Mask
**Eyewear
**Eyewear
**Shield
**Shield
**Boot
**Boot
**Glove
**Glove
**Gauntlet
**Tread Accessory
**Tread Accessory
*Grenade
**Exoskeleton
*Pottery
**Wings
*Electronic
*Misc
**Book
**Curio
*Electronics
**Energy Cell
**Energy Cell
**Tech Wall
**Charge Storage
*Book)}}[[Category:Cargo Store Templates]]
**Tech Wall)}}[[Category:Cargo Store Templates]]
 
</noinclude><includeonly><!--                   
</noinclude><includeonly><!--                   


     Cargo Storage start
     Cargo Storage start
                  
                  
-->{{#cargo_store:_table=Mods|Type={{{type|}}}|Restriction={{{restriction|None}}}|MinTier={{{mintier|0}}}|MaxTier={{{maxtier|99}}}|ModID={{{id|}}}|Value={{{value|1.0}}}|Rarity={{{rarity|}}}|Tinkerable={{{tinkerable|no}}}|TinkerTier={{{tinkertier|}}}|Description={{qud text|{{{desc|}}}|{{#ifeq:{{{notxml|}}}|yes|notxml}}}}|Restriction={{#ifeq: {{{reliconly|}}}|yes|Relic Only }}{{{restriction|}}}|Type={{{type|}}} }}<!--
-->{{#cargo_store:_table=Mods
|Type       = {{{type|}}}
|MinTier     = {{{mintier|0}}}
|MaxTier     = {{{maxtier|99}}}
|ModID       = {{{id|}}}
|Value       = {{{value|1.0}}}
|Rarity     = {{{rarity|}}}
|Tinkerable = {{lc:{{{tinkerable|no}}}}}
|TinkerTier = {{#ifeq:{{lc:{{{tinkerable|}}}}}|yes|{{tinker check|{{{tinkertier|1}}} }} }}
|BitUsed    = {{#ifeq:{{lc:{{{tinkerable|}}}}}|yes|{{{tinkertier|1}}} }}
|NativeTier  = {{{nativetier|}}}
|CanAutoTinker = {{lc:{{{canautotinker|yes}}}}}
|Description = {{qud text|{{{desc|}}} }}
|Restriction = {{{restriction|no restrictions}}}
|Difficulty  = {{{difficulty|}}}
|Complexity  = {{{complexity|}}}
|PowerLoadSensitive = {{lc:{{{powerloadsensitive|no}}}}}
|EMPSensitive = {{lc:{{{empsensitive|no}}}}}
|RealityDistortionBased = {{lc:{{{realitydistortion|no}}}}}
|ChargeUsed  = {{{chargeused|}}}
|DisplayName = {{{title|{{#titleparts:{{PAGENAME}}}} }}}
|PlainName  = {{#invoke: HTMLParse | strip_formatting | html ={{{title|{{#titleparts:{{PAGENAME}}}} }}}}}
|TinkerTierNum = {{#ifeq:{{lc:{{{tinkerable|}}}}}|yes|{{{tinkertier|1}}} }}
}}<!--


     Variable Definitions
     Variable Definitions
Line 43: Line 99:
| rows =  
| rows =  
{{#if: {{{type|}}}    | {{infobox row|Category|{{{type}}}{{consecutive links|{{{type}}}|,| |||Category:| Mods}} }} }}
{{#if: {{{type|}}}    | {{infobox row|Category|{{{type}}}{{consecutive links|{{{type}}}|,| |||Category:| Mods}} }} }}
{{#if: {{{restriction|}}}{{#ifeq:{{{reliconly|}}}|yes|yes}}|{{infobox row|Restrictions|{{#if: {{{reliconly|}}}|Relic Only</br>[[Category:Relic Mods]]}}{{{restriction|}}} }} }}
{{#if: {{{restriction|}}}|{{infobox row|Restrictions|{{{restriction|}}} }} }}
{{infobox row|Tiers|{{{mintier|0}}} - {{{maxtier|99}}} }}  
{{#ifexpr: {{{mintier|0}}} > 1|{{infobox row|minimum item [[tier]]|{{{mintier}}} }} }}
{{#if: {{{rarity|}}}|{{infobox row|Rarity|{{#switch: {{{rarity}}}| C = Common | U = Uncommon | R = Rare | M = Mega Rare}} }} }}
{{#ifexpr: {{{maxtier|99}}} < 8|{{infobox row|Maximum item [[tier]]|{{{maxtier}}} }} }}
{{#if: {{{nativetier|}}}|{{infobox row|{{Tooltip|Less likely to appear on items<br/>of a lower [[tier]] than this.|Native tier}}|{{{nativetier}}} }} }}
{{#if: {{{rarity|}}}|{{infobox row|Rarity|{{#switch: {{{rarity}}}| C = Common | U = Uncommon | R = Rare | R2 = Rare 2 | R3 = Rare 3}} }} }}
{{infobox row|Tinkerable|{{{tinkerable|no}}} }}
{{infobox row|Tinkerable|{{{tinkerable|no}}} }}
{{#ifeq: {{{tinkerable|}}}| yes | {{infobox row|Tinker Tier|{{{tinkertier}}} }} }}
{{#ifeq: {{lc:{{{tinkerable|}}}}}| yes | {{infobox row|Tinker skill|[[{{Tinker check|{{{tinkertier}}} }}]] }} }}
{{infobox row|Value Multiplier|{{{value|1.0}}}}}
{{#ifeq: {{lc:{{{tinkerable|}}}}}| yes | {{infobox row|Bit required|{{Bits|{{{tinkertier|1}}}}} }} }}
{{infobox row|{{Tooltip|Can appear spontaneously on an<br/>item you create with tinkering.|Autotinkerable}}|{{lc:{{{canautotinker|yes}}}}} }}
{{infobox row|Value multiplier|{{{value|1.0}}}}}
{{#if: {{{difficulty|}}}|{{infobox row|[[Artifact difficulty|Difficulty]]|+{{{difficulty}}} }} }}
{{#if: {{{complexity|}}}|{{infobox row|[[Artifact complexity|Complexity]]|+{{{complexity}}} }} }}
{{#if:{{{chargeused|}}}|{{infobox row|[[Energy|Charge]] per Use|{{#if:{{IsNumber|{{{chargeused}}}}}|{{cell performance for charge|{{{chargeused}}}}}|{{{chargeused}}} }} }} }}
{{#if:{{{empsensitive|}}}|{{infobox row|[[EMP-sensitive]]?|{{{empsensitive}}} }} }}
{{#if:{{{powerloadsensitive|}}}|{{infobox row|{{Tooltip|Whether this mod is power-load sensitive, and<br/>can be further enhanced by the overloaded mod|[[Overloaded|Overloadable]]}}?|{{{powerloadsensitive}}} }} }}
{{#if:{{{realitydistortion|}}}|{{infobox row|{{Tooltip|Whether this item is susceptible<br/>to normality effects|[[Reality distortion|Distorts reality]]}}?|{{{realitydistortion}}} }} }}
{{#if: {{{id|}}}|{{infobox row|ID|{{{id}}} }} }}
{{#if: {{{id|}}}|{{infobox row|ID|{{{id}}} }} }}
}}{{#if: {{{desc|}}}|{{qud quote {{#ifeq:{{{notxml|}}}| yes | notxml}}|{{{desc}}}}} }}
}}{{#if: {{{desc|}}}|{{qud quote|{{{desc}}}|noindent=true}} }}<!--
[[Category:Mods]]</includeonly><noinclude><!---
 
if no specific category was added by 'type' parameter, add the generic 'Mod' category:
 
-->{{#if: {{{type|}}} || [[Category:Mods]] }}</includeonly><noinclude><!---
   
   
     Documentation here
     Documentation here
Line 68: Line 137:
Choice of:  
Choice of:  
*General
*General
**Pottery
**Statue
**Jeweled
*Weapon
*Weapon
**Thrown Weapon
***Grenade
**Missile Weapon
**Missile Weapon
***Magazine
***Magazine
***Firearm
***Firearm
***Beam Weapon
**Melee Weapon
**Melee Weapon
***Blade
***Blade
Line 80: Line 155:
*Armor
*Armor
**Body
**Body
**Cloak
**Helmet
**Helmet
**Headwear
**Headwear
**Mask
**Eyewear
**Eyewear
**Shield
**Shield
**Boot
**Boot
**Glove
**Glove
**Gauntlet
**Tread Accessory
**Tread Accessory
*Grenade
**Exoskeleton
*Pottery
**Wings
*Electronic
*Misc
**Book
**Curio
*Electronics
**Energy Cell
**Energy Cell
**Charge Storage
**Tech Wall
**Tech Wall
*Book
|-
|-
! restriction
! restriction
| any further specifications from type. If only applicable to relics, use <code>reliconly</code> below.
| any further specifications from type.
| strings
| strings
|-
! reliconly
| If the specified mod is specific only to relics.
| yes/no
|-
|-
! mintier
! mintier
Line 112: Line 189:
! rarity
! rarity
| rarity.
| rarity.
| character(C, U, R, M)
| character(C, U, R, R2, R3)
|-
|-
! id
! id
Line 121: Line 198:
| defaults to no
| defaults to no
| yes/no  
| yes/no  
|-
! canautotinker
| whether the mod can generate on an item created by tinkering, defaults to yes
| yes/no
|-
|-
! tinkertier
! tinkertier
| what tier of complexity this mod adds onto the object
| what tier of complexity this mod adds onto the object
| integer
| integer
|-
! nativetier
| The native tier it spawns in.
| integer
|-
! chargeused
| Amount of charge consumed per use by this mod, if applicable. Usually a number but can also be a string such as "variable".
| string
|-
! powerloadsensitive
| Whether this mod is "power load-sensitive". Power load-sensitive mods can be enhanced by the [[Overloaded]] mod.
| yes/no
|-
! empsensitive
| Whether this mod is [[EMP-sensitive]].
| yes/no
|-
! realitydistortion
| Whether this mod is [[Reality distortion]]-based.
| yes/no
|-
|-
! value
! value
Line 138: Line 239:
<pre><nowiki>
<pre><nowiki>
{{Mod
{{Mod
| title     =
| title             =
| type       =
| type               =
| id         =
| id                 =
| reliconly  =
| rarity            =
| rarity    =
| tinkerable        =
| tinkerable =
| canautotinker      =  
| tinkertier =
| tinkertier         =
| value     =
| nativetier        =
| desc       =
| value             =
| difficulty        =
| complexity        =
| chargeused        =
| powerloadsensitive =
| empsensitive      =
| realitydistortion  =
| desc               =
| restriction        =
}}</nowiki></pre>
}}</nowiki></pre>
</noinclude>
</noinclude>
321

edits