Forum:Template classes

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Forums: Yew Grove > Template classes
Archive
This page or section is an archive.
Please do not edit the contents of this page.
This thread was archived on 28 July 2010 by Aburnett.

Hiya,

Recently I created a new Theme for the wiki, see RS:THEME#Heroes_.28Monaco.29. I'll be using that one myself. Though there's one problem: a lot of templates are incompatible with it. What I'd like to suggest is to add classes to these templates, so that theme editors can change them. This won't change anything to the default layout, it will only change if the class is edited at Monaco.css. See User:Tedjuh10/test for an example. (I'm not sure if this was already suggested?)

So, my suggestion is to add template classes to all templates that don't already have one (infoboxes and navboxes already have a default class). Mark (talk) 13:18, July 8, 2010 (UTC)

Discussion

Support - If it doesn't change anything to the default template, then it can only help us customize further into more themes. ~MuzTalk 14:55, July 8, 2010 (UTC)

Go ahead - If it improves compatibility on other themes, then I think you should use common sense and do it. What'd also be awesome is if you could compile a list of all the classes hanging around (on a subpage of RS:THEME maybe?). Quest.png Gaz Lloyd 7:^]Events!99s 15:09, July 8, 2010 (UTC)

Ah, a large list of templates that have these classes added to them. A subpage would be great, and have templates in alphabetical order perhaps, to make finding the one easier. ~MuzTalk 15:14, July 8, 2010 (UTC)

What Gaz said - + Be Bold. If it doesn't affect anything with default theme you don't need consensus. But it is nice to know so people aren't wondering what's going on. HaloTalk 15:20, July 8, 2010 (UTC)

Comment - Allright. I'll just go ahead then :). I'll keep a list of classes on my userpage. Haven't got much time right now, so I'll probably get started doing it tomorrow. Mark (talk) 15:31, July 8, 2010 (UTC)

Support - Per what I proposed in Forum:Changes to usage of Quest details template. Thanks for volunteering to get this done! Smile --Quarenon  Talk 21:40, July 8, 2010 (UTC)

Comment - Most of the main templates have their classes now. Some of them already had ids/classes, so that spared me some time. You can find a current list of template classes here. Not all of them are done, though when I run into a new template I'll add a class (if it already doesn't have one), and add it to the list. Mark (talk) 12:28, July 9, 2010 (UTC)

Excellent. I suggest we move that list into the project namespace, akin to Wikipedia's Catalogue of CSS classes. This will be a great resource for anyone using CSS customization.
Also, I suggest that we don't use ID's for templates which may be embedded multiple times per page. For example, #musicplayer should be .musicplayer. Unique IDs are required by web standards and JavaScript might not work properly if it needs to iterate over multiple instances of a template on the same page. --Quarenon  Talk 05:56, July 10, 2010 (UTC)
Done, all templates that previously only had an id now also have a class. I'll move the list into the project namespace as soon as it's completed. Mark (talk) 12:02, July 10, 2010 (UTC)

{{rfc}} Matt (t) 22:33, July 27, 2010 (UTC)

Closed - 'Tis done. --Aburnett(Talk) 04:31, July 28, 2010 (UTC)