Difference between revisions of "Template:ReplayBox2"
From Worms Knowledge Base
Explorer09 (Talk | contribs) m (the icon now links to the replay file) |
Explorer09 (Talk | contribs) (HTML markup & add "version" parameter) |
||
Line 1: | Line 1: | ||
− | <includeonly><!--TEMPLATE CODE============= | + | <includeonly><!--===========TEMPLATE CODE============= |
− | --> | + | --><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>}}<!-- |
− | + | ||
− | + | --><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> W:A replay</th></tr><!-- | |
− | + | ||
− | + | --><tr><td colspan="2">{{{2}}} {{{3|}}}</td></tr><!-- | |
− | + | ||
− | {{#if:{{{ | + | -->{{#if:{{{length|}}}|<tr> |
− | + | <th style="width: 50%;">Length:</th> | |
− | + | <td style="width: 50%;">{{{length}}}</td></tr>}}<!-- | |
− | + | ||
− | + | -->{{#if:{{{version|}}}|<tr> | |
− | + | <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]]''' · [[: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> · <span style="color: #002bb8;">Info</span> | | colspan="2" style="text-align: center;" | <span style="color: #002bb8;">'''Download'''</span> · <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}}} | |
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.