Difference between revisions of "Template:GameMode"

From MechWarrior: Living Legends Wiki
Jump to: navigation, search
m (Added 10px margin to left side of infobox to prevent crowding with fluff text.)
(Infobox corrections, add doc page)
Line 1: Line 1:
<includeonly>
+
<includeonly>{| class="GameMode" 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"
{| class="GameMode" 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"
 
 
! 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}}
 
|-
 
|-
Line 14: Line 13:
 
|-
 
|-
 
{{#if: {{{Image|}}} |
 
{{#if: {{{Image|}}} |
{{!}} 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}}]]
 
|}}
 
|}}
|}
+
|}[[Category:Game Modes]]</includeonly>
[[Category:Game Modes]]
+
<noinclude>[[Category:Infoboxes]] {{Documentation}}</noinclude>
</includeonly>
 
 
 
<noinclude>
 
{{GameMode
 
| Team Based = Yes
 
| Money = [[Rank]]
 
| Image = File:Warhammer enters.jpg
 
|}}
 
 
 
==Usage==
 
<nowiki>{{Game Mode|</nowiki><br>
 
| Name ='''Game Mode Name'''<br>
 
| Teams = '''Yes/No'''<br>
 
| Money = '''How money is handled, Rank, fixed'''<br>
 
| Winning = '''Winning conditions, Score, Tickets'''<br>
 
| RecPlayers = '''Recommented Playercount'''<br>
 
| Uses maps = '''Can use maps from other gamemodes'''<br>
 
| Image = '''File:Image name.jpg''' (optional)
 
<nowiki>}}</nowiki>
 
{{Clear}}
 
==Template==
 
<pre>
 
{{Game Mode|
 
| Name =
 
| Teams =
 
| Money =
 
| Winning =
 
| RecPlayers =
 
| Uses maps =
 
| Image =
 
}}
 
</pre>
 
 
 
[[Category:Infoboxes]]
 
</noinclude>
 

Revision as of 00:13, 15 November 2017

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

This infobox template is for Game Modes.

Usage

GameMode
Team Based: Yes
CBills: Rank
Winning Condition: Score, Tickets
Recommended Players: 6+
Uses Maps: TSA, TC
Warhammer enters.jpg

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

{{Game Mode|
| Name = 
| Teams = 
| Money = 
| Winning = 
| RecPlayers = 
| Uses maps = 
| Image = 
}}

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 No Image name: File:abc.jpg, File:xpz.png, Image:123.gif; Image name must be prefixed with Image: or File: to function.
ImageSize No Image size is the width of the image. Will also determine the width of the infobox if included. Defaults to 350px when omitted.
Teams Yes Whether this game mode has team play or is free-for-all.
Money Yes How money is handled (eg: fixed, ranked)
Winning Yes The conditions to win this Game Mode.
RecPlayers Yes The recommended player count for this Game Mode.
Uses maps Yes The map prefix or prefixes for maps that are compatible with this Game Mode. Multiple lines require <ul> and <li> to function properly as unordered lists.