Template:I: Difference between revisions
From Heterodontosaurus Balls
mNo edit summary |
im turning it off |
||
| (32 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
[[File:{{#if:{{{setname|}}}|{{{setname|}}}|{{#if:{{{1|}}}|{{{1|}}}| | <includeonly>[[File:{{#if:{{{setname|}}}|{{{setname|}}}|{{#if:{{{1|}}}|{{{1|}}}|404}}-icon{{#if:{{{2|}}}| {{{2|}}}|}}}}.png]]{{#if:{{{link|}}}| [[{{{1|}}}{{#if:{{{2|}}}| {{{2|}}}|}}|{{{1|}}}]]|}}<noinclude>[[Category:Templates]]<templatedata></includeonly><noinclude>'''I''' stands for '''Icon''', originally named '''GetIcon'''. This [[:Category:Templates|template]] simplifies inserting an icon, turning the <nowiki>[[File:<icon>-icon.png]] into the much shorter {{i|<icon>}}.</nowiki> All icons are expected to use this template, making it the most used template on the site. It only works with files with File: as a prefix and -icon.png as a suffix. | ||
==Syntax== | |||
<pre>{{i|<icon name>}}</pre> | |||
==Example== | |||
<pre>{{i|Poland}}</pre> | |||
{{i|Poland}} | |||
==Template Data== | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Icon Name", | |||
"description": "The name of the icon, without File: or -icon.png", | |||
"required": true, | |||
"type": "string" | |||
} | |||
}, | |||
"description": " " | |||
} | |||
</templatedata>[[Category:Templates]] | |||
</noinclude> | |||
Latest revision as of 22:17, 8 July 2026
I stands for Icon, originally named GetIcon. This template simplifies inserting an icon, turning the [[File:<icon>-icon.png]] into the much shorter {{i|<icon>}}. All icons are expected to use this template, making it the most used template on the site. It only works with files with File: as a prefix and -icon.png as a suffix.
Syntax
{{i|<icon name>}}
Example
{{i|Poland}}
Template Data
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Icon Name | 1 | The name of the icon, without File: or -icon.png | String | required |
