Template:Infobox item: Difference between revisions
Template page
More actions
Content deleted Content added
No edit summary |
VertopolkaLF (talk | contribs) m added "icon" class to icon to fix the styles |
||
| (45 intermediate revisions by 4 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|}}} |
|||
|Nature = [[File:Icon Loot Nature.png|20px|link=]] |
|||
|Trinket = [[File:ItemCategory_Trinket.png|20px|link=]] |
|||
|Recyclable = [[File:ItemCategory_Material.png|20px|link=]] |
|||
|Misc = [[File:ItemCategory_Misc.png|20px|link=]] |
|||
|Basic Material = [[File:ItemCategory_Material.png|20px|link=]] |
|||
|Topside Material = [[File:ItemCategory_Material.png|20px|link=]] |
|||
|Refined 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-Utility = [[File:ItemCategory_Utility.png|20px|link=]] |
|||
|Quick Use-Gadget = [[File:ItemCategory_Gadget.png|20px|link=]] |
|||
|Quick Use-Grenade = [[File:ItemCategory_Grenade.png|20px|link=]] |
|||
|Quick Use-Trap = [[File:ItemCategory_Trap.png|20px|link=]] |
|||
|Ammunition-Heavy = [[File:Ammo Heavy.png|20px|link=]] |
|||
|Ammunition-Medium = [[File:Ammo Medium.png|20px|link=]] |
|||
|Ammunition-Light = [[File:Ammo Light.png|20px|link=]] |
|||
|Ammunition-Shotgun = [[File:Ammo Shotgun.png|20px|link=]] |
|||
|Ammunition-Energy = [[File:Ammo Energy.png|20px|link=]] |
|||
|Ammunition-Launcher = [[File:Ammo Launcher.png|20px|link=]] |
|||
|Key = [[File:ItemCategory_Key.png|20px|link=]] |
|||
|Shield = [[File:ItemCategory_Shield.png|20px|link=]] |
|||
|#default = |
|||
}} |
|||
|rowclass1 = data-tag icon {{#switch: {{{rarity|}}} |
|||
|= data-tag-common |
|||
|Common = data-tag-common |
|||
|Uncommon = data-tag-uncommon |
|||
|Rare = data-tag-rare |
|||
|Epic = data-tag-epic |
|||
|Legendary = data-tag-legendary |
|||
|}} |
|||
|data2 = {{{ |
|data2 = {{#invoke:String|replace|{{{type|}}}|%-.*||plain=false}} |
||
|rowclass2 = data-tag {{#switch: {{{rarity|}}} |
|rowclass2 = data-tag {{#switch: {{{rarity|}}} |
||
|= data-tag-common |
|||
|Common = data-tag-common |
|||
|Uncommon = data-tag-uncommon |
|||
|Rare = data-tag-rare |
|||
|Epic = data-tag-epic |
|||
|Legendary = data-tag-legendary |
|||
|}} |
|||
|data3 = {{{rarity|}}} |
|||
|rowclass3 = data-tag {{#switch: {{{rarity|}}} |
|||
|Common = data-tag-common |
|Common = data-tag-common |
||
|Uncommon = data-tag-uncommon |
|Uncommon = data-tag-uncommon |
||
| Line 21: | Line 72: | ||
|rowclass5 = data-quote infobox-quote infobox-col1 |
|rowclass5 = data-quote infobox-quote infobox-col1 |
||
| |
|data6 = {{{warning|}}} |
||
|rowclass6 = data-warning infobox-data infobox-col1 |
|||
|data6 = {{{location|}}} |
|||
|rowclass6 = data-location infobox-data infobox-col1 |
|||
|label7 = |
|label7 = Can Be Found In |
||
|data7 = {{{ |
|data7 = {{#if:{{{location|}}}|{{#invoke:String|replace |
||
| source = {{{location|}}}<br> |
|||
|rowclass7 = data-type infobox-data infobox-col1 |
|||
| 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 38: | 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 49: | Line 104: | ||
|rowclass12 = data-shield infobox-data infobox-col1 |
|rowclass12 = data-shield infobox-data infobox-col1 |
||
|label13 = |
|label13 = Stamina |
||
|data13 = {{{ |
|data13 = {{{stamina|}}} |
||
|rowclass13 = data- |
|rowclass13 = data-stamina infobox-data infobox-col1 |
||
|label14 = |
|label14 = ARC Stun |
||
|data14 = {{{ |
|data14 = {{{arcstun|}}} |
||
|rowclass14 = data- |
|rowclass14 = data-arcstun infobox-data infobox-col1 |
||
|label15 = |
|label15 = Raider Stun |
||
|data15 = {{{ |
|data15 = {{{raiderstun|}}} |
||
|rowclass15 = data- |
|rowclass15 = data-raiderstun infobox-data infobox-col1 |
||
|label16 = |
|label16 = Damage |
||
|data16 = {{{ |
|data16 = {{{damage|}}} |
||
|rowclass16 = data- |
|rowclass16 = data-damage infobox-data infobox-col1 |
||
|label17 = |
|label17 = Per Second |
||
|data17 = {{{ |
|data17 = {{{persecond|}}} |
||
|rowclass17 = data- |
|rowclass17 = data-persecond infobox-data infobox-col1 |
||
|label18 = |
|label18 = Use Time |
||
|data18 = {{{ |
|data18 = {{{usetime|}}} |
||
|rowclass18 = data- |
|rowclass18 = data-usetime infobox-data infobox-col1 |
||
|label19 = Duration |
|||
|}}<templatestyles src="Template:Infobox/styles.css" /></includeonly> |
|||
|data19 = {{{duration|}}} |
|||
<noinclude> |
|||
|rowclass19 = data-duration infobox-data infobox-col1 |
|||
Example: |
|||
|label20 = Radius |
|||
{{Infobox items |
|||
|data20 = {{{radius|}}} |
|||
|image=Kettle-Level1.png |
|||
|rowclass20 = data-radius infobox-data infobox-col1 |
|||
|label21 = Range |
|||
|data21 = {{{range|}}} |
|||
|rowclass21 = data-range infobox-data infobox-col1 |
|||
|label22 = Recharge |
|||
|data22 = {{{recharge|}}} |
|||
|rowclass22 = data-recharge infobox-data infobox-col1 |
|||
|}}<templatestyles src="Template:Infobox/styles.css" /> |
|||
{{#ifeq:{{NAMESPACE}}|| |
|||
{{#switch: {{#invoke:String|replace|{{{type|}}}|%-.*||plain=false}} |
|||
|Nature = [[Category:Nature]] |
|||
|Trinket = [[Category:Trinket]] |
|||
|Recyclable = [[Category:Recyclable]] |
|||
|Misc = [[Category:Misc]] |
|||
|Basic Material = [[Category:Basic Material]] |
|||
|Topside Material = [[Category:Topside Material]] |
|||
|Refined Material = [[Category:Refined Material]] |
|||
|Advanced Material = [[Category:Advanced Material]] |
|||
|Quick Use = [[Category:Quick Use]] |
|||
|Ammunition = [[Category:Ammunition]] |
|||
|Key = [[Category:Key]] |
|||
|Augment = [[Category:Augment]] |
|||
|Shield = [[Category:Shield]] |
|||
|}} |
|||
}}</includeonly> |
|||
<noinclude> |
|||
<div style="width:min-content; float:left;">Example: |
|||
<pre> |
|||
|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 |
|||
] |
|||
</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=Junk |
|||
|type=Basic Material |
|||
|location=Electrical |
|||
|location=ARC<br>Exodus<br>Medical<br>Security<br>Electrical<br>Industrial<br>Old World<br>Residential<br>Mechanical<br>Commercial<br>Technological |
|||
|weight=0.3KG |
|||
|weight=0.3 |
|||
|sellprice=500 |
|sellprice=500 |
||
|stacksize=5 |
|stacksize=5 |
||
|healing=11 |
|healing=11 |
||
|shield=99 |
|shield=99 |
||
|stamina=all |
|||
|stun=8 |
|||
|arcstun=8 |
|||
|raiderstun=55 |
|||
|damage=7 |
|damage=7 |
||
|persecond=90 |
|persecond=90 |
||
| Line 95: | Line 211: | ||
|duration=forever |
|duration=forever |
||
|radius=1.7m |
|radius=1.7m |
||
|recharge=2s |
|||
}} |
|||
}}[[Category:Infobox templates]]</noinclude> |
|||
{{Infobox items |
|||
|name=Rubber Duck |
|||
|rarity=Common |
|||
|location=Electrical |
|||
|weight=0.3KG |
|||
|sellprice=500 |
|||
|stacksize=5 |
|||
|healing=11 |
|||
|shield=99 |
|||
|stun=8 |
|||
|damage=7 |
|||
|persecond=90 |
|||
|usetime=0.1 seconds |
|||
|duration=forever |
|||
|radius=1.7m |
|||
}} |
|||
</noinclude> |
|||
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 ]