Editing Template:ItemBox/doc

Jump to navigation Jump to search
Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 13: Line 13:
<templatedata>
<templatedata>
{
{
"description": "",
"description": "Renders a Deadlock shop item card.",
"params": {
"params": {
"itemName": {
"itemName": {
"label": "Item name",
"description": "Item name; keys into Module:ItemData. Positional.",
"description": "Item name; keys into Module:ItemData. Positional.",
"type": "string",
"type": "string",
Line 23: Line 24:
},
},
"size": {
"size": {
"label": "Size",
"description": "Scales the whole card. 1 = default (80px wide), 1.5 = 150%, 0.75 = 75%.",
"description": "Scales the whole card. 1 = default (80px wide), 1.5 = 150%, 0.75 = 75%.",
"type": "number",
"type": "number",
Line 29: Line 31:
},
},
"showTierTag": {
"showTierTag": {
"label": "Show tier tag",
"description": "Set to true to show the tier corner badge.",
"description": "Set to true to show the tier corner badge.",
"type": "boolean",
"suggestedvalues": ["true", "false"]
},
"lowGraphics": {
"description": "Set to true for pages that place many cards at once (the card navboxes). Swaps the paper texture to a cacheable overlay so scrolling stays smooth; the look is nearly identical.",
"type": "boolean",
"type": "boolean",
"suggestedvalues": ["true", "false"]
"suggestedvalues": ["true", "false"]
},
},
"overrideDisplayName": {
"overrideDisplayName": {
"label": "Override display name",
"description": "Replaces the name shown on the card.",
"description": "Replaces the name shown on the card.",
"type": "string",
"type": "string",
Line 44: Line 43:
},
},
"overrideTier": {
"overrideTier": {
"label": "Override tier",
"description": "Replaces the card's tier.",
"description": "Replaces the card's tier.",
"type": "number",
"type": "number",
Line 49: Line 49:
},
},
"overrideSlot": {
"overrideSlot": {
"description": "Replaces the card's background (type).",
"label": "Override slot",
"description": "Replaces the card's slot.",
"type": "string",
"type": "string",
"suggestedvalues": ["Weapon", "Vitality", "Spirit"]
"suggestedvalues": ["Weapon", "Vitality", "Spirit"]
},
},
"overrideIsActive": {
"overrideIsActive": {
"label": "Override active tag",
"description": "Forces the ACTIVE tag on or off.",
"description": "Forces the ACTIVE tag on or off.",
"type": "boolean",
"type": "boolean",
Line 59: Line 61:
},
},
"overrideIsImbue": {
"overrideIsImbue": {
"label": "Override imbue tag",
"description": "Forces the IMBUE tag on or off.",
"description": "Forces the IMBUE tag on or off.",
"type": "boolean",
"type": "boolean",
Line 64: Line 67:
},
},
"overrideLinkTooltip": {
"overrideLinkTooltip": {
"label": "Override tooltip source",
"description": "Page the hover tooltip reads its info from.",
"description": "Page the hover tooltip reads its info from.",
"type": "string",
"type": "string",
Line 69: Line 73:
},
},
"overrideLinkImage": {
"overrideLinkImage": {
"label": "Override image",
"description": "Page/file the icon image comes from.",
"description": "Page/file the icon image comes from.",
"type": "string",
"type": "string",
Line 74: Line 79:
},
},
"overrideLinkClick": {
"overrideLinkClick": {
"label": "Override click link",
"description": "Page the card links to when clicked.",
"description": "Page the card links to when clicked.",
"type": "string",
"type": "string",
Line 80: Line 86:
},
},
"paramOrder": [
"paramOrder": [
"itemName", "size", "showTierTag", "lowGraphics",
"itemName", "size", "showTierTag",
"overrideDisplayName", "overrideTier", "overrideSlot",
"overrideDisplayName", "overrideTier", "overrideSlot",
"overrideIsActive", "overrideIsImbue",
"overrideIsActive", "overrideIsImbue",
Line 131: Line 137:
{{ItemBox|Extended Magazine}}
{{ItemBox|Extended Magazine}}
{{ItemBox|Extended Magazine|size = 1.5}}
{{ItemBox|Extended Magazine|size = 1.5}}
=== Low graphics ===
For pages that place many cards at once. The paper texture becomes a single cacheable overlay so scrolling stays smooth; the look is nearly identical.
<pre>
{{ItemBox|Extra Health}}
{{ItemBox|Kinetic Dash}}
{{ItemBox|Metal Skin}}
{{ItemBox|Echo Shard}}
{{ItemBox|Extra Health|lowGraphics = true}}
{{ItemBox|Kinetic Dash|lowGraphics = true}}
{{ItemBox|Metal Skin|lowGraphics = true}}
{{ItemBox|Echo Shard|lowGraphics = true}}
</pre>
'''Normal'''<br>
{{ItemBox|Extra Health}}
{{ItemBox|Kinetic Dash}}
{{ItemBox|Metal Skin}}
{{ItemBox|Echo Shard}}
'''Low graphics'''<br>
{{ItemBox|Extra Health|lowGraphics = true}}
{{ItemBox|Kinetic Dash|lowGraphics = true}}
{{ItemBox|Metal Skin|lowGraphics = true}}
{{ItemBox|Echo Shard|lowGraphics = true}}


=== Overrides ===
=== Overrides ===
Line 167: Line 146:
{{ItemBox|Recharging Rush|overrideIsActive = true}}
{{ItemBox|Recharging Rush|overrideIsActive = true}}
{{ItemBox|Alchemical Fire|overrideIsImbue = true}}
{{ItemBox|Alchemical Fire|overrideIsImbue = true}}
{{ItemBox|Bullet Lifesteal|overrideLinkClick = Heroes}}
{{ItemBox|Bullet Lifesteal|overrideLinkClick = Bullet_Lifesteal_(item)}}
</pre>
</pre>
{{ItemBox|High-Velocity Rounds|overrideDisplayName = Test Name}}
{{ItemBox|High-Velocity Rounds|overrideDisplayName = Test Name}}
Line 174: Line 153:
{{ItemBox|Recharging Rush|overrideIsActive = true}}
{{ItemBox|Recharging Rush|overrideIsActive = true}}
{{ItemBox|Alchemical Fire|overrideIsImbue = true}}
{{ItemBox|Alchemical Fire|overrideIsImbue = true}}
{{ItemBox|Bullet Lifesteal|overrideLinkClick = Heroes}}
{{ItemBox|Bullet Lifesteal|overrideLinkClick = Bullet_Lifesteal_(item)}}


== References ==
== References ==
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template