Template:Icon/sandbox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(Link support) |
||
Line 1: | Line 1: | ||
<includeonly>{{#tag:span|{{#switch: {{lc: {{{1|}}}}} |
<includeonly>{{#tag:span|{{#switch: {{lc: {{{1|}}}}} |
||
| indoor|indoors = [[File:Icon location indoors.png|frameless|{{{size|16}}}px|link=|alt=Indoor]] |
| indoor|indoors = [[File:Icon location indoors.png|frameless|{{{size|16}}}px|link={{{link|}}}|alt=Indoor]] |
||
| outdoor|outdoors = [[File:Icon location outdoors.png|frameless|{{{size|16}}}px|link=|alt=Outdoor]] |
| outdoor|outdoors = [[File:Icon location outdoors.png|frameless|{{{size|16}}}px|link={{{link|}}}|alt=Outdoor]] |
||
| urban|city|town|street = [[File:Icon location city.png|frameless|{{{size|16}}}px|link=|alt=Urban]] |
| urban|city|town|street = [[File:Icon location city.png|frameless|{{{size|16}}}px|link={{{link|}}}|alt=Urban]] |
||
| |
| |
||
}} |
}} |
||
{{#ifexist: Image:Icon_{{{1|}}}.png |
{{#ifexist: Image:Icon_{{{1|}}}.png |
||
| [[File:Icon_{{{1|}}}.png|frameless|{{{size|16}}}px|link=|{{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}|alt={{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}]] |
| [[File:Icon_{{{1|}}}.png|frameless|{{{size|16}}}px|link={{{link|}}}|{{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}|alt={{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}]] |
||
| {{#ifexist: Image:{{{1|}}}.png |
| {{#ifexist: Image:{{{1|}}}.png |
||
| [[File:{{{1|}}}.png|frameless|{{{size|16}}}px|link=|{{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}|alt={{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}]] |
| [[File:{{{1|}}}.png|frameless|{{{size|16}}}px|link={{{link|}}}|{{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}|alt={{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}]] |
||
| |
| |
||
}} |
}} |
||
Line 18: | Line 18: | ||
== Function == |
== Function == |
||
<nowiki>{{Icon|code[|text=][|title=][|size=16]}}</nowiki> |
<nowiki>{{Icon|code[|text=][|title=][|link=][|size=16]}}</nowiki> |
||
=== Text === |
=== Text === |
Revision as of 06:25, 3 July 2021
Outputs an inline icon.
Function
{{Icon|code[|text=][|title=][|link=][|size=16]}}
Text
Where it makes sense for attached text to be wrapped into the same span tag as the icon:
This icon wraps additional {{Icon|Indoor|text=arbitrary text}} into its own span
This icon wraps additional arbitrary text into its own span
Icon size
Use optional size parameter to specify icon size in pixels if needed:
{{Icon|Indoor|size=32}}
Icon names reference
Location types
Indoor
Outdoor
Urban