Hello,
I have an issues regarding this and it seems to come down the code breaking at a "|" on the wiki, but it doesn't break on other wikis I contribute to so it is odd and confusing me.
Issue
The issue seems to be similar but with a switch ending.
The template is located here: http://spellfall-game.wikia.com/wiki/Template:WeaponBox2
and when displayed on an article page it looks like this:
http://spellfall-game.wikia.com/wiki/Ornate_Saber
I'm not sure why the switch won't close properly, and I've used switches on other wikis before and even this one.
This is the part of the code with the switch:
{{#switch:{{{max = |{{wv|{{{name|{{PAGENAME}}}}}|max}}}}}| 1 = {{WeaponBox2/Socket1}} | 2 = {{WeaponBox2/Socket2}} | 3 = {{WeaponBox2/Socket3}} | 4 = {{WeaponBox2/Socket4}} | 5 = {{WeaponBox2/Socket5}}| #default = {{WeaponBox2/Socket1}}}} {{#if:{{wv|{{{name|{{PAGENAME}}}}}|max}}|{{wv|{{{name|{{PAGENAME}}}}}|max}}|N/A}}
Here is a sample of the kind of switch being used with multiple templates on another wiki I contribute a lot to where it does work. I think the one I am trying use currently is actually simpler, but uses the same kind of structure:
{{{buy|{{#switch:{{{type1 = |{{hv|{{{name|{{PAGENAME}}}}}|type1}}}}}| Coin = {{Coin}} | Large | Gem = {{Gem}} | Magic = {{magic}} | Magic Egg= {{MagicEggs}}| Fireflies= {{Firefly}}|Event = | #default = {{Coin}}}} {{#if:{{hv|{{{name|{{PAGENAME}}}}}|buy}}|{{hv|{{{name|{{PAGENAME}}}}}|buy}}|N/A}}}}}
Other people are waiting on these to work so they can help contribute to the wiki once the basics are set up with these templates. They said they are looking forward to helping once it is worked out.
Hopefully someone knows why the code is working on other wikis but not where I am currently trying to use it.
Thank you to anyone who has helped and will be trying to help. I look forward to having this resolved as soon as possible, because one the community is looking forward to using these templates to display game information, and two I am curious as to why it is not working as it should.