Difference between revisions of "Template:ReplayBox2"

From Worms Knowledge Base

Jump to: navigation, search
m (the icon now links to the replay file)
(HTML markup & add "version" parameter)
Line 1: Line 1:
<includeonly><!--TEMPLATE CODE=============
+
<includeonly><!--===========TEMPLATE CODE=============
  
-->{| class="infobox" style="width: {{{width|18em}}}; font-size: 90%;"
+
--><table class="infobox" style="width: {{{width|18em}}}; font-size: 90%;">
{{#if:{{{screenshot|}}}|{{!}}-
+
{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|{{{screensize|180px}}}|{{{caption|{{{2}}}}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}<!--
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{screenshot}}}|{{{screensize|180px}}}|{{{caption|{{{2}}}}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}}}
+
 
|-
+
--><tr><th colspan="2" style="font-size: 125%; text-align: center;"><span class="plainlinks">[{{fullurl:Media:{{{1}}}}} http://worms2d.info/images/9/9e/WA-download-24.png]</span>&nbsp; W:A replay</th></tr><!--
! colspan="2" style="font-size: 125%; text-align: center;" | <span class="plainlinks">[{{fullurl:Media:{{{1}}}}} http://worms2d.info/images/9/9e/WA-download-24.png]</span>&nbsp; W:A replay
+
 
|-
+
--><tr><td colspan="2">{{{2}}} {{{3|}}}</td></tr><!--
| colspan="2" | {{{2}}}{{#if:{{{3|}}}|<br/>{{{3}}}}}
+
 
{{#if:{{{length|}}}|{{!}}-
+
-->{{#if:{{{length|}}}|<tr>
! style="width: 50%;" {{!}} Length:
+
<th style="width: 50%;">Length:</th>
{{!}} style="width: 50%;" {{!}} {{{length}}}}}
+
<td style="width: 50%;">{{{length}}}</td></tr>}}<!--
|-
+
 
| colspan="2" style="text-align: center;" | '''[[Media:{{{1}}}|Download]]'''&nbsp;· [[:Image:{{{1}}}|Info]]
+
-->{{#if:{{{version|}}}|<tr>
|}<!--========END OF TEMPLATE CODE========
+
<th style="width: 50%;">WA version:</th>
 +
<td style="width: 50%;">{{{version}}}</td></tr>}}<!--
 +
 
 +
--><tr>
 +
<td colspan="2" style="text-align: center;">'''[[Media:{{{1}}}|Download]]'''&nbsp;· [[:Image:{{{1}}}|Info]]
 +
</td></tr></table><!--========END OF TEMPLATE CODE========
  
 
--></includeonly><noinclude><!--
 
--></includeonly><noinclude><!--
Line 27: Line 32:
 
! style="width: 50%;" | Length:
 
! style="width: 50%;" | Length:
 
| style="width: 50%;" | ''{{{length}}}''
 
| style="width: 50%;" | ''{{{length}}}''
 +
|-
 +
! WA version:
 +
| ''{{{version}}}''
 
|-
 
|-
 
| colspan="2" style="text-align: center;" | <span style="color: #002bb8;">'''Download'''</span>&nbsp;· <span style="color: #002bb8;">Info</span>
 
| colspan="2" style="text-align: center;" | <span style="color: #002bb8;">'''Download'''</span>&nbsp;· <span style="color: #002bb8;">Info</span>
Line 34: Line 42:
  
 
===Usage===
 
===Usage===
<nowiki>{{</nowiki> ReplayBox2 '''| replayfile.wagame | description text'''<br/>
+
<nowiki>{{</nowiki> ReplayBox2 '''<br/>
 +
| replayfile.wagame | description text'''<br/>
 
| width = ''width of this replaybox (default: 18em)''<br/>
 
| width = ''width of this replaybox (default: 18em)''<br/>
 
| screenshot = ''screenshot_file.png''<br/>
 
| screenshot = ''screenshot_file.png''<br/>
Line 40: Line 49:
 
| caption = ''caption text of the screenshot''<br/>
 
| caption = ''caption text of the screenshot''<br/>
 
| length = ''length of the replay file (e.g. 00:02:30 or 2 min 30 sec)''<br/>
 
| length = ''length of the replay file (e.g. 00:02:30 or 2 min 30 sec)''<br/>
 +
| version = ''W:A version where the replay was recorded''<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
  
 
Only the first two parameters are required; the others are optional.
 
Only the first two parameters are required; the others are optional.
 
</noinclude>
 
</noinclude>

Revision as of 13:21, 6 January 2010

{{{caption}}}
{{{caption}}}
WA-download-24.png  W:A replay
{{{2}}}
Length: {{{length}}}
WA version: {{{version}}}
Download · Info

This will put a box about a replay floating on the right.

Usage

{{ ReplayBox2
| replayfile.wagame | description text
| width = width of this replaybox (default: 18em)
| screenshot = screenshot_file.png
| screensize = size of the screenshot (default: 180px width)
| caption = caption text of the screenshot
| length = length of the replay file (e.g. 00:02:30 or 2 min 30 sec)
| version = W:A version where the replay was recorded
}}

Only the first two parameters are required; the others are optional.

Personal tools