Template:MinimapIcon
From Cassette Beasts
Revision as of 22:54, 28 November 2024 by Mezzodrinker (talk | contribs) (Created page with "<includeonly>File:{{MinimapIconFile|{{{1}}}}} |{{#switch: {{{border|}}} | y | 1 | yes | true = border | }} |{{#switch: {{{frame|false}}} | y | 1 | yes | tr...")
Note: A list of all available minimap icons can be found under Category:Minimap Icons
Positional Parameters
1
- The minimap icon to show. Will be passed on to Template:MinimapIconFile as-is.
2
- (optional) The resizing option. Defaults to
16px
and will only be used if thesize
parameter is not used.
Named Parameters
border
- (optional) Whether to add a small grey border to the image. Use
y
,1
,yes
, ortrue
to enable; for all other values, the border is disabled (the default).
frame
- (optional) How to display the image. Use
y
,1
,yes
, ortrue
to use a frame;n
,0
,no
, orfalse
to not use a frame (the default); orthumb
, orthumbnail
for a thumbnail frame. See the MediaWiki help page for details.
size
- (optional) The resizing option. Defaults to the positional parameter 2.
halign
- (optional) The horizontal alignment. Use
none
to prevent text from flowing around the image;center
to prevent text flowing around and centre the image;left
to align the image left;right
to align the image right; or leave empty to show the image inline with text (the default). See the MediaWiki help page for details.
valign
- (optional) The vertical alignment. See the MediaWiki help page for details. Defaults to
baseline
.
link
- (optional) The page or external link the image should link to. Leave empty to prevent adding a link (the default).
alt
- (optional) The alternative text for screen readers or if the image can't be displayed. Defaults to the positional parameter 1.
Examples
{{MinimapIcon|Campsite}}
→ [[File:Campsite icon.png
| |frameless |16px | |baseline |link= |alt=Campsite ]]
{{MinimapIcon|Miniboss|64px}}
→ [[File:Minimap Icon Miniboss.png
| |frameless |64px | |baseline |link= |alt=Miniboss ]]
{{MinimapIcon|Station|frame=yes|valign=sup|link=Category:Mer-Line_stations}}
→ [[File:Minimap Icon Station.png
| |frame |16px | |sup |link=Category:Mer-Line_stations |alt=Station ]]