Template:I: Difference between revisions
From Heterodontosaurus Balls
No edit summary |
im turning it off |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>[[File:{{ | <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== | ==Syntax== | ||
| Line 22: | Line 22: | ||
"description": " " | "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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Icon Name | 1 | The name of the icon, without File: or -icon.png | String | required |
