Template:MinimapIcon
From Cassette Beasts
Revision as of 18:02, 30 November 2024 by Mezzodrinker (talk | contribs) (Refactor parameters list; Change default vertical alignment to middle)
Note: A list of all available minimap icons can be found under Category:Minimap Icons
Parameters
- 1
- The minimap icon to show. Will be passed on to Template:MinimapIconFile as-is.
- 2
- (optional, defaults to 16px)
The resizing option. Will only be used if thesize
parameter is not used. - See the MediaWiki help page for details.
- border
- (optional, defaults to false)
Whether to add a small grey border to the image. Usey
,1
,yes
, ortrue
to enable; for all other values, the border is disabled. - frame
- (optional, defaults to false)
How to display the image. Usey
,1
,yes
, ortrue
to use a frame;n
,0
,no
, orfalse
to not use a frame; orthumb
, orthumbnail
for a thumbnail frame. - See the MediaWiki help page for details.
- size
- (optional)
The resizing option. Takes priority over the positional parameter #2. - See the MediaWiki help page for details.
- halign
- (optional, defaults to showing the image inline)
The horizontal alignment. Usenone
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. - See the MediaWiki help page for details.
- valign
- (optional, defaults to middle)
The vertical alignment. - See the MediaWiki help page for details.
- link
- (optional)
The page or external link the image should link to. Leave empty to prevent adding a link. - alt
- (optional, defaults to the positional parameter #1)
The alternative text for screen readers or if the image can't be displayed. - title
- (optional, defaults to the positional parameter #1) The text that should be displayed when hovering the mouse over the image.
Examples
{{MinimapIcon|Campsite}}
→{{MinimapIcon|Miniboss|64px}}
→{{MinimapIcon|Station|frame=yes|valign=sup|link=Category:Mer-Line_stations}}
→