Difference between revisions of "Template:Map"

From MechWarrior: Living Legends Wiki
Jump to: navigation, search
(Testing some whitespace issues)
m (Padding adjustments and added documentation)
Line 1: Line 1:
<includeonly>{| class="Map" style="border:1px solid #250b2d; text-align:left; font-size:9pt; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; margin-left: 10px;" cellpadding="1" cellspacing="0" rules="all" align="right"
+
<includeonly>{| class="Map" style="border:1px solid #250b2d; text-align:left; font-size:9pt; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; margin: 0px 0px 10px 10px;" cellpadding="4" cellspacing="1" rules="all" align="right"
 
! colspan="3" style="background:#2a2a2a; text-align:center; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; font-size:12pt" | {{PAGENAME}}
 
! colspan="3" style="background:#2a2a2a; text-align:center; width:{{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}; font-size:12pt" | {{PAGENAME}}
 
|-
 
|-
| colspan="3" style="text-align:center" | [[{{{Image}}} | {{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}]]
+
| colspan="3" style="text-align:center; padding:0" | [[{{{Image}}} | {{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}]]
 
|-
 
|-
 
{{#if: {{{Environment|}}} |
 
{{#if: {{{Environment|}}} |
Line 51: Line 51:
 
|-
 
|-
 
{{#if: {{{Map|}}} |
 
{{#if: {{{Map|}}} |
{{!}} colspan="3" style="text-align:center" {{!}} [[{{{Map}}} {{!}} {{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}]]
+
{{!}} colspan="3" style="text-align:center; padding:0" {{!}} [[{{{Map}}} {{!}} {{#if: {{{ImageSize|}}}|{{{ImageSize}}}px|350px}}]]
 
|}}
 
|}}
 
|-
 
|-
|}
+
|}[[Category:Maps]]</includeonly>
[[Category:Maps]]</includeonly>
+
<noinclude>[[Category:Infoboxes]] {{Documentation}}</noinclude>
<noinclude>{{Map|
 
| Image = File:Clearcut.jpg
 
| Environment = Forest
 
| Size = 8192 x 8192
 
| Game Modes = <ul>
 
<li>[[Team Solaris Arena]]
 
<li>[[Test of Strength]]</ul>
 
| Available = Beta 1.0
 
| Mech = 1
 
| Tank = 1
 
| VTOL = 1
 
| Aero = 1
 
| Map  = File:Clearcut minimap.jpg
 
}}
 
Template for maps
 
==Usage==
 
<nowiki>{{Map|</nowiki><br>
 
| Image = File:'''Name Of Image'''.jpg<br>
 
| ImageSize = '''Number only (in px; optional; default 350)'''<br>
 
| Environment = '''Environment description'''<br>
 
| Temperature = '''Number only, if multiple add after slash'''<br>
 
| Planet = '''Name of planet, from loading screen'''<br>
 
| Coords = '''Planet coordinates, from loading screen'''<br>
 
| Size = '''Number ''' x '''Number'''<br>
 
| Game Modes = '''Bullet list, see: [[:Category:Game Modes|Game Modes]]'''<br>
 
| Available = '''First [[MWLL]] version in which map was available, Number only'''<br>
 
| Mech = '''Yes or blank'''<br>
 
| Tank = '''Yes or blank'''<br>
 
| VTOL = '''Yes or blank'''<br>
 
| Aero = '''Yes or blank'''<br>
 
| BaseIS = '''Number (in brackets a number of ASF+VTOL or VTOL pads, eg. ASF: 2)'''<br>
 
| BaseCL = '''Number (in brackets a number of ASF+VTOL or VTOL pads, eg. VTOL: 1)'''<br>
 
| Map  = File:'''Name Of Image'''.jpg<br>
 
}}
 
 
 
==Template==
 
<pre>
 
{{Map
 
| Image =
 
| ImageSize =
 
| Environment =
 
| Temperature =
 
| Planet =
 
| Coords =
 
| Size =
 
| Game Modes =
 
| Available =
 
| Mech =
 
| Tank =
 
| VTOL =
 
| Aero =
 
| BaseIS =
 
| BaseCL =
 
| Map  =
 
}}
 
</pre>
 
 
 
==Notes==
 
* Primary image should be pictured from default camera location before starting the match (if camera is misplaced - random location may be chosen)
 
* Map image needs to be minimap.dds converted to JPG file and downsized to 1024 before the upload.
 
* Mech, Tank, VTOL and Aero are automatically placed on template with proper links, so only '''"Yes"''' should be added, otherwise these will default to blank.
 
* Base Defenses should be '''"Yes"''' if there are any, anything else will display '''"None"'''.
 
* Multiple Game Modes require <nowiki><ul> and <li></nowiki> to function properly as unordered lists.
 
[[Category:Infoboxes]]
 
</noinclude>
 

Revision as of 20:40, 3 November 2017

Documentation icon Template documentation[view] [edit] [history] [purge]

This infobox template is for Maps.

Usage

Map
Thunder-Rift.jpg
Latest Version: -
Environment: Forest
Size: 8192 x 8192
Game Modes:
First Available In: Beta 1.0
Assets
Assets:
Tactical Map

The infobox may be added by pasting the template as shown below into an article and then filling in the desired fields. Some parameters are not required and will not be displayed when left blank or omitted.

Blank Template

{{Map
| Image = 
| ImageSize = 
| Version = 
| Created By = 
| Environment = 
| Temperature = 
| Planet = 
| Coords = 
| Size = 
| Game Modes = 
| Available = 
| Download = 
| Mech = 
| Tank = 
| VTOL = 
| Aero = 
| BaseIS = 
| BaseCL = 
| Map  = 

| Clan_X = 
| Clan_Y = 
| Clan_Mech_1_X = 
| Clan_Mech_1_Y = 
| Clan_Mech_2_X = 
| Clan_Mech_2_Y = 
| Clan_ASF_1_X = 
| Clan_ASF_1_Y = 
| Clan_ASF_2_X = 
| Clan_ASF_2_Y = 

| IS_X = 
| IS_Y = 
| IS_Mech_1_X = 
| IS_Mech_1_Y = 
| IS_Mech_2_X = 
| IS_Mech_2_Y = 
| IS_ASF_1_X = 
| IS_ASF_1_Y = 
| IS_ASF_2_X = 
| IS_ASF_2_Y = 

| Neutral_Mech_1_X = 
| Neutral_Mech_1_Y = 
| Neutral_Mech_2_X = 
| Neutral_Mech_2_Y = 
| Neutral_Mech_3_X = 
| Neutral_Mech_3_Y = 
| Neutral_Mech_4_X = 
| Neutral_Mech_4_Y = 
| Neutral_Mech_5_X = 
| Neutral_Mech_5_Y = 
| Neutral_Mech_6_X = 
| Neutral_Mech_6_Y = 

| Neutral_ASF_1_X = 
| Neutral_ASF_1_Y = 
| Neutral_ASF_2_X = 
| Neutral_ASF_2_Y = 

| Neutral_Cap_1_X = 
| Neutral_Cap_1_Y = 
| Neutral_Cap_2_X = 
| Neutral_Cap_2_Y = 
| Neutral_Cap_3_X = 
| Neutral_Cap_3_Y = 
| Neutral_Cap_4_X = 
| Neutral_Cap_4_Y = 
| Neutral_Cap_5_X = 
| Neutral_Cap_5_Y = 
| Neutral_Cap_6_X = 
| Neutral_Cap_6_Y = 
| Neutral_Cap_7_X = 
| Neutral_Cap_7_Y = 
| Neutral_Cap_8_X = 
| Neutral_Cap_8_Y = 
}}

Parameters

As noted before some parameters are optional, however some must be included. The following is a list of parameters, their functions, and whether or not they are required.

Parameter Required Function
Image Yes Image name: File:abc.jpg, File:xpz.png, Image:123.gif; Image name must be prefixed with Image: or File: to function. Primary image should be pictured from default camera location before starting the match (if camera is misplaced - random location may be chosen)3
ImageSize No Image size is the width of the image. Will also determine the width of the infobox. Defaults to 350px when omitted.
Version No The latest version that is available for this map.
Created By No Credit to the person or people who made the map.
Environment No A descriptor of the environment in which the map is set. eg: Desert, Forest, Tundra, etc.
Temperature No Ambient temperature of the map in °C. If multiple, separate them with a slash. eg: +55 / -2
Planet No The name of the planet on which the map is set. Typically on the map loading screen.
Coords No Coordinates of the planet on which the map is found. Typically on the map loading screen.
Size No The size of the map. eg: 8192 x 8192
Game Modes No List of the game modes that are playable on the map. Multiple game modes require <ul> and <li> to function properly as unordered lists.
Available No The first version of MWLL in which the map was available.
Download No The link to the MWLL map archive where this map can be downloaded.
Mech No Whether or not Mechs are available on this map. Should be blank or omitted if none.
Tank No Whether or not Tanks/Vehicles are available on this map. Should be blank or omitted if none.
VTOL No Whether or not VTOLs are available on this map. Should be blank or omitted if none.
Aero No Whether or not Aerospace Fighters are available on this map. Should be blank or omitted if none.
BaseIS No The number of Inner Sphere bases on the map.
BaseCL No The number of Clan bases on the map.
BaseNtl No The number of Neutral bases on the map.
Map No An image showing the minimap/map overview. Map image needs to be minimap.dds converted to JPG file and downsized to 1024 before the upload.