Template:Icon/sandbox: Difference between revisions
Jump to navigation
Jump to search
Documented new functionality
(Link support) |
(Documented new functionality) |
||
(One intermediate revision by the same user not shown) | |||
Line 3:
| 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={{{link|}}}|alt=Urban]]
| {{#ifexist: Image:Icon_{{{1|}}}.png ▼
| {{#ifexist: Image:
| [[File:
| ▼
▲| {{#ifexist: Image:{{{1|}}}.png
}}
▲ | [[File:{{{1|}}}.png|frameless|{{{size|16}}}px|link={{{link|}}}|{{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}|alt={{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}]]
▲ |
}}
}}{{#if: {{{text|}}} | {{{text|}}} | }}|title="{{#if: {{{text|}}} | {{{text|}}} | {{{1|}}} }}"}}</includeonly><noinclude>▼
▲{{#if: {{{text|}}} | {{{text|}}} | }}|title="{{#if: {{{text|}}} | {{{text|}}} | {{{1|}}} }}"}}</includeonly><noinclude>
Outputs an inline icon.
Line 44 ⟶ 42:
{{Icon|Urban}} Urban
=== Other icons ===
Files beginning with `Icon_` can be referenced by their name following that
<nowiki>{{Icon/sandbox|Cover|title=Uses cover|text=Uses Icon_Cover.png|size=24}}
{{Icon/sandbox|Nocover|title=Uses cover|text=Uses Icon_Nocover.png|size=24}}</nowiki>
{{Icon/sandbox|Cover|title=Uses cover|text=Uses Icon_Cover.png|size=24}}
{{Icon/sandbox|Nocover|title=Uses cover|text=Uses Icon_Nocover.png|size=24}}
Complete filename can also be provided to render any image
<nowiki>{{Icon/sandbox|Equipment_Icon_Bag_Tier1|title=Bag|link=Equipment#Bag|size=62}}</nowiki>
{{Icon/sandbox|Equipment_Icon_Bag_Tier1|title=Bag|link=Equipment#Bag|size=62}}
</noinclude>
|