2000 AD Online Forum

2000 AD => Wiki => Topic started by: Morbus Iff on 31 March, 2010, 06:16:16 PM

Title: Theming: Multiple (values) per (field)
Post by: Morbus Iff on 31 March, 2010, 06:16:16 PM
I've been working on the Prog and Megazine templates to get rid of a bunch of extra whitespace that was making the page look a bit 'tarded. That's been done, so now I'm working on other small improvements. The one I'm currently addressing is simply: the display of multiple values (say, Characters) for a particular field (say, Cover Characters).

It appears most of the CSS for the site was put in the custom theme, and I don't have access to modify MediaWiki:Common.css. Because the infoboxes are floated divs, when there are multiple values for one entry, they munge up and look a bit silly. For example, see:

  http://wiki.2000adonline.com/index.php/Judge_Whitey

As an example of what I'm seeing as the solution, take a look at:

  http://wiki.2000adonline.com/index.php/Prog_1

Note that each of the Cover Characters are on the first line. To rig this up, I've a) manually spit the first character, if it exists (_1), and b) started the loop at 2, adding a break before each entry:

  http://wiki.2000adonline.com/index.php?title=Template%3AProg&diff=10521&oldid=10520

This particular change would effect every loop in our major templates, so I wanted to confirm with anyone onlooking if they had any alternate suggestions. I've attempted to do the same thing with commas (and it didn't come out well). The downsides to this particular approach are a) this should probably be done with a clear:left in the CSS, not a break, and b) if a particular story has tons of characters or other elements, it could make the infobox pretty long.

Thoughts?
Title: Re: Theming: Multiple (values) per (field)
Post by: IAMTHESYSTEM on 02 April, 2010, 11:51:37 AM
Er, I think some of us on the forums [particularly me!] are not computer savvy enough to understand what your doing but it looks great to me so keep doing it. :)