Difference between revisions of "Template:ReplayBox2"
From Worms Knowledge Base
Explorer09 (Talk | contribs) (edit description (the spaces and line breaks in the ends of unnamed parameters are preserved)) |
Explorer09 (Talk | contribs) m |
||
Line 4: | Line 4: | ||
{{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot}}}|{{{screensize|180px}}}|{{{caption|{{{2}}}}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}<!-- | {{#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: | + | --><tr><th colspan="2" style="font-size: 111%; text-align: center;"><span class="plainlinks" style="font-size: 70%;">[{{filepath:{{{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><!-- | --><tr><td colspan="2">{{{2}}} {{{3|}}}</td></tr><!-- | ||
Line 26: | Line 26: | ||
| 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: | + | ! colspan="2" style="font-size: 111%; text-align: center;" | [[Image:WA-download-24.png]] W:A replay |
|- | |- | ||
| colspan="2" | {{{2}}}{{#if:{{{3|}}}|<br/>{{{3}}}}} | | colspan="2" | {{{2}}}{{#if:{{{3|}}}|<br/>{{{3}}}}} | ||
Line 43: | Line 43: | ||
===Usage=== | ===Usage=== | ||
<nowiki>{{</nowiki> ReplayBox2 <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"/> | + | | '''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/> | |
| screenshot = ''screenshot_file.png''<br/> | | screenshot = ''screenshot_file.png''<br/> | ||
| screensize = ''size of the screenshot (default: 180px width)''<br/> | | screensize = ''size of the screenshot (default: 180px width)''<br/> |
Revision as of 15:39, 19 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[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.