Difference between revisions of "Template:MapCard"

From comp.tf
Jump to navigation Jump to search
m
Line 1: Line 1:
<includeonly><div class="mapcard-wrapper" style="display:inline-block; margin-top:8px;">
+
<includeonly><div class="mapcard-wrapper" style="display:inline-block; margin:1em 0;">
 
<center>'''[[{{{1|}}}]]'''</center>
 
<center>'''[[{{{1|}}}]]'''</center>
 
<div class="mapcard" style="position:relative; border:1px solid #aaa; padding:2px; background-color:white;">
 
<div class="mapcard" style="position:relative; border:1px solid #aaa; padding:2px; background-color:white;">

Revision as of 05:40, 18 April 2020

(view - edit) Documentation

Template:MapCard displays a 152x86px rectangular card containing a map image. For a smaller 100x56px image, you can use MapCardSmall.

Usage

{{MapCard |map|filename|image|superscript}}

  • map - name of the map. Displayed as the card's title/caption and image if no image parameter is entered. Is case-sensitive.
  • filename - optional, 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.

Examples

{{MapCard |Mojave}}

Mojave
Mojave.jpg

{{MapCard |Mojave|cp_mojave_b2|Reckoner.jpg|2}}

Mojave
Reckoner.jpg