Template:Icon/sandbox: Difference between revisions
Documented new functionality
mNo edit summary |
(Documented new functionality) |
||
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]]
| [[File:Icon_{{{1|}}}.png|frameless|{{{size|16}}}px|link={{{link|}}}|{{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}|alt={{#if: {{{title|}}} | {{{title|}}} | {{{1|}}} }}]]▼
▲}}{{#ifexist: Image:Icon_{{{1|}}}.png
| {{#ifexist: Image:{{{1|}}}.png ▼
▲| [[File:Icon_{{{1|}}}.png|frameless|{{{size|16}}}px|link={{{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|}}} }}]]▼
▲| {{#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>
Line 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>
|