I just want the image section to be gone when there is no image present. this is the infobox page. Can someone fix the code so that it works?
Thanks.
I just want the image section to be gone when there is no image present. this is the infobox page. Can someone fix the code so that it works?
Thanks.
Usually when one is left blank the row just disappears. And I have no idea what's going on with the bullet just floating. Please help.
Is this what you need >> w:c:throneofglass:Template:Infobox_character
Using an image tag in a portable infobox will fix the missing image problem. That's largely possible because of the markup. Your other option is to use an the ifexist parser function. The big benefit using the portable infobox markup is that Mercury will understand it better.
|- style="text-align:center; {{#if:{{{image|}}}|{{#ifexist:{{{image|}}}||display:none;}}|display:none;}}"
on line 4.
.portable-infobox { border: 1px solid #592027; } .portable-infobox .pi-title { background: #592027; color: #fff; font-size: 100%; font-weight: bold; text-align:center; }
I prepared a draft for you, if you're interested. http://throneofglass.wikia.com/wiki/Template:Infobox_character/Draft
Thanks so much! It looks much better with the different colour and works great :)