Difference between revisions of "Template:MapCard"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
|+'''[[{{{1|}}}]]''' | |+'''[[{{{1|}}}]]''' | ||
| class="comptf-cardbg mapcard-img" | [[File:{{#if:{{{3|}}}|{{{3|}}}|{{#ifexist:File:{{{1|}}}.jpg|{{{1|}}}.jpg|{{#ifexist:File:{{{1|}}}.png|{{{1|}}}.png}}}}}}|center|200px|link={{{1|}}}]] | | class="comptf-cardbg mapcard-img" | [[File:{{#if:{{{3|}}}|{{{3|}}}|{{#ifexist:File:{{{1|}}}.jpg|{{{1|}}}.jpg|{{#ifexist:File:{{{1|}}}.png|{{{1|}}}.png}}}}}}|center|200px|link={{{1|}}}]] | ||
− | <div class="comptf-cardfg" style="display:none; position:absolute; bottom:1px; right:1px; left:1px; background-color:rgba(249,249,249,0.9); padding-bottom:1px"><small> | + | <div class="comptf-cardfg" style="display:none; position:absolute; bottom:1px; right:1px; left:1px; background-color:rgba(249,249,249,0.9); padding-bottom:1px"><small><code>{{{2|}}}</code></small></div> |
|}</includeonly><noinclude>{{Documentation}}[[Category:Template]][[Category:Templates]]</noinclude> | |}</includeonly><noinclude>{{Documentation}}[[Category:Template]][[Category:Templates]]</noinclude> |
Revision as of 11:17, 13 May 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.