Difference between revisions of "Template:ReplayBox"

From Worms Knowledge Base

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

Revision as of 14:29, 28 June 2008

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

Usage:

{{ReplayBox|file.wagame|line one|line two|width=|fontsize=}}
  • line two, width, and fontsize are optional parameters
Click the links on the right to watch or download. W:A replay: {{{2}}}
[[Media:{{{1}}}|watch]] · download · info
Personal tools