Template:Icon/doc: Difference between revisions

From Subnautica Wiki
(Created page with "Template used for pre-created icons using the <nowiki>{{IconCreate}}</nowiki> template. ==Backgrounds== * none = No Background * normal = 1x1 blue (Default) * 1x2 = 1x2 blue ...")
 
m (6 revisions imported: importing from Below Zero wiki)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
Template used for pre-created icons using the <nowiki>{{IconCreate}}</nowiki> template.
Template used for pre-created icons using the <nowiki>{{IconCreate}}</nowiki> template.

==Usage==
Input:
<pre><nowiki>{{IconCreate|icon=Flashlight|bg=normal|width=60|height=60}}</nowiki></pre>

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

* 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==
==Backgrounds==
* none = No Background
* none = No Background
* normal = 1x1 blue (Default)
* [[:File:1x1 default bg.png|normal = 1x1 blue (Default)]]
* 1x2 = 1x2 blue
* [[:File:1x2 default bg.png|1x2 = 1x2 blue]]
* 2x2 = 2x2 blue
* [[:File:2x2 default bg.png|2x2 = 2x2 blue]]
* 3x3 = 3x3 blue
* [[:File:3x3 default bg.png|3x3 = 3x3 blue]]
* 3x2 = 3x2 blue
* [[:File:3x2 default bg.png|3x2 = 3x2 blue]]
* 2x3 = 2x3 blue
* [[:File:2x3 default bg.png|2x3 = 2x3 blue]]
* 4x4 = 4x4 blue
* [[:File:4x4 default bg.png|4x4 = 4x4 blue]]
* plant = 1x1 deep blue (aquatic plant)
* [[:File:1x1 aquatic plant bg.png|plant = 1x1 deep blue (aquatic plant)]]
* 2x2 plant = 2x2 deep blue (aquatic plant)
* [[:File:1x2 aquatic plant bg.png|1x2 plant = 1x2 deep blue (aquatic plant)]]
* [[:File:2x2 aquatic plant bg.png|2x2 plant = 2x2 deep blue (aquatic plant)]]
* green = 1x1 green (land plant)
* 1x2 green = 1x2 green (land plant)
* [[:File:1x1 land plant bg.png|green = 1x1 green (land plant)]]
* 2x2 green = 2x2 green (land plant)
* [[:File:1x2 land plant bg.png|1x2 green = 1x2 green (land plant)]]
* [[:File:2x2 land plant bg.png|2x2 green = 2x2 green (land plant)]]
* [[:File:1x1 prawn arm bg.png|purple = 1x1 purple (prawn arm)]]

Latest revision as of 13:47, 6 August 2021

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