Difference between revisions of "Template:Game setup"
From Worms Knowledge Base
m (usage section, also testing another if statement) |
Explorer09 (Talk | contribs) (+ title parameter (Template_talk:Map_example)) |
||
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <includeonly><table class="infobox" cellspacing="2" style="width: 18em; font-size: 90%; text-align: left;"> | |
− | + | {{#if:{{{title|Game setup}}}|<tr><th style="font-size: 150%">{{{title|Game setup}}}</th></tr>}} | |
− | + | <tr><th bgcolor="#dddddd">Scheme</th></tr> | |
− | + | <tr><td>{{{scheme|{{PAGENAME}}}}}: | |
− | + | : '''[[Media:{{{file|{{{1}}}}}}|Download]]''' | |
− | + | : [[:Image:{{{file|{{{1}}}}}}|View scheme settings]]</td></tr> | |
− | : [[Media:{{{file}}}|Download]] | + | {{#if:{{{map|}}}|{{Map example|isInTable=1|map={{{map}}}|wmdb={{{wmdb|}}}|mappic={{{mappic|}}}|mappic-v={{{mappic-v|}}}}}}} |
− | : | + | {{#if:{{{worms|}}}|<tr><th bgcolor="#dddddd">Worms</th></tr> |
− | + | <tr><td>{{{worms}}}</td></tr>}}</table></includeonly><noinclude> | |
− | + | {{Game setup|{{{file}}}|scheme={{{scheme}}}|map={{{map}}}|worms={{{worms}}}}} | |
− | | | + | |
− | | {{{map}}} | + | |
− | {{ | + | |
− | {{#if:{{{worms|}}}| | + | |
− | + | ||
− | {{ | + | |
− | {{ | + | |
− | + | ||
== Usage == | == Usage == | ||
− | <nowiki>{{Game_setup | + | <nowiki>{{Game_setup</nowiki><br/> |
− | |file=name of file including extension | + | |file=name of file including extension ''(required field)''<br/> |
− | |scheme=name of scheme | + | |scheme=name of scheme ''(defaults to PAGENAME)''<br/> |
− | |map=blurb about map | + | |map=blurb about map<br/> |
− | |wmdb=name of relevant directory on wmdb ( | + | |wmdb=name of relevant directory on wmdb (e.g. for http://www.wmdb.org/maps/bng, this should be wmdb=bng)<br> |
− | |worms=blurb about teams/worms | + | |mappic=a picture about the map<br/> |
− | }} | + | |mappic-v=same as {{{mappic}}}, but for a vertical map<br/> |
− | </nowiki> | + | |worms=blurb about teams/worms<br/> |
+ | <nowiki>}}</nowiki> | ||
</noinclude> | </noinclude> |
Latest revision as of 10:15, 26 January 2011
Game setup |
---|
Scheme |
{{{scheme}}}:
|
Map |
{{{map}}} |
Worms |
{{{worms}}} |
Usage
{{Game_setup
|file=name of file including extension (required field)
|scheme=name of scheme (defaults to PAGENAME)
|map=blurb about map
|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
|worms=blurb about teams/worms
}}