Guys! Help! For some reason, if I put two of the same templates on the same page, they would always merge together. Can you guys see how I can separate the two?
Guys! Help! For some reason, if I put two of the same templates on the same page, they would always merge together. Can you guys see how I can separate the two?
Does this have anything to do with the Clone Overviews page on badland-brawl wiki? On the CloneView template you have a few unclosed div tags.
You need to add </div></div> after
{{Clone|Name={{{Clone|}}}|Scale=.41|Position=left}}
So:
{{Clone|Name={{{Clone|}}}|Scale=.41|Position=left}}</div></div>
Not sure if that alone would solve the issue you have though
I should have been clearer, you need to add the two </div></div> tags on the template page, so it looks like this:
<div <!--{{#ifeq: {{LookupCloneRarity|{{{Clone|}}}}}|Legendary|class="border-legendary"| }}--> style="min-width: 300px; width: calc(50% - 20px); box-sizing: border-box; margin: 10px; padding: 10px 10px 15px 10px; background: white; box-shadow: 0 1px 6px rgba(0,0,0,.4); border-radius: 0.5em; border-top: 4px solid; border-top-color: {{#switch: {{LookupCloneRarity|{{{Clone|}}}}} | Primal = #999999 | Evolved = #ffa31a | Mythical = #b300b3}};"> <h4 style="margin: 0 5px 5px; font-weight: bold; font-size: 150%;">[[{{{Clone|}}}]]</h4> <div style="display: -webkit-flex; display: flex;"> {{Clone|Name={{{Clone|}}}|Scale=.41|Position=left}}</div></div> <p style="font-size: 0.95em; line-height: 1.3em;">{{{Description|}}}</p>
I can see the changes you made, you put the closing div tags in the wrong place on the template page. They need to come after
{{Clone|Name={{{Clone|}}}|Scale=.41|Position=left}}
but before
<p style="font-size: 0.95em; line-height: 1.3em;">{{{Description|}}}</p>
Edit: Nevermind, you've updated it. I don't know why the div tags are still visible though, sorry.
There's also some leftover code from the template this was copied from, http://clashroyale.wikia.com/wiki/Template:CardOverview (I know because I co-created that template), namely
<!--{{#ifeq: {{LookupCloneRarity|{{{Clone|}}}}}|Legendary|class="border-legendary"| }}-->
This code is for the Legendary class but is vestigial for your purposes as there is no such rarity in Badland Brawl.