Difference between revisions of "Template:Map example"
From Worms Knowledge Base
(New page: {| class="infobox" cellspacing="2" style="width: 18em; font-size: 90%; text-align: left;" |- |- {{!}} bgcolor="#dddddd" {{!}} '''Maps''' {{!}}- {{!}} {{{map}}} {{#if:{{{wmdb|}}}|[http://w...) |
Explorer09 (Talk | contribs) m (description text) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {| class="infobox" cellspacing="2" style="width: 18em; font-size: 90%; text-align: left;" | + | {{#if: {{{isInTable|}}}||<table class="infobox" cellspacing="2" style="width: 18em; font-size: 90%; text-align: left;">}} |
− | | | + | {{#if:{{{title|}}}|<tr><td>{{{title}}}</td></tr>}}<noinclude><tr><td>{{{title}}}</td></tr></noinclude> |
− | | | + | <tr><th bgcolor="#dddddd">Map</th></tr> |
− | {{ | + | {{#if:{{{mappic|}}}|<tr><td style="text-align: center;">[[Image:{{{mappic}}}]]</td></tr>}} |
− | {{ | + | <tr><td>{{#if:{{{mappic-v|}}}|<div style="float: left;">[[Image:{{{mappic-v}}}]]</div>}}<!-- |
− | {{ | + | -->{{{map}}}{{#if:{{{wmdb|}}}|<br/>[http://www.wmdb.org/maps/{{{wmdb}}} Examples at the WMDB]}}</td></tr> |
− | {{#if:{{{wmdb|}}}|[http://www.wmdb.org/maps/{{{wmdb}}} Examples at the WMDB]}} | + | {{#if: {{{isInTable|}}}||</table>}}<noinclude> |
− | |} | + | This is a sub-template of [[:Template:Game setup]], but can be used directly and independently. |
+ | == Usage == | ||
+ | <nowiki>{{Map example</nowiki><br/> | ||
+ | |title=title text, shown before the "map" section<br/> | ||
+ | |map=blurb about map ''(required field)''<br/> | ||
+ | |wmdb=name of relevant directory on wmdb (e.g. for http://www.wmdb.org/maps/bng, this should be wmdb=bng)<br/> | ||
+ | |mappic=a picture about the map<br/> | ||
+ | |mappic-v=same as {{{mappic}}}, but for a vertical map<br/> | ||
+ | <nowiki>}}</nowiki> | ||
+ | </noinclude> |
Latest revision as of 13:14, 10 May 2010
{{{title}}} |
Map |
---|
{{{map}}} |
This is a sub-template of Template:Game setup, but can be used directly and independently.
Usage
{{Map example
|title=title text, shown before the "map" section
|map=blurb about map (required field)
|wmdb=name of relevant directory on wmdb (e.g. for http://www.wmdb.org/maps/bng, this should be wmdb=bng)
|mappic=a picture about the map
|mappic-v=same as {{{mappic}}}, but for a vertical map
}}