Difference between revisions of "Template:Scheme"
From Worms Knowledge Base
Explorer09 (Talk | contribs) (try to redesign the template from Template:Game_setup) |
Explorer09 (Talk | contribs) (finish) |
||
Line 1: | Line 1: | ||
− | < | + | <includeonly><table class="infobox" cellspacing="2" style="width: 18em; text-align: left;"><!-- |
− | {{#if:{{{title|a}}}|<tr><th style="font-size: 120%; background-color: #ddd;">{{{title|{{{scheme|{{PAGENAME}}}}}}}}</th></tr>}} | + | --title bar (or scheme name)-- |
− | <tr><td style="text-align: center;">'''[[Media:{{{file|{{{1}}}}}}|Download]]'''<br/> | + | -->{{#if:{{{title|a}}}|<tr><th style="font-size: 120%; background-color: #ddd; text-align: center;">{{{title|{{{scheme|{{PAGENAME}}}}}}}}</th></tr>}}<!-- |
− | [[: | + | --scheme file-- |
− | + | -->{{#if:{{{file|}}}{{{1|}}}|<tr><td style="text-align: center;">'''[[Media:{{{file|{{{1}}}}}}|Download]]'''<br/> | |
− | {{#if: | + | [[:File:{{{file|{{{1}}}}}}|View scheme settings]]</td></tr>}}<!-- |
− | <tr><th | + | --map info and thumbnails-- |
− | {{#if:{{{mappic|}}}|<tr><td style="text-align: center;">[[Image:{{{mappic | + | -->{{#if:{{{map|}}}|<tr><th style="background-color: #ddd;">Map</th></tr><!-- |
− | <tr><td>{{#if:{{{mappic-v|}}}|<div style="float: left;">[[Image:{{{mappic-v | + | -->{{#if:{{{mappic|}}}|<tr><td style="text-align: center;">[[Image:{{{mappic}}}|alt=Map thumbnail]]</td></tr>}}<!-- |
− | -->{{{map}}}{{#if:{{{wmdb|}}}|<br/>[http://www.wmdb.org/maps/{{{wmdb | + | --><tr><td>{{#if:{{{mappic-v|}}}|<div style="float: left;">[[Image:{{{mappic-v}}}|alt=Map thumbnail]]</div>}}<!-- |
− | + | -->{{{map}}}<!-- | |
− | {{#if:{{{worms|}}}|<tr><th | + | -->{{#if:{{{wmdb|}}}|<br/>[http://www.wmdb.org/maps/{{{wmdb}}} Examples at the WMDB]}}</td></tr>}}<!-- |
− | <tr><td>{{{worms}}}</td></tr>}}</table>< | + | --worms info-- |
+ | -->{{#if:{{{worms|}}}|<tr><th style="background-color: #ddd;">Worms</th></tr> | ||
+ | <tr><td>{{{worms}}}</td></tr>}}<!-- | ||
+ | --end-- | ||
+ | --></table></includeonly><noinclude> | ||
− | + | {{User:Explorer09/Template:Scheme|file={{{file}}}|scheme={{{scheme}}}|map={{{map}}}|worms={{{worms}}}}} | |
− | {{ | + | |
== Usage == | == Usage == | ||
− | <nowiki>{{ | + | <nowiki>{{Scheme</nowiki><br/> |
|file=name of file including extension ''(required field)''<br/> | |file=name of file including extension ''(required field)''<br/> | ||
− | | | + | |title=name of scheme ''(defaults to PAGENAME)''<br/> |
|map=blurb about map<br/> | |map=blurb about map<br/> | ||
|wmdb=name of relevant directory on wmdb (e.g. for http://www.wmdb.org/maps/bng, this should be wmdb=bng)<br> | |wmdb=name of relevant directory on wmdb (e.g. for http://www.wmdb.org/maps/bng, this should be wmdb=bng)<br> |
Revision as of 10:53, 26 January 2011
User:Explorer09/Template:Scheme
Usage
{{Scheme
|file=name of file including extension (required field)
|title=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
}}