Difference between revisions of "Template:MapCard"

From comp.tf
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
<includeonly><div class="teamcard" style="position:relative; width:250px; height:137px;">
 
<includeonly><div class="teamcard" style="position:relative; width:250px; height:137px;">
 
<center>'''[[{{{1|}}}]]'''</center>
 
<center>'''[[{{{1|}}}]]'''</center>
{| class="wikitable logo mapcardinner" style="width: 250px; height: 143px;"
+
{| class="wikitable logo mapcardtable" style="width: 250px; height: 143px;"
 
|-
 
|-
 
  | <div style="background-color:white; height:2px;"></div>[[File:{{#if:{{{3|}}}|{{{3|}}}|{{#ifexist:File:{{{1|}}}.jpg|{{{1|}}}.jpg|{{#ifexist:File:{{{1|}}}.png|{{{1|}}}.png}}}}}}|center|244x137px|link={{{1|}}}]]<div style="background-color:white; height:2px;"></div>
 
  | <div style="background-color:white; height:2px;"></div>[[File:{{#if:{{{3|}}}|{{{3|}}}|{{#ifexist:File:{{{1|}}}.jpg|{{{1|}}}.jpg|{{#ifexist:File:{{{1|}}}.png|{{{1|}}}.png}}}}}}|center|244x137px|link={{{1|}}}]]<div style="background-color:white; height:2px;"></div>
 
|}
 
|}
{| class="wikitable list mapcardinner" style="width: 250px; height: 143px; background-color:rgba(0,0,0,0);"  
+
{| class="wikitable list mapcardtable" style="width: 250px; height: 143px; background-color:rgba(0,0,0,0);"  
 
|-
 
|-
 
  | style="font-size:0.875em; text-align:center; border:hidden;" | [[File:MapCardClear.png|center|link={{{1|}}}]]<div style="margin-top:1px;">[[File:MapCardBlock.png|center|link={{{1|}}}]]</div><div style="margin-top:-18px;">''{{{2|}}}''</div>
 
  | style="font-size:0.875em; text-align:center; border:hidden;" | [[File:MapCardClear.png|center|link={{{1|}}}]]<div style="margin-top:1px;">[[File:MapCardBlock.png|center|link={{{1|}}}]]</div><div style="margin-top:-18px;">''{{{2|}}}''</div>

Revision as of 10:41, 31 October 2016

(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
MapCardClear.png
MapCardBlock.png
'


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

Mojave
MapCardClear.png
MapCardBlock.png
cp_mojave_b2