Template:MinimapIcon: Difference between revisions
From Cassette Beasts
Mezzodrinker (talk | contribs) m Remove newlines between file options |
Mezzodrinker (talk | contribs) Add named parameter "title" |
||
| Line 15: | Line 15: | ||
| false = frameless | | false = frameless | ||
| {{{frame}}} | | {{{frame}}} | ||
}}|{{{size|{{{2|16px}}}}}}|{{{halign|}}}|{{{valign|baseline}}}|link={{{link|}}}|alt={{{alt|{{{1}}}}}}]]</includeonly><noinclude>'''Note:''' A list of all available minimap icons can be found under [[:Category:Minimap Icons]] | }}|{{{size|{{{2|16px}}}}}}|{{{halign|}}}|{{{valign|baseline}}}|link={{{link|}}}|alt={{{alt|{{{1}}}}}}|{{{title|{{{1}}}}}}]]</includeonly><noinclude>'''Note:''' A list of all available minimap icons can be found under [[:Category:Minimap Icons]] | ||
== Positional Parameters == | == Positional Parameters == | ||
| Line 45: | Line 45: | ||
===== alt ===== | ===== alt ===== | ||
: ''(optional)'' The alternative text for screen readers or if the image can't be displayed. Defaults to the [[#1|positional parameter 1]]. | : ''(optional)'' The alternative text for screen readers or if the image can't be displayed. Defaults to the [[#1|positional parameter 1]]. | ||
===== title ===== | |||
: ''(optional)'' The text that should be displayed when hovering the mouse over the image. Defaults to the [[#1|positional parameter 1]]. | |||
== Examples == | == Examples == | ||
Revision as of 23:01, 28 November 2024
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
16pxand will only be used if thesizeparameter is not used.
Named Parameters
border
- (optional) Whether to add a small grey border to the image. Use
y,1,yes, ortrueto enable; for all other values, the border is disabled (the default).
frame
- (optional) How to display the image. Use
y,1,yes, ortrueto use a frame;n,0,no, orfalseto not use a frame (the default); orthumb, orthumbnailfor 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
noneto prevent text from flowing around the image;centerto prevent text flowing around and centre the image;leftto align the image left;rightto 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.
title
- (optional) The text that should be displayed when hovering the mouse over the image. Defaults to the positional parameter 1.

