Difference between revisions of "Template:Map example"
From Worms Knowledge Base
Explorer09 (Talk | contribs) m (new parameters: mappic and mappic-v) |
Explorer09 (Talk | contribs) (fix parameter: mappic-v) |
||
Line 2: | Line 2: | ||
<tr><th bgcolor="#dddddd">Map</th></tr> | <tr><th bgcolor="#dddddd">Map</th></tr> | ||
{{#if:{{{mappic|}}}|<tr><td style="text-align: center;">[[Image:{{{mappic}}}]]</td></tr>}} | {{#if:{{{mappic|}}}|<tr><td style="text-align: center;">[[Image:{{{mappic}}}]]</td></tr>}} | ||
− | <tr> | + | <tr><td>{{#if:{{{mappic-v|}}}|<div style="float: left;">[[Image:{{{mappic-v}}}]]</div>}}<!-- |
− | {{#if:{{{mappic-v|}}}|< | + | -->{{{map}}}{{#if:{{{wmdb|}}}|<br/>[http://www.wmdb.org/maps/{{{wmdb}}} Examples at the WMDB]}}</td></tr> |
− | < | + | |
{{#if: {{{isInTable|}}}||</table>}}<noinclude> | {{#if: {{{isInTable|}}}||</table>}}<noinclude> | ||
This is a sub-template of [[:Template:Game setup]]. | This is a sub-template of [[:Template:Game setup]]. |
Revision as of 10:05, 20 March 2010
Map |
---|
{{{map}}} |
This is a sub-template of Template:Game setup.
Usage
{{Map example
|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
}}