Difference between revisions of "Template:ReplayBox"

From Worms Knowledge Base

Jump to: navigation, search
m
m (testing)
Line 4: Line 4:
 
Usage:
 
Usage:
  
  <nowiki>{{ReplayBox|My_Awesome_Replay.WAgame|My awesome replay|width=|fontsize=}}</nowiki>
+
  <nowiki>{{ReplayBox|file=|line1=|line2=''optional''|width=|fontsize=}}</nowiki>
  
 
</noinclude>{| class="infobox" style="width: {{{width}}}; font-size: {{{fontsize}}};"
 
</noinclude>{| class="infobox" style="width: {{{width}}}; font-size: {{{fontsize}}};"
| rowspan="2" | [[Image:Download.png|35px|Click the links on the right to watch or download.]] || '''W:A replay''': {{{2}}}
+
| rowspan="2" | [[Image:Download.png|{{#if:{{{line2|}}}|56px|35px}}|Click the links on the right to watch or download.]] || '''W:A replay''': {{{line1}}}
 +
{{#if:{{{line2|}}}|
 +
{{!}}-
 +
{{!}}{{{line2}}}}}
 
|-
 
|-
| style="text-align: center" | <span class="plainlinks">[[Media:{{{1}}}|watch]] · [{{SERVER}}/download/{{{1}}} download] · [{{SERVER}}{{localurl:Image:{{{1}}}}} info]</span>
+
| style="text-align: center" | <span class="plainlinks">[[Media:{{{file}}}|watch]] · [{{SERVER}}/download/{{{1}}} download] · [{{SERVER}}{{localurl:Image:{{{file}}}}} info]</span>
 
|}
 
|}

Revision as of 17:46, 19 June 2008

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

Usage:

{{ReplayBox|file=|line1=|line2=''optional''|width=|fontsize=}}
Click the links on the right to watch or download. W:A replay: {{{line1}}}
[[Media:{{{file}}}|watch]] · download · info
Personal tools