Difference between revisions of "Template:Scheme"

From Worms Knowledge Base

Jump to: navigation, search
(try to redesign the template from Template:Game_setup)
 
(finish)
Line 1: Line 1:
<!--includeonly--><table class="infobox" cellspacing="2" style="width: 18em; text-align: left;">
+
<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>}}<!--
[[: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]]'''<br/>
{{#if:|<tr><td>{{{title}}}</td></tr>}}
+
[[:File:{{{file|{{{1}}}}}}|View scheme settings]]</td></tr>}}<!--
<tr><th bgcolor="#dddddd">Map</th></tr>
+
    --map info and thumbnails--
{{#if:{{{mappic|}}}|<tr><td style="text-align: center;">[[Image:{{{mappic|}}}]]</td></tr>}}
+
-->{{#if:{{{map|}}}|<tr><th style="background-color: #ddd;">Map</th></tr><!--
<tr><td>{{#if:{{{mappic-v|}}}|<div style="float: left;">[[Image:{{{mappic-v|}}}]]</div>}}<!--
+
-->{{#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|}}} Examples at the WMDB]}}</td></tr>
+
--><tr><td>{{#if:{{{mappic-v|}}}|<div style="float: left;">[[Image:{{{mappic-v}}}|alt=Map thumbnail]]</div>}}<!--
{{#if: 1||</table>}}}}
+
-->{{{map}}}<!--
{{#if:{{{worms|}}}|<tr><th bgcolor="#dddddd">Worms</th></tr>
+
-->{{#if:{{{wmdb|}}}|<br/>[http://www.wmdb.org/maps/{{{wmdb}}} Examples at the WMDB]}}</td></tr>}}<!--
<tr><td>{{{worms}}}</td></tr>}}</table><!--/includeonly-->
+
    --worms info--
 +
-->{{#if:{{{worms|}}}|<tr><th style="background-color: #ddd;">Worms</th></tr>
 +
<tr><td>{{{worms}}}</td></tr>}}<!--
 +
    --end--
 +
--></table></includeonly><noinclude>
  
<noinclude>
+
{{User:Explorer09/Template:Scheme|file={{{file}}}|scheme={{{scheme}}}|map={{{map}}}|worms={{{worms}}}}}
{{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/>
 
|file=name of file including extension ''(required field)''<br/>
|scheme=name of scheme ''(defaults to PAGENAME)''<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
}}

Personal tools