Wikia

Community Central

A bit of coding help

90,876pages on
this wiki

Forum page

Revision as of 06:32, March 31, 2011 by Sovq (wall | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This Forum has been archived

Visit the new Forums
Forums: Index Community Central Forum A bit of coding help
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 1231 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


Hi, I'm an admin and bureaucrat from the Battlefield Wiki and I could use a little help with our Infobox/map template. There's a field called "Map" and when used next to our Equipment/BF1942 template (or any of our "Equipment" templates), it makes a large space, as if it took the entire span of the article space (see here for an example). Can anyone fix this? SSDGFCTCT9(Talk) x10px x10px x10px x10px 20:49, March 30, 2011 (UTC)

The template itself has a <br style="clear:both"> at the end. That means it makes sure it 'clears' the right side (the other long template) after the table. Removing that line will fix your problem. Rappy 21:36, March 30, 2011 (UTC)
<nowiki>'d.  Monchoman45  Talk  Contribs  Skystone  21:39,3/30/2011 
I tried fixing that, but due to the fact that the clear property is used multiple times, both in templates and in Wikia.css definitions, I wasn't able to do it. I guess you'll have to decide if you either want to block floating to the left of the Infobox/map template (by modifying Wikia.css infobox class) or you want to block floating to the right of the Equipment templates (by modifying the clear properties in the template). You can't have both. Sovq 21:48, March 30, 2011 (UTC)
Aha! I replaced the clear template at the end with a <br style="clear:left">, and it seems to work well now. Thanks for the help everyone! SSDGFCTCT9(Talk) x10px x10px x10px x10px 00:12, March 31, 2011 (UTC)
Heh, I was was trying to to that the similar way but whenever I made changes to the Equipment/BF1942 template, no changes appeared in the Guadalcanal#Battlefield_1943 section. Now I see the section is not using that template -.-. I guess I was out of caffeine in my system ;) Sovq 06:32, March 31, 2011 (UTC)

Around Wikia's network

Random Wiki