Welcome, Guest. Please login or register.

Login with username, password and session length

Author Topic: Theming: Multiple (values) per (field)  (Read 7549 times)

Morbus Iff

  • Member
  • Never Nude
  • Posts: 8
    • View Profile
    • Disobey.com
Theming: Multiple (values) per (field)
« 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:


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


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:


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.



  • Member
  • Battle Hardened War Robot
  • ****
  • Posts: 3694
    • View Profile
Re: Theming: Multiple (values) per (field)
« Reply #1 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. :)
“You may live to see man-made horrors beyond your comprehension.”

― Nikola Tesla