FANDOM


This is the Pages of my failed template pages. Maybe you can fix them!

Unit Template

Main Purpose

To create tabber if a user defines 2 or more images in the template.

Problem(s)

  • The parameters inside "Switch" function doesn't show up in "Insert Template" dialog
  • When using 2 or more image, doesn't show the tabber properly, and no images show up.

Source

{|style="border:solid 3px black; -moz-border-radius:10px; float:right; font-size:smaller" width="35%"
|-
|colspan="2" style="text-align:center; color:white; background:darkgrey; -moz-border-radius-topleft: 0.5em; -moz-border-radius-topright: 0.5em;"|<big>'''{{{name}}}'''<big>
|-
|colspan="2" style="text-align:center; background:#FFFFFF"|
<center>
{{#switch: {{{HowManyPic}}}
|1 = 
{{{image}}}
|2 = 
<tabber>{{{ImgTitle}}}= {{{image}}}
{{!}}-{{!}} {{{ImgTitle2}}}={{{image2}}} 
</tabber>
|3 = 
<tabber>{{{ImgTitle}}}={{{image}}}
{{!}}-{{!}}{{{ImgTitle2}}}={{{image2}}}
{{!}}-{{!}}{{{ImgTitle3}}}={{{image3}}}
</tabber>
|4 = 
<tabber>{{{ImgTitle}}}={{{image}}}
{{!}}-{{!}}{{{ImgTitle2}}}={{{image2}}}
{{!}}-{{!}}{{{ImgTitle3}}}={{{image3}}}
{{!}}-{{!}}{{{ImgTitle4}}}={{{image4}}}
</tabber>

|#default =  
{{!}}colspan="2" style="text-align:center; background:#FFFFFF"|{{{image}}}
}}
</center>
|-
|colspan="2" style="text-align:center; color:white; background:darkgrey"|'''General Information'''
|-
|style="background:darkgrey" width="44%"|'''Available in'''
|style="color:white; background:grey"|{{{available}}}
|-
|style="background:darkgrey" width="44%"|'''Type'''
|style="color:white; background:grey"|{{{type}}}
|-
|style="background:darkgrey" width="44%"|'''Cost'''
|style="color:white; background:grey"|{{{cost}}}
|-
|colspan="2" style="text-align:center; color:white; background:darkgrey"|'''Unit Statistics'''
|-
|style="background:darkgrey" width="44%"|'''Health'''
|style="color:white; background:grey"|{{{hp}}}
|-
|style="background:darkgrey" width="44%"|'''Damage'''
|style="color:white; background:grey"|{{{damage}}}
|-
{{#if: {{{range|}}}|
{{!}}style="background:darkgrey" width="44%"{{!}}'''Range'''
{{!}}style="color:white; background:grey"{{!}}{{{range}}}
{{!}}-
}}
|style="background:darkgrey" width="44%"|'''Speed'''
|style="color:white; background:grey"|{{{speed}}}
|}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.