Template:I: Difference between revisions

From Heterodontosaurus Balls
I think I've tried everything at this point Undo revision 33305 by Heterodontosaurus (talk)
Tag: Undo
Carbon (talk | contribs)
im turning it off
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:{{#if:{{{setname|}}}|{{{setname|}}}|{{#if:{{{1|}}}|{{{1|}}}|404}}-icon{{#if:{{{2|}}}|&nbsp;{{{2|}}}|}}}}.png]]{{#if:{{{link|}}}|&nbsp;[[{{{1|}}}{{#if:{{{2|}}}|&nbsp;{{{2|}}}|}}|{{{1|}}}]]|}}<noinclude>[[Category:Templates]]<templatedata>
<includeonly>[[File:{{#if:{{{setname|}}}|{{{setname|}}}|{{#if:{{{1|}}}|{{{1|}}}|404}}-icon{{#if:{{{2|}}}|&nbsp;{{{2|}}}|}}}}.png]]{{#if:{{{link|}}}|&nbsp;[[{{{1|}}}{{#if:{{{2|}}}|&nbsp;{{{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": {
"params": {
Line 5: Line 16:
"label": "Icon Name",
"label": "Icon Name",
"description": "The name of the icon, without File: or -icon.png",
"description": "The name of the icon, without File: or -icon.png",
"required": true
"required": true,
"type": "string"
}
}
}
},
"description": " "
}
}
</templatedata>
</templatedata>[[Category:Templates]]
</noinclude>
</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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Icon Name1

The name of the icon, without File: or -icon.png

Stringrequired