Sablon:Exclusive icons
This template uses Module:Exclusive, a script written in the Lua programming language. Please see wikipedia:Lua and mw:Extension:Scribunto to learn more about Lua. |
This template is i18n-ready, means it is easy to localize for different languages. Please see I18n & l10n for Templates to learn more. |
Returns the icons indicating the platforms for which an item is available. For displaying a link with eicons, use {{Exclusive icon link}}
.
You can use {{eicons/options}}
to change default value for some parameters.
Usage
Acceptable shortcut: {{eicons}}
- Unnamed Parameter 1
- Item name
- small= y/yes
- Use small=yes to make all of the icons smaller.
- link= y/yes
- Icons link to corresponding platform version pages. For performance and resoure reason, default is no link.
- invert=y
- Use this if you want icons to output the opposite of the exclusivity. Important note: this disables the Japanese Console version sensor.
- desktop/dsk=y/n, console/cns=y/n, japan/jas=y/n, mobile/mbl=y/n, old-gen/oldgen/old=y/n, 3DS/3ds=y/n
- Override options. Important note: these are evaluated after "invert".
Examples
{{eicons|Suspicious Looking Egg }} |
-> |
{{eicons|Suspicious Looking Egg | invert = y}} |
-> ![]() ![]() ![]() ![]() |
{{eicons|Soul of Blight |link = y}} |
-> ![]() |
{{eicons|Suspicious Looking Egg|small=y }} |
-> |
{{eicons|Crystal Work Bench }} |
-> ![]() ![]() |
{{eicons|Gold Butterfly }} |
-> ![]() ![]() ![]() |
{{eicons|Soul of Blight | invert = yes }} |
-> ![]() ![]() ![]() |
{{eicons|Work Bench}} |
-> (nothing, since Work Bench is on all versions) |
{{eicons|Dirt Block}} |
-> (nothing, since Dirt Block is on all versions) |
{{eicons|Dirt Block| mobile = y}} |
-> ![]() |
{{eicons|Dirt Block| old-gen = y | 3ds = y}} |
-> ![]() |
{{eicons| desktop = y | old-gen = y | mobile = y | console = y}} |
-> ![]() ![]() ![]() ![]() |
{{eicons| japan = y }} |
-> |
{{item|Stone Block}} {{eicons| desktop = y | old-gen = y | mobile = y | console = y}} |
-> ![]() ![]() ![]() ![]() ![]() |