Difference between revisions of "Template:Scheme"

From Worms Knowledge Base

Jump to: navigation, search
(try to redesign the template from Template:Game_setup)
 
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--includeonly--><table class="infobox" cellspacing="2" style="width: 18em; text-align: left;">
+
<includeonly><table class="infobox nowraplinks" cellspacing="2" style="width: 20em; 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%; text-align: center;">{{{title|{{{scheme|{{PAGENAME}}}}}}}}</th></tr>}}<!--
[[:Image:{{{file|{{{1}}}}}}|View scheme settings]]</td></tr>
+
    --scheme file--
{{#if:{{{map|}}}|{{#if: 1||<table class="infobox" cellspacing="2" style="width: 18em; font-size: 90%; text-align: left;">}}
+
-->{{#if:{{{file|}}}{{{1|}}}|<tr><td style="text-align: center;">'''[[Media:{{{file|{{{1}}}}}}|Download]]'''&nbsp;<span style="font-size: 90%;">(.wsc)</span>&nbsp;· [[:File:{{{file|{{{1}}}}}}|View scheme settings]]</td></tr>}}<!--
{{#if:|<tr><td>{{{title}}}</td></tr>}}
+
    --map info--
<tr><th bgcolor="#dddddd">Map</th></tr>
+
-->{{#if:{{{map|}}}|<tr><th style="background-color: #ddd;">Map</th></tr><!--
{{#if:{{{mappic|}}}|<tr><td style="text-align: center;">[[Image:{{{mappic|}}}]]</td></tr>}}
+
--><tr><td>{{{map}}}{{#if:{{{wmdb|}}}|<br/>[http://www.wmdb.org/maps/{{{wmdb}}} Examples at the WMDB]}}</td></tr>}}<!--
<tr><td>{{#if:{{{mappic-v|}}}|<div style="float: left;">[[Image:{{{mappic-v|}}}]]</div>}}<!--
+
    --worms info--
-->{{{map}}}{{#if:{{{wmdb|}}}|<br/>[http://www.wmdb.org/maps/{{{wmdb|}}} Examples at the WMDB]}}</td></tr>
+
-->{{#if:{{{worms|}}}|<tr><th style="background-color: #ddd;">Worms</th></tr><!--
{{#if: 1||</table>}}}}
+
--><tr><td>{{{worms}}}</td></tr>}}<!--
{{#if:{{{worms|}}}|<tr><th bgcolor="#dddddd">Worms</th></tr>
+
    --end--
<tr><td>{{{worms}}}</td></tr>}}</table><!--/includeonly-->
+
--></table></includeonly><noinclude>
 +
 
 +
{{Scheme|file={{{file}}}|title={{{title}}}|map={{{map}}}|worms={{{worms}}}}}
 +
This template is an alternative to [[Template:Game_setup]].
  
<noinclude>
 
{{Game setup|{{{file}}}|scheme={{{scheme}}}|map={{{map}}}|worms={{{worms}}}}}
 
 
== Usage ==
 
== Usage ==
<nowiki>{{Game_setup</nowiki><br/>
+
<nowiki>{{Scheme</nowiki><br/>
|file=name of file including extension ''(required field)''<br/>
+
|title=name of scheme ''(defaults to PAGENAME)''<br/>
|scheme=name of scheme ''(defaults to PAGENAME)''<br/>
+
|file=name of file including extension<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>
|mappic=a picture about the map<br/>
+
 
|mappic-v=same as {{{mappic}}}, but for a vertical map<br/>
+
 
|worms=blurb about teams/worms<br/>
 
|worms=blurb about teams/worms<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
 
</noinclude>
 
</noinclude>

Latest revision as of 04:10, 28 January 2011


This template is an alternative to Template:Game_setup.

Usage

{{Scheme
|title=name of scheme (defaults to PAGENAME)
|file=name of file including extension

|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)

|worms=blurb about teams/worms
}}

Personal tools