Difference between revisions of "Template:MapCard/doc"
Jump to navigation
Jump to search
(Created page with "'''Template:MapCard''' displays a 250x137px rectangular card containing a map image. == Usage == <code><nowiki>{{MapCard |</nowiki>'''<nowiki>map</nowiki>'''<nowiki>|</nowiki...") |
m (documentation about superscript) |
||
Line 6: | Line 6: | ||
*'''filename''' - file name of the map. Displayed upon hovering. All letters should be lowercase. | *'''filename''' - file name of the map. Displayed upon hovering. All letters should be lowercase. | ||
*'''image''' - optional, image of the map. Will override the image that is automatically shown by the '''map''' parameter. Should only be used if the image shown by the '''map''' parameter is not appropriate (e.g. shows an error, bad dimensions). Is not case-sensitive. | *'''image''' - optional, image of the map. Will override the image that is automatically shown by the '''map''' parameter. Should only be used if the image shown by the '''map''' parameter is not appropriate (e.g. shows an error, bad dimensions). Is not case-sensitive. | ||
+ | *'''superscript''' - optional, adds a superscript after the map name. To use, you must also include the '''image''' parameter. | ||
== Examples == | == Examples == | ||
Line 12: | Line 13: | ||
{{MapCard |Mojave|cp_mojave_b2}} | {{MapCard |Mojave|cp_mojave_b2}} | ||
{{box|break}} | {{box|break}} | ||
− | <code><nowiki>{{MapCard |Mojave|cp_mojave_b2|Reckoner.jpg}}</nowiki></code> | + | <code><nowiki>{{MapCard |Mojave|cp_mojave_b2|Reckoner.jpg|2}}</nowiki></code> |
− | {{MapCard |Mojave|cp_mojave_b2|reckoner.jpg}} | + | {{MapCard |Mojave|cp_mojave_b2|reckoner.jpg|2}} |
{{box|end}} | {{box|end}} |
Revision as of 11:27, 30 August 2022
Template:MapCard displays a 250x137px rectangular card containing a map image.
Usage
{{MapCard |map|filename|image}}
- map - name of the map. Displayed as the card's title/caption and image if no image parameter is entered. Is case-sensitive.
- filename - file name of the map. Displayed upon hovering. All letters should be lowercase.
- image - optional, image of the map. Will override the image that is automatically shown by the map parameter. Should only be used if the image shown by the map parameter is not appropriate (e.g. shows an error, bad dimensions). Is not case-sensitive.
- superscript - optional, adds a superscript after the map name. To use, you must also include the image parameter.