Difference between revisions of "Template:Scheme"

From Worms Knowledge Base

Jump to: navigation, search
(finish)
Line 3: Line 3:
 
-->{{#if:{{{title|a}}}|<tr><th style="font-size: 120%; background-color: #ddd; text-align: center;">{{{title|{{{scheme|{{PAGENAME}}}}}}}}</th></tr>}}<!--
 
-->{{#if:{{{title|a}}}|<tr><th style="font-size: 120%; background-color: #ddd; text-align: center;">{{{title|{{{scheme|{{PAGENAME}}}}}}}}</th></tr>}}<!--
 
     --scheme file--
 
     --scheme file--
-->{{#if:{{{file|}}}{{{1|}}}|<tr><td style="text-align: center;">'''[[Media:{{{file|{{{1}}}}}}|Download]]'''<br/>
+
-->{{#if:{{{file|}}}{{{1|}}}|<tr><td style="text-align: center;">'''[[Media:{{{file|{{{1}}}}}}|Download]]''' (.wsc)<br/>
 
[[:File:{{{file|{{{1}}}}}}|View scheme settings]]</td></tr>}}<!--
 
[[:File:{{{file|{{{1}}}}}}|View scheme settings]]</td></tr>}}<!--
     --map info and thumbnails--
+
     --map info--
 
-->{{#if:{{{map|}}}|<tr><th style="background-color: #ddd;">Map</th></tr><!--
 
-->{{#if:{{{map|}}}|<tr><th style="background-color: #ddd;">Map</th></tr><!--
-->{{#if:{{{mappic|}}}|<tr><td style="text-align: center;">[[Image:{{{mappic}}}|alt=Map thumbnail]]</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}}}|alt=Map thumbnail]]</div>}}<!--
+
-->{{{map}}}<!--
+
-->{{#if:{{{wmdb|}}}|<br/>[http://www.wmdb.org/maps/{{{wmdb}}} Examples at the WMDB]}}</td></tr>}}<!--
+
 
     --worms info--
 
     --worms info--
-->{{#if:{{{worms|}}}|<tr><th style="background-color: #ddd;">Worms</th></tr>
+
-->{{#if:{{{worms|}}}|<tr><th style="background-color: #ddd;">Worms</th></tr><!--
<tr><td>{{{worms}}}</td></tr>}}<!--
+
--><tr><td>{{{worms}}}</td></tr>}}<!--
 
     --end--
 
     --end--
 
--></table></includeonly><noinclude>
 
--></table></includeonly><noinclude>
  
{{User:Explorer09/Template:Scheme|file={{{file}}}|scheme={{{scheme}}}|map={{{map}}}|worms={{{worms}}}}}
+
{{User:Explorer09/Template:Scheme|file={{{file}}}|title={{{title}}}|map={{{map}}}|worms={{{worms}}}}}
 
== Usage ==
 
== Usage ==
 
<nowiki>{{Scheme</nowiki><br/>
 
<nowiki>{{Scheme</nowiki><br/>
|file=name of file including extension ''(required field)''<br/>
 
 
|title=name of scheme ''(defaults to PAGENAME)''<br/>
 
|title=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>

Revision as of 11:23, 26 January 2011


User:Explorer09/Template:Scheme

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