Editing Template:MapCard/doc
Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.
The system administrator who locked it offered this explanation: We are currently working on upgrading comp.tf. Edits will be locked for most of March 2025, or until further notice. For questions, please contact staff on the comp.tf Discord. I apologise for the inconvenience.
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 | + | '''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 | + | <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''' - | + | *'''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. | ||
| − | |||
== 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 | + | <code><nowiki>{{MapCard |Mojave|cp_mojave_b2|Reckoner.jpg}}</nowiki></code> |
| − | {{MapCard |Mojave|cp_mojave_b2|reckoner.jpg | + | {{MapCard |Mojave|cp_mojave_b2|reckoner.jpg}} |
{{box|end}} | {{box|end}} | ||