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


There is an extension on the MediaWiki website that allows CSS rules to be applied to a particular page via <css> brackets. This extension would be useful to those trying to further customize their userpage, though could also be used to simplify things such as the April Fools Day event to a select few pages (such as just the Main Page) as opposed to the entire wiki. Templates could be created to fix any problems on pages that can only be fixed via CSS, and I am sure there are several other advantages to this that may be brought up during the discussion. This, of course, would require some sort of additional policy to ensure it is not abused on pages where it is not required.

I imagine the point will be brought up that the same goal can be met via one's own CSS file. This is not the case, as the CSS rules will be applied for all users on the page it is written on. At the same time, personal CSS files apply to all pages, but only to the user it was written for.

So, in short, I propose we request that Wikia staff implement the extension.

Magic-icon.pngStelercusIlluminated Book of Balance.png 23:26, July 8, 2010 (UTC)


Support - As nom. Magic-icon.pngStelercusIlluminated Book of Balance.png 23:26, July 8, 2010 (UTC)

Support - Cool! Andrew talk 23:32, July 8, 2010 (UTC)

Question - How is this different than enclosing the entire page in a span or div tag? kitty.pngPsycho Robot talkSilver bar.png 23:34, July 8, 2010 (UTC)

If you wanted to change the images used for things like moving or editing pages up in the page bar, the logo, or the far back part of the page (behind the article itself), you would have to use CSS. There are a lot of things that HTML tags can't do that CSS can. Magic-icon.pngStelercusIlluminated Book of Balance.png 23:36, July 8, 2010 (UTC)

Support - Me want. Me want now. IVBFKMBucket detail.pngrwojy 23:59, July 8, 2010 (UTC)

Support - Although I'm not sure if this extension is used on Wikia. ajr 00:01, July 9, 2010 (UTC)

Does it need to be for them to install it? Magic-icon.pngStelercusIlluminated Book of Balance.png 00:02, July 9, 2010 (UTC)
Yes, and I just found out that it is. Great idea :) ajr 00:04, July 9, 2010 (UTC)
To clarify, because Wikia is "different", you can only enable an extension that is already enabled on Wikia. This one is, and staff should allow it to be enabled. No promises though :P ajr 00:05, July 9, 2010 (UTC)
Yay, for lack of a better word. Magic-icon.pngStelercusIlluminated Book of Balance.png 00:16, July 9, 2010 (UTC)

Support - Sounds like a good idea to have. Having a certain page have it's own CSS will make some fun times (if I read that right), but users will have to make sure no unnecessary CSS is added to a page. ~MuzTalk 00:18, July 9, 2010 (UTC)

Support - Should be useful.  Tien  00:46, July 9, 2010 (UTC)

Support - I'd probably never use it, but I don't see the harm. kitty.pngPsycho Robot talkSilver bar.png 00:52, July 9, 2010 (UTC)

Support - It would provide some benefits to fix things that aren't achievable using inline CSS. However, we might to have some restrictions on its use mentioned in a policy somewhere, which should also apply to inline CSS in general. For example, I occasionally see people using things on their user pages which obstruct navigational elements like the userlinks on the top right of the page. With PageCSS it will give people more power to hide things, make things unreadable, or move stuff around. The fact that some people use Monobook or other color schemes should also be considered. It's important that the page stay usable and reasonably consistent with other pages regardless of the CSS applied to it. --Quarenon  Talk 01:11, July 9, 2010 (UTC)

If you're referring to this, its been dealt with :P But I do agree that this will give rather... industrious users the chance to be even more annoying... So we will need to add to the RuneScape:User page article about forbidding people from hiding or obstructing the system links. Any page found that violates the policy can just have its css code altered, or if its too messy, it can just be disabled altogether. kitty.pngPsycho Robot talkSilver bar.png 01:17, July 9, 2010 (UTC)

Support - This should be helpful and useful to those who want to spruce things up. However, I don't think we need an additional "CSS Policy" is necessary. I'm seriously drawing a blank right now about which policy we'd amend to add in CSS rules, but I hope you know what I mean. ʞooɔ 01:15, July 9, 2010 (UTC)

There are some things that clearly cannot be allowed, like an inappropriate logo or making the page unreadable. However, some things are in the gray area, such as extensive floating objects, hiding some buttons, and so forth. There is no harm in creating a list of things one can and can't do with CSS, because there is quite a bit you could mess up. Magic-icon.pngStelercusIlluminated Book of Balance.png 01:18, July 9, 2010 (UTC)
We won't need a separate CSS policy, it should just get added onto RuneScape:User Page. kitty.pngPsycho Robot talkSilver bar.png 01:21, July 9, 2010 (UTC)
I agree that we need to have rules on what is allowed and what is not, but I don't know if a whole new policy is the way to do that. Still, looking down the list of policies, I'm not seeing much that could tie in to that. And I don't know if RS:USER is the best place to do that either, because this is for more than just user pages. ʞooɔ 01:24, July 9, 2010 (UTC)
<edit conflict> At one point or another, there will probably be need to use it outside the userspace (for whatever reason, things happen). The Userpage policy is not a good place for this. Magic-icon.pngStelercusIlluminated Book of Balance.png 01:25, July 9, 2010 (UTC)
How do you figure? CSS certainly wouldn't be used in the mainspace. I can't think of anywhere it could be used except the userspace, and if it ever is used outside it, RS:UCS will support applying RS:USER to whatever is done outside the userspace. kitty.pngPsycho Robot talkSilver bar.png 01:27, July 9, 2010 (UTC)
Well, we do have a few page-specific CSS rules in the MediaWiki:Common.css file, so it might make sense to move such rules into the pages themselves. I'm sure other instances will crop up, although I think anything added outside of the userspace should be closely looked at. --Quarenon  Talk 01:31, July 9, 2010 (UTC)

Support - RS:SNOW? (joking) Seriously, though, I think it'd be a useful extension. It would stop people using unclosed HTML on their talk pages (you have NO IDEA how much that bugs me). If anyone cares to see what needs to be done to handle talk page customisation correctly now, one solution is demonstrated on my talk page, but it's not pretty, and requires the page to be purged before changes are shown. The css tag would be helpful for a lot of customisation of userpages and talk pages, and could have applications on the mainspace. No real reason not to support, as long as the filter: tag is blocked as it is in inline styles (due to security vulnerabilities). Does anyone know a wiki with PageCSS enabled? I want to test a few things in it first. I'm a regular user and I approve this message.  TLUL Talk - Contribs 02:26, July 9, 2010 (UTC) 

I apologise if that comment seems more disorganised than normal. I'm a regular user and I approve this message.  TLUL Talk - Contribs 02:27, July 9, 2010 (UTC) 
This extension uses the same sanitization that is used for checking inline CSS (see Sanitizer::checkCSS() line 704), so filters and URLs in styles should be removed. --Quarenon  Talk 03:31, July 9, 2010 (UTC)

Support - Per above. HaloTalk 05:00, July 9, 2010 (UTC)

Support - It would be nice for people experimenting with it (css), so others won't have to add to their custom css page. ShinyUnown T | C | E 13:31, July 10, 2010 (UTC)

Support - Per killr Coelacanth0794 13:33, July 10, 2010 (UTC)

Support - Ja. --Aburnett(Talk) 15:20, July 10, 2010 (UTC)

Support - Should be useful, it may also give me some motivation to actually learn how to do this stuff. BerserkHackr 23:03, July 11, 2010 (UTC)

Support - I think that the extension will be very usefull. Sossybw mh 01:42, July 19, 2010 (UTC)

Request for Closure - I have been gone about a week, and nobody has commented within that time. With 0% opposition, discussion appears to be over. Magic-icon.pngStelercusIlluminated Book of Balance.png 16:13, July 17, 2010 (UTC)

Notice of intent - Steler is/has asked Wikia to install the extension. I'll leave this open for a further week just incase any immediate issues are found, and then I shall close it. Quest.png Gaz Lloyd 7:^]Events!99s 16:39, July 17, 2010 (UTC)

Closed - Stelercus asked me to close this. Wikia can't install it because it isn't installed on Wikia. Andrew talk 20:01, July 20, 2010 (UTC)