Thread:Cåm/@comment-24883131-20140813090214/@comment-11733175-20140813094154

Hi :) I'm at User:Cqm now, I only spotted this by chance roaming of RecentChanges. If you have any future questions please direct them there :)

Anyway, there's a two options available to you:
 * Piggyback a stylesheet on a system message
 * Insert verbatim tags that embed a stylesheet on a page or template that you want to style in wikiamobile

In the first option, there are some limitations. Whilst it affects the normal wikiamobile skin, it doesn't affect the apps, e.g. game guides or mywikia. If you're not a gaming wiki you don't have to worry about the former, but I think the latter is available for every wiki. However, if you;d like to do this, you can do something like what I've done with w:c:rs:MediaWiki:Wikiamobile-menu. If you view the source of that page you'll see it has a link tag that refers to w:c:rs:MediaWiki:Handheld.css. This stylesheet is minified courtesy of ResourceLoader so you can comment it as much as you'd like. Personally I'm starting to move away from this to be able to fix the apps, which brings me to point #2.

Verbatim tags are used to embed certain messages. For example, if I made a page called MediaWiki:Wk-stylesheet and created it with  I'd then embed it on a page like this:. However, this has all sorts of problems associated with it. Verbatim tags are very hacky and open to abuse in general, but the main problem with this application is where the stylesheet is going to end up.

If I was to style a navbox for instance, I'd embed the verbatim tags in the navbox template which is more or less the last thing on the page (there's not a lot after it anyway). This is a problem because CSS should be loaded in the head tag, certainly not at the end of the body tag, because the page won't be rendered until all the stylesheets have been downloaded. The later on in the page the CSS is, the longer before it starts rendering. So if you do it this way, keep it small.

If you do opt to style mobile views, keep in mind that what you see in your browser is much wider than what you see in your phone. Also, be sparing with what you do. I use it to fix things on a temporary basis, don't use it to completely restyle an infobox of the skin - wikia maintain all that CSS and if something changes it could be weeks before you notice it's broken.