Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox item: Difference between revisions

Template page
Content deleted Content added
Dread (talk | contribs)
No edit summary
m added "icon" class to icon to fix the styles
 
(23 intermediate revisions by 3 users not shown)
Line 4: Line 4:


|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|348px]]|}}
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|348px]]|}}
|imagerowclass1 = infobox-image
|imagerowclass1 = infobox-image {{#switch: {{{rarity|}}}
|Common = gradient-common
|Uncommon = gradient-uncommon
|Rare = gradient-rare
|Epic = gradient-epic
|Legendary = gradient-legendary
|{{{rarity|}}} = gradient-common <!--else-->
|}}


|data1 = {{#switch: {{{type|}}}
|data1 = {{#switch: {{{type|}}}
|Nature = [[File:Icon_Nature.png|20px|link=]]
|Nature = [[File:Icon Loot Nature.png|20px|link=]]
|Trinket = [[File:ItemCategory_Trinket.png|20px|link=]]
|Trinket = [[File:ItemCategory_Trinket.png|20px|link=]]
|Recyclable = [[File:ItemCategory_Material.png|20px|link=]]
|Recyclable = [[File:ItemCategory_Material.png|20px|link=]]
Line 16: Line 23:
|Advanced Material = [[File:ItemCategory_Material.png|20px|link=]]
|Advanced Material = [[File:ItemCategory_Material.png|20px|link=]]
|Quick Use-Regen = [[File:ItemCategory_Regenerative.png|20px|link=]]
|Quick Use-Regen = [[File:ItemCategory_Regenerative.png|20px|link=]]
|Quick Use-Tool = [[File:ItemCategory_Tool.png|20px|link=]]
|Quick Use-Utility = [[File:ItemCategory_Utility.png|20px|link=]]
|Quick Use-Gadget = [[File:ItemCategory_Gadget.png|20px|link=]]
|Quick Use-Gadget = [[File:ItemCategory_Gadget.png|20px|link=]]
|Quick Use-Grenade = [[File:ItemCategory_Grenade.png|20px|link=]]
|Quick Use-Grenade = [[File:ItemCategory_Grenade.png|20px|link=]]
Line 27: Line 34:
|Ammunition-Launcher = [[File:Ammo Launcher.png|20px|link=]]
|Ammunition-Launcher = [[File:Ammo Launcher.png|20px|link=]]
|Key = [[File:ItemCategory_Key.png|20px|link=]]
|Key = [[File:ItemCategory_Key.png|20px|link=]]
|Augment = [[File:ItemCategory_Augment.png|20px|link=]]
|Shield = [[File:ItemCategory_Shield.png|20px|link=]]
|Shield = [[File:ItemCategory_Shield.png|20px|link=]]
|#default =
|Modification-Light-Mag = [[File:Mods_Light-Mag.png|20px|link=]]
}}
|Modification-Medium-Mag = [[File:Mods_Medium-Mag.png|20px|link=]]
|Modification-Heavy-Mag = [[File:Mods_Heavy-Mag.png|20px|link=]]
|Modification-Shotgun-Mag = [[File:Mods_Shotgun-Mag.png|20px|link=]]
|Modification-Stock = [[File:Mods_Stock.png|20px|link=]]
|Modification-Grip = [[File:Mods_Grip.png|20px|link=]]
|Modification-Muzzle = [[File:Mods_Muzzle.png|20px|link=]]
|Modification-Shotgun-Muzzle = [[File:Mods_Shotgun-Muzzle.png|20px|link=]]
|}}


|rowclass1 = data-tag {{#switch: {{{rarity|}}}
|rowclass1 = data-tag icon {{#switch: {{{rarity|}}}
|= data-tag-common
|Common = data-tag-common
|Common = data-tag-common
|Uncommon = data-tag-uncommon
|Uncommon = data-tag-uncommon
Line 49: Line 49:
|data2 = {{#invoke:String|replace|{{{type|}}}|%-.*||plain=false}}
|data2 = {{#invoke:String|replace|{{{type|}}}|%-.*||plain=false}}
|rowclass2 = data-tag {{#switch: {{{rarity|}}}
|rowclass2 = data-tag {{#switch: {{{rarity|}}}
|= data-tag-common
|Common = data-tag-common
|Common = data-tag-common
|Uncommon = data-tag-uncommon
|Uncommon = data-tag-uncommon
Line 71: Line 72:
|rowclass5 = data-quote infobox-quote infobox-col1
|rowclass5 = data-quote infobox-quote infobox-col1


|label6 = Area
|data6 = {{{warning|}}}
|rowclass6 = data-warning infobox-data infobox-col1
|data6 = {{{location|}}}

|rowclass6 = data-location infobox-data infobox-col1
|label7 = Can Be Found In
|data7 = {{#if:{{{location|}}}|{{#invoke:String|replace
| source = {{{location|}}}<br>
| pattern = ([^<]+)(<br>?)
| replace = [[File:Icon Loot %1.png|20px|link=]] %1<br>
| plain = false
}}|}}
|rowclass7 = data-location infobox-data infobox-col1


|label8 = Weight
|label8 = Weight
|data8 = {{{weight|}}}
|data8 = {{Weight|{{{weight|}}}}}
|rowclass8 = data-weight infobox-data infobox-col1
|rowclass8 = data-weight infobox-data infobox-col1


Line 84: Line 93:


|label10 = Sell Price
|label10 = Sell Price
|data10 = {{{sellprice|}}}
|data10 = {{Price|{{{sellprice|}}}}}
|rowclass10 = data-sellprice infobox-data infobox-col1
|rowclass10 = data-sellprice infobox-data infobox-col1


Line 99: Line 108:
|rowclass13 = data-stamina infobox-data infobox-col1
|rowclass13 = data-stamina infobox-data infobox-col1


|label14 = Arc Stun
|label14 = ARC Stun
|data14 = {{{arcstun|}}}
|data14 = {{{arcstun|}}}
|rowclass14 = data-arcstun infobox-data infobox-col1
|rowclass14 = data-arcstun infobox-data infobox-col1
Line 137: Line 146:
|}}<templatestyles src="Template:Infobox/styles.css" />
|}}<templatestyles src="Template:Infobox/styles.css" />
{{#ifeq:{{NAMESPACE}}||
{{#ifeq:{{NAMESPACE}}||
{{#switch: {{{type|}}}
{{#switch: {{#invoke:String|replace|{{{type|}}}|%-.*||plain=false}}
|Nature = [[Category:Nature]]
|Nature = [[Category:Nature]]
|Trinket = [[Category:Trinket]]
|Recyclable = [[Category:Recyclable]]
|Recyclable = [[Category:Recyclable]]
|Misc = [[Category:Misc]]
|Basic Material = [[Category:Basic Material]]
|Topside Material = [[Category:Topside Material]]
|Topside Material = [[Category:Topside Material]]
|Basic Material = [[Category:Basic Material]]
|Refined Material = [[Category:Refined Material]]
|Advanced Material = [[Category:Advanced Material]]
|Advanced Material = [[Category:Advanced Material]]
|Refined Material = [[Category:Refined Material]]
|Quick Use = [[Category:Quick Use]]
|Trinket = [[Category:Trinket]]
|Ammunition = [[Category:Ammunition]]
|Key = [[Category:Key]]
|Key = [[Category:Key]]
|Misc = [[Category:Misc]]
|Augment = [[Category:Augment]]
|Shield = [[Category:Shield]]
|}}
|}}
}}</includeonly>
}}</includeonly>
<noinclude>
<noinclude>
<div style="width:min-content; float:left;">Example:
Example:
<pre>

|type accepts one of these:
{{Infobox items
[
|image=Kettle-Level1.png
Nature
Trinket
Recyclable
Misc
Basic Material
Topside Material
Refined Material
Advanced Material
Quick Use-Regen
Quick Use-Utility
Quick Use-Gadget
Quick Use-Grenade
Quick Use-Trap
Ammunition-Heavy
Ammunition-Medium
Ammunition-Light
Ammunition-Shotgun
Ammunition-Energy
Ammunition-Launcher
Key
]
</pre>
</div>
{{Infobox item
|image=Rubber Duck.png
|name=Rubber Duck
|name=Rubber Duck
|rarity=Common
|rarity=Common
|quote=This a rubber duck, it's made of rubber.
|quote=This a rubber duck, it's made of rubber.
|warning=YEET
|type=Basic Material
|type=Basic Material
|location=ARC<br>Exodus<br>Medical<br>Security<br>Electrical<br>Industrial<br>Old World<br>Residential<br>Mechanical<br>Commercial<br>Technological
|location=Electrical
|weight=0.3KG
|weight=0.3
|sellprice=500
|sellprice=500
|stacksize=5
|stacksize=5

Latest revision as of 03:12, 10 November 2025


Example:
|type accepts one of these:
[
Nature             
Trinket            
Recyclable         
Misc               
Basic Material     
Topside Material   
Refined Material   
Advanced Material  
Quick Use-Regen    
Quick Use-Utility     
Quick Use-Gadget   
Quick Use-Grenade  
Quick Use-Trap     
Ammunition-Heavy   
Ammunition-Medium  
Ammunition-Light   
Ammunition-Shotgun 
Ammunition-Energy  
Ammunition-Launcher
Key                           
]
Basic Material
Common
Rubber Duck
This a rubber duck, it's made of rubber.
YEET
Can Be Found In ARC
Exodus
Medical
Security
Electrical
Industrial
Old World
Residential
Mechanical
Commercial
Technological
Weight
0.3
Stack Size5
Sell Price
500
Healing11
Shield99
Staminaall
ARC Stun8
Raider Stun55
Damage7
Per Second90
Use Time0.1 seconds
Durationforever
Radius1.7m
Recharge2s