Template:Icon: Difference between revisions

From Subnautica Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{#switch:{{{1|{{PAGENAME}}}}}
{{#switch:{{{1|{{PAGENAME}}}}}

|Resources=
{{IconCreate
|icon=Resources
|width={{{width|128}}}
|bg = category
}}

|Basic Materials=
{{IconCreate
|icon=Basic Materials
|width={{{width|128}}}
|bg = category
}}

|Advanced Materials=
{{IconCreate
|icon=Advanced Materials
|width={{{width|128}}}
|bg = category
}}

|Electronics=
{{IconCreate
|icon=Electronics
|width={{{width|128}}}
|bg = category
}}

|Sustenance=
{{IconCreate
|icon=Sustenance
|width={{{width|128}}}
|bg = category
}}

|Cooked Food=
{{IconCreate
|icon=Cooked Food
|width={{{width|128}}}
|bg = category
}}

|Cured Food=
{{IconCreate
|icon=Cured Food
|width={{{width|128}}}
|bg = category
}}

|Water=
{{IconCreate
|icon=Water
|width={{{width|128}}}
|bg = category
}}

|Personal=
{{IconCreate
|icon=Personal
|width={{{width|128}}}
|bg = category
}}

|Equipment=
{{IconCreate
|icon=Equipment
|width={{{width|128}}}
|bg = category
}}

|Tools=
{{IconCreate
|icon=Tools
|width={{{width|128}}}
|bg = category
}}

|Deployables=
{{IconCreate
|icon=Deployables
|width={{{width|128}}}
|bg = category
}}

|Upgrades=
{{IconCreate
|icon=Upgrades
|width={{{width|128}}}
|bg = category
}}


|Advanced Wiring Kit=
|Advanced Wiring Kit=
Line 2,135: Line 2,226:
|icon=Wall-Mounted Foundation
|icon=Wall-Mounted Foundation
|width={{{width|128}}}
|width={{{width|128}}}
}}

|Water=
{{IconCreate
|icon=Water
|width={{{width|128}}}
|bg = none
}}
}}



Revision as of 06:47, 30 August 2020

1x1 default bg.png
Unknown Icon.png

Template used for pre-created icons using the {{IconCreate}} template.

Usage

Input:

{{IconCreate|icon=Flashlight|bg=normal|width=60|height=60}}

Output:

1x1 default bg.png
Flashlight Icon.png
  • icon: Desired item icon. Name should be according to exact in-game item name.
  • bg: Background color/size of icon. List of different backgrounds and corresponding template code can be found below. Defaults to normal blue 1x1 background.
  • width/height: Width and height of icon in pixels. Default is generally 128, height is equal to width unless defined specifically.

Backgrounds