Editing Template:MapCard/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.

Latest revision Your text
Line 1: Line 1:
'''Template:MapCard''' displays a 152x86px rectangular card containing a map image. For a smaller 100x56px image, you can use [[Template:MapCardSmall|MapCardSmall]].
+
'''Template:MapCard''' displays a 250x137px rectangular card containing a map image.
  
 
== Usage ==
 
== Usage ==
<code><nowiki>{{MapCard |</nowiki>'''<nowiki>map</nowiki>'''<nowiki>|</nowiki>'''<nowiki>filename</nowiki>'''<nowiki>|</nowiki>'''<nowiki>image</nowiki>'''<nowiki>|</nowiki>'''<nowiki>superscript</nowiki>'''<nowiki>}}</nowiki></code>
+
<code><nowiki>{{MapCard |</nowiki>'''<nowiki>map</nowiki>'''<nowiki>|</nowiki>'''<nowiki>filename</nowiki>'''<nowiki>|</nowiki>'''<nowiki>image</nowiki>'''<nowiki>}}</nowiki></code>
 
*'''map''' - name of the map. Displayed as the card's title/caption and image if no '''image''' parameter is entered. Is case-sensitive.
 
*'''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.  
+
*'''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.
 
*'''superscript''' - optional, adds a superscript after the map name. To use, you must also include the '''image''' parameter.
Line 10: Line 10:
 
== Examples ==
 
== Examples ==
 
{{box|start|padding=8em}}
 
{{box|start|padding=8em}}
<code><nowiki>{{MapCard |Mojave}}</nowiki></code>
+
<code><nowiki>{{MapCard |Mojave|cp_mojave_b2}}</nowiki></code>
{{MapCard |Mojave}}
+
{{MapCard |Mojave|cp_mojave_b2}}
 
{{box|break}}
 
{{box|break}}
 
<code><nowiki>{{MapCard |Mojave|cp_mojave_b2|Reckoner.jpg|2}}</nowiki></code>
 
<code><nowiki>{{MapCard |Mojave|cp_mojave_b2|Reckoner.jpg|2}}</nowiki></code>
 
{{MapCard |Mojave|cp_mojave_b2|reckoner.jpg|2}}
 
{{MapCard |Mojave|cp_mojave_b2|reckoner.jpg|2}}
 
{{box|end}}
 
{{box|end}}

Please note that all contributions to comp.tf may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see comp.tf:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page: