Difference between revisions of "Template:ReplayBox2"

From Worms Knowledge Base

Jump to: navigation, search
m (change the time format to match the standard)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width: {{{width|18em}}}; font-size: 90%;"
+
<includeonly><!--===========TEMPLATE CODE=============
{{#if:{{{screenshot|}}}|{{!}}-
+
 
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{screenshot}}}|{{{screensize|180px}}}|{{{caption|{{{2}}}}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}}}
+
--><table class="infobox" style="width: {{{width|18em}}}; font-size: 90%;">
|-
+
{{#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="font-size: 125%; text-align: center;" |[[Image:Download.png|24px]]&nbsp; W:A replay
+
 
|-
+
--><tr><th colspan="2" style="font-size: 111%; text-align: center;">[[File:Download.png|24px|link=Media:{{{1}}}|alt=|]]&nbsp; W:A replay</th></tr><!--
| colspan="2" | {{{2}}}{{#if:{{{3|}}}|<br/>{{{3}}}}}
+
 
{{#if:{{{length|}}}|{{!}}-
+
--><tr><td colspan="2">{{{2}}} {{{3|}}}</td></tr><!--
! style="width: 50%;" {{!}} Length:
+
 
{{!}} style="width: 50%;" {{!}} {{{length}}}}}
+
-->{{#if:{{{length|}}}|<tr>
|-
+
<th style="width: 50%;">Length:</th>
| colspan="2" style="text-align: center;" | <span class="plainlinks">'''[{{SERVER}}/download/{{{1}}} Download]'''</span>&nbsp;· [[:Image:{{{1}}}|Info]]
+
<td style="width: 50%;">{{{length}}}</td></tr>}}<!--
|}</includeonly><noinclude>
+
 
{| class="infobox" style="width: 18em; font-size: 90%;"
+
-->{{#if:{{{version|}}}|<tr>
 +
<th style="width: 50%;">WA version:</th>
 +
<td style="width: 50%;">{{{version}}}</td></tr>}}<!--
 +
 
 +
--><tr class="noprint">
 +
<td colspan="2" style="text-align: center;">'''[[Media:{{{1}}}|Download]]'''&nbsp;· [[:Image:{{{1}}}|Info]]
 +
</td></tr></table><!--========END OF TEMPLATE CODE========
 +
 
 +
--></includeonly><noinclude><!--
 +
 
 +
-->{| class="infobox" style="width: 18em; font-size: 90%;"
 
|-
 
|-
 
| colspan="2" style="text-align: center;" | [[Image:Insert-screenshot-here.png|180px|{{{caption}}}]]<br/>{{{caption}}}
 
| colspan="2" style="text-align: center;" | [[Image:Insert-screenshot-here.png|180px|{{{caption}}}]]<br/>{{{caption}}}
 
|-
 
|-
! colspan="2" style="font-size: 125%; text-align: center;" |[[Image:Download.png|24px]]&nbsp; W:A replay
+
! colspan="2" style="font-size: 111%; text-align: center;" | [[File:Download.png|24px]]&nbsp; W:A replay
 
|-
 
|-
 
| colspan="2" | {{{2}}}{{#if:{{{3|}}}|<br/>{{{3}}}}}
 
| colspan="2" | {{{2}}}{{#if:{{{3|}}}|<br/>{{{3}}}}}
Line 23: Line 33:
 
| style="width: 50%;" | ''{{{length}}}''
 
| style="width: 50%;" | ''{{{length}}}''
 
|-
 
|-
| colspan="2" style="text-align: center;" | <span class="plainlinks">'''[{{SERVER}}/download/{{{1}}} Download]'''</span>&nbsp;· Info
+
! WA version:
 +
| ''{{{version}}}''
 +
|-
 +
| colspan="2" style="text-align: center;" | <span style="color: #002bb8;">'''Download'''</span>&nbsp;· <span style="color: #002bb8;">Info</span>
 
|}
 
|}
  
Line 29: Line 42:
  
 
===Usage===
 
===Usage===
<nowiki>{{</nowiki> ReplayBox2 '''| replayfile.wagame | description text'''<br/>
+
<nowiki>{{</nowiki> ReplayBox2 <br/>
 +
| '''replayfile.wagame'''<ref name="spacing">Don't add spaces or line breaks in both ends of these unnamed parameters since they're transcluded too.</ref>| '''description text'''<ref name="spacing"/><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 35: 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.
 +
<references/>
 
</noinclude>
 
</noinclude>

Latest revision as of 16:00, 5 January 2011

{{{caption}}}
{{{caption}}}
Download.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[1]| description text[1]
| 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.

  1. 1.0 1.1 Don't add spaces or line breaks in both ends of these unnamed parameters since they're transcluded too.
Personal tools