Category talk:Suburb Group Listings

From The Urban Dead Wiki
Revision as of 22:20, 10 December 2009 by Rorybob (talk | contribs)
Jump to navigationJump to search

Formatting cleanup

I've been making an effort recently to try and make the formatting for these templates more consistent. So far, that's just involved using wiki code to resize a few logos that were too large, removing bold and <big>; tags here and there, alphabetizing the entries, and adding generic logos for groups that lacked them.

I'd like to improve them quite a bit more, but before I do that, I'd like to solicit some advice about three key areas: guidelines, logos/images, and code. For the sake of making things easier to absorb, I'll break them down in their own sections. Aichon 20:47, 7 December 2009 (UTC)

Guidelines

The current guidelines for dealing with the suburb groups are here. It's been a few years since they were edited, so I thought it might be time to revisit them and make sure that they still meet our needs well.

To start off the discussion, I'm not a fan of #2. I think it looks ugly on the suburb pages to have things like "Abandoned, The". I think we should still alphabetize, but that can be done without moving articles of speech to the end of the group name (e.g. they'd still be alphabetized as an "A," but would show up as "The Abandoned"). And the logo requirements should have a size limitation as well.

I also think it would be valuable to require a link to a group's wiki page, and I'd like to put together a guideline for how often groups get cleaned out of the listing. I've seen a few groups that simply have text there with no link, which I think serves little purpose. As for cleaning groups out, I'd be happy to take the lead on a fresh suburb group clean up and make it a semi-annual thing, at least for awhile. I also think it might be nice to have them confirm individual suburbs, since many groups forget to remove themselves from listings after they move on. Thoughts? Aichon 20:47, 7 December 2009 (UTC)

Images and logos

Many of the images that are used as logos suffer from one of two problems: they're significantly larger than they need to be and are simply resized using wiki code, or they're taller than they should be, so they end up being too tall when their width is resized to 25px (i.e. their logos appear bigger than everyone else's).

Regarding the first problem, while most images that are 25x25 are under 5KB, many of the larger ones that are resized are 50+kB. The problem is that they put unnecessary load on the server and slow page load times by serving up larger images than are needed. Obviously, I don't have stats on how much of an improvement it would make (if any) if we shrunk these images, but the intuition is clear. I've identified a few possible ways of handling it, but I wanted feedback:

  • Simply remove the logos and replace them with the generic question marks
  • Notify the groups and let them change them
  • Resize the images using an editor, upload them under different names, and put them in the templates instead

Also, where would the cut-off be for what is considered "too large"? Anything over 25x25? Anything over 10KB? Some combination thereof? And if we went with the second option, what do we do if the groups don't do anything?

Regarding the second problem I mentioned earlier, what is the appropriate way to deal with tall images? Besides those last three ideas, we could also resize it in wiki code by simply shrinking the width until the height was scaled down to 25px as well (e.g. a 50px tall image that’s 30px wide would get scaled to 15px wide so that it'd be 25px tall). Thoughts on which approach is the best? Alternatives? Not worth it at all? Assuming we go forward, I'd be happy to take the lead on it and deal with whatever comes up. Aichon 20:47, 7 December 2009 (UTC)

Code

As an example of a few things I see that could use work, here’s Brook Hills' template:

<noinclude>
[[Category:Suburb Group Listings]]
</noinclude><small>[http://wiki.urbandead.com/index.php?title=Template:BrookeHillsgroups&action=edit edit group listing]</small>
{{SuburbGroups|
survivor_groups =<p></p>
*[[Image:icon.jpg|25px]] [[All Out Assault]]
*[[Image:Detulux.JPG|25px]] [[Detulux Inc]]
*<big>'''[[Department of Emergency Management|DEM]]'''</big>
**[[Image:MFD GroupIcon.jpg]] [[Malton Fire Department]]
**[[Image:MPDGroupIcon.jpg]] [[Malton Police Department]]
**[[Image:MFUGroupIcon.JPG]] [[Malton Forensics Unit]]
*[[Image:MaltonZookeepers.png]] [[The Malton Zookeepers|Malton Zookeepers, The]]


|

zombie_groups=<p></p>
*[[Image:cotr.jpg|25px]] [[Church of the Resurrection]]
*[[Image:Pals2resevil13.jpg‎|25px]] [[Grandon PD Noise Abatement Society]]
}}

As I see it, the <p></p> code seems unnecessary. There's also the issue of the hostile_groups variable not being in this example. In many suburbs, zombie_groups doesn't show up either (though it does here). For a newbie, it would likely be a bit daunting to figure out how to add in their own group, since they'd look at this code and see no place to add a hostile group.

I was thinking that it might be beneficial to alter the code in the following ways:

  • Place the <p></p> tags in Template:SuburbGroups instead, that way they don't have to be included here.
  • Use all three variables here, and modify Template:SuburbGroups so that it inserts the default text (e.g. "Only feral zombies...") when the variable is empty, rather than when it is missing.
  • Generally clean it up and standardize it (e.g. move the "|" (pipe symbols) to a consistent location relative to the variables, remove extraneous/inconsistent line breaks, etc.

The first is rather trivial, I believe, and simply cuts down on the code in each suburb's template while making things easier to understand for newbies who want to add their group. The second could be implemented using Template:if, I believe, and should also be relatively simple. The third is a simple matter, and I'll probably just go ahead with it at some point.

Anyway, I was looking for feedback on the first two. Am I missing something about the <p></p> tags that keeps them from being used in Template:SuburbGroups? And is using the Template:if a good idea at all for the second point? Aichon 20:47, 7 December 2009 (UTC)

Replies

Guidelines - Agree on the alphabetisation thing. As far as group removal goes, I think the GSGM has it covered mostly (talking of which, we should probably set another one of those going soonish). If your group doesn't even have a link then they don't stay on listings for long.

Images - The wiki automatically generates thumbnails for resized images, so filesize is a non-issue for the 25px icons at least. Not sure what to do about tall icons, maybe just see if it can be resolved for those few groups who use it. I'm fine with leaving them tall for now.

Code - Can be improved to remove the workarounds, and make historic(al) groups part of this list, and page moves would be helpful too. An if template would probably work and I think worthwhile. Though all this is some effort to do without breaking suburb pages for a good while.

-- User:The Rooster RoosterDragon User talk:The Rooster 23:23, 7 December 2009 (UTC)

Cleaning up old templates is always good. Don't worry about the images though- they aren't a bother. DANCEDANCEREVOLUTION (TALK | CONTRIBS) 04:58, 8 December 2009 (UTC)

I completely agree with your thoughts on the Guidelines. From Rooster's and DDR's responses it doesn't sound like Images/Icon are as much of an issue. You're better with coding than I am, so I trust you to make it work without looking any worse than I does already. --Maverick Talk - OBR Praise Knowledge! 404 07:10, 8 December 2009 (UTC)

I agree with your revised idea for #2. I don't like seeing "Abandoned, The" either.
I would support shrinking tall images with the use of wiki code and math, so that it is no taller than 25px. If you resize a tall image then a brief note on the group's talk page would be in-order, explaining that 25px is the height/width limit and if they wish they can upload another image that will look better under those restrictions. As far as image size (kb), I'm not sure what the limit should be as I don't have any expertise on the issue.--GANG Giles Sednik CAPD 14:28, 10 December 2009 (UTC)

YES. I really have something against putting "the" after the group name. It never really made much sense to me. I have no idea how to solve any of the problems, because my wiki fu has deserted me. Sad face. --RahrahCome join the #party!22:20, 10 December 2009 (UTC)