Template:I: Difference between revisions
From Heterodontosaurus Balls
STILL DIDNT WORK OUT 😢😢😢 Tags: Manual revert Reverted |
im turning it off |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[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>[[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": { | "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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Icon Name | 1 | The name of the icon, without File: or -icon.png | String | required |
