Difference between revisions of "Template:Gamebox"

From Spirit Island Wiki
Jump to: navigation, search
(Created page with "<noinclude>Category:Template Template for Gamebox. Any category marked Optional may be left blank, or ideally omitted entirely. Any parameter with a # should start with a...")
 
Line 14: Line 14:
 
<includeonly>
 
<includeonly>
  
=={{PAGENAME}}}==
+
=={{PAGENAME}}==
<div style="float:right; border-left:2px gray; margin:5px;">
+
<div style="float:right; border-left:2px gray; margin:5px; width:250px;">
  
 
{{#switch: {{PAGENAME}}|Core Set=[[File:Spirit island box.png|150px]]|Branch and Claw=[[File:Branch and claw box.png|150px]]|Promotional=[[File:Promo.png|100px]]}}
 
{{#switch: {{PAGENAME}}|Core Set=[[File:Spirit island box.png|150px]]|Branch and Claw=[[File:Branch and claw box.png|150px]]|Promotional=[[File:Promo.png|100px]]}}
Line 22: Line 22:
  
 
{{#if:{{{spirit1|}}}|'''Spirits'''<br>|}}
 
{{#if:{{{spirit1|}}}|'''Spirits'''<br>|}}
<!-- Looping function to continue to add new members as eneded -->
+
<!-- Looping function to continue to add new spirits as eneded -->
 
{{#if:{{{spirit1|}}}  
 
{{#if:{{{spirit1|}}}  
 
| {{#ifexist:{{{spirit1}}}|[[{{{spirit1}}}]]|{{{spirit1}}}}}<br>{{#vardefine:spiritnumber|2}}{{#while:  
 
| {{#ifexist:{{{spirit1}}}|[[{{{spirit1}}}]]|{{{spirit1}}}}}<br>{{#vardefine:spiritnumber|2}}{{#while:  
 
|{{{spirit{{#var:spiritnumber}}|}}}  
 
|{{{spirit{{#var:spiritnumber}}|}}}  
| {{#ifexist:{{{spirit{{#var:spiritnumber}}}}}|[[{{{spirit{{#var:spriritnumber}}}}}]]|{{{member{{#var:spiritnumber}}}}}}}<br> {{#vardefine:spiritnumber  
+
| {{#ifexist:{{{spirit{{#var:spiritnumber}}}}}|[[{{{spirit{{#var:spiritnumber}}}}}]]|{{{spirit{{#var:spiritnumber}}}}}}}<br> {{#vardefine:spiritnumber  
 
|{{#expr:{{#var:spiritnumber}}+1}}}}}}|}}
 
|{{#expr:{{#var:spiritnumber}}+1}}}}}}|}}
  
 
-----
 
-----
  
{{#if:{{{adversary1|}}}|'''Adversaries'''<br>|}}
+
{{#if:{{{adversary1|}}}|'''Adversarys'''<br>|}}
<!-- Looping function to continue to add new members as eneded -->
+
<!-- Looping function to continue to add new adversarys as eneded -->
 
{{#if:{{{adversary1|}}}  
 
{{#if:{{{adversary1|}}}  
 
| {{#ifexist:{{{adversary1}}}|[[{{{adversary1}}}]]|{{{adversary1}}}}}<br>{{#vardefine:adversarynumber|2}}{{#while:  
 
| {{#ifexist:{{{adversary1}}}|[[{{{adversary1}}}]]|{{{adversary1}}}}}<br>{{#vardefine:adversarynumber|2}}{{#while:  
 
|{{{adversary{{#var:adversarynumber}}|}}}  
 
|{{{adversary{{#var:adversarynumber}}|}}}  
| {{#ifexist:{{{adversary{{#var:adversarynumber}}}}}|[[{{{adversary{{#var:spriritnumber}}}}}]]|{{{member{{#var:adversarynumber}}}}}}}<br> {{#vardefine:adversarynumber  
+
| {{#ifexist:{{{adversary{{#var:adversarynumber}}}}}|[[{{{adversary{{#var:adversarynumber}}}}}]]|{{{adversary{{#var:adversarynumber}}}}}}}<br> {{#vardefine:adversarynumber  
 
|{{#expr:{{#var:adversarynumber}}+1}}}}}}|}}
 
|{{#expr:{{#var:adversarynumber}}+1}}}}}}|}}
  
Line 42: Line 42:
  
 
{{#if:{{{scenario1|}}}|'''Scenarios'''<br>|}}
 
{{#if:{{{scenario1|}}}|'''Scenarios'''<br>|}}
<!-- Looping function to continue to add new members as eneded -->
+
<!-- Looping function to continue to add new scenarios as eneded -->
 
{{#if:{{{scenario1|}}}  
 
{{#if:{{{scenario1|}}}  
 
| {{#ifexist:{{{scenario1}}}|[[{{{scenario1}}}]]|{{{scenario1}}}}}<br>{{#vardefine:scenarionumber|2}}{{#while:  
 
| {{#ifexist:{{{scenario1}}}|[[{{{scenario1}}}]]|{{{scenario1}}}}}<br>{{#vardefine:scenarionumber|2}}{{#while:  
 
|{{{scenario{{#var:scenarionumber}}|}}}  
 
|{{{scenario{{#var:scenarionumber}}|}}}  
| {{#ifexist:{{{scenario{{#var:scenarionumber}}}}}|[[{{{scenario{{#var:spriritnumber}}}}}]]|{{{member{{#var:scenarionumber}}}}}}}<br> {{#vardefine:scenarionumber  
+
| {{#ifexist:{{{scenario{{#var:scenarionumber}}}}}|[[{{{scenario{{#var:scenarionumber}}}}}]]|{{{scenario{{#var:scenarionumber}}}}}}}<br> {{#vardefine:scenarionumber  
 
|{{#expr:{{#var:scenarionumber}}+1}}}}}}|}}
 
|{{#expr:{{#var:scenarionumber}}+1}}}}}}|}}
  

Revision as of 10:32, 5 November 2017

Template for Gamebox. Any category marked Optional may be left blank, or ideally omitted entirely. Any parameter with a # should start with a 1, and increase incrementally as needed.

Unless otherwise instructed, do not include wiki markup or links.

{{Gamebox
|spirit#=The full name of the Spirit
|adversary#=The full name of the Adversary
|scenario#=The Full name of the Scenario
|info=Any information about the box. Wiki Text Acceptable
}}