Fandom

Community Central

Cåm

aka Account Disabled

  • I live in Pandora
  • I am Inflatable

Message Wall:Cåm

English
A Fandom user
  Loading editor
  • Hello, nice to meet you.

    I heard that you know how to use different article style between mobile and PC.
    If you don't mind, can you give me some information? :)

      Loading editor
    • Cqm

      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 <style type="text/css">.foo {display:inline;}</style> I'd then embed it on a page like this: <verbatim>wk-stylesheet</verbatim>. 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.

        Loading editor
    • Wow, It worked! Thank you very much. I used "Piggyback a stylesheet on a system message".

        Loading editor
    • A Fandom user
        Loading editor
  • Hey there, I just saw your old file pages script. I happened to write one of my own from the same base, and I put it here. It makes a few improvements over your version, so I figured you might want to know about it. Plus, I always feel that having one central version of anything is better than multiple versions.

    Cheers,
    Bobogoobo

      Loading editor
    • View all 6 replies
    • Cqm

      I found the script I wrote affected monobook too, have you tested yours there? Wikia made no changes to monobook, so it breaks a couple of things iirc.

        Loading editor
    • Ah, okay.

      Thanks for the link, the most descriptive part of that isn't included on the dev version. Lookup by URL is probably always best then.

      Oh yeah, I forgot global.js applies to Monobook. This is essentially modeled after Monobook since that still has the older format, so I added a check for Oasis.

        Loading editor
    • A Fandom user
        Loading editor
  • Have you any ideas on how to resolve my dpl issue?

      Loading editor
    • A Fandom user
        Loading editor
  • This is redundant, fyi.

      Loading editor
    • A Fandom user
        Loading editor
  • Hey, you banned me on RuneScape wiki. Blaster8013 was using my same computer because he was at my house! Please un-ban me. If i said anything offensive, it was surely him. 

      Loading editor
  • I need more help on Thread:497293, can you try helping me please?

      Loading editor
    • A Fandom user
        Loading editor
  • I'm normally quite fastidious about giving credit in our code, but it didn't even cross my mind in this case. It's not going to be active that long, and there's more of my code in the precise way it displays there is of yours in the fact that it displays.

    Still, you're quite right. I should have credited you for the idea of prepending to #WikiaArticle, and so I now have.

      Loading editor
    • A Fandom user
        Loading editor
  • Take a look at this thread, please: w:c:merlin:Thread:67683 What kind of hornet's nest did I put my hand into there? Should I pursue this? Or let it slide? I'm confused.

      Loading editor
  • For WoWWiki, we get a red ! to the left of unpatrolled edits and it goes away when they are patrolled. In the past the entire change row used to change color, but that seems to have changed with some MediaWiki upgrade a year or more ago.

    Not sure why you don't get any patrolled status in your Recent Changes.

      Loading editor
    • Cqm

      Thanks for the quick reply :)

      I was more enquiring if Special:Log/patrol appears when viewing Recent Changes for users with the ability to patrol edits, rather than whether the ! appears (which I would assume only appears if the extension is installed). I would also guess the ! only appears to users with the ability to patrol edits, not being much used to those who can't patrol edits.

      The upload log appears in RecentChanges by default, as does the deletion, undeletion and pretty much every log I care to remember. The patrol log does not seem to follow this rule (from my perspective), but I'm not sure if it does for those with the ability to mark edits as patrolled.

      PS. Sorry if any of this is confusing ;)

        Loading editor
    • Links for logs added by extensions probably won't appear in Recent Changes unless the extension adds the link itself. You could probably add the Patrol log link to Recent Changes with some javascript, if you need it quickly accessible. You could also ask Wikia staff, if there is a MediaWiki page for Recent Changes that you can easily add a link to Patrol logs.

      The ! probably doesn't show up for non-patrollers, but I'm not sure.

        Loading editor
    • Okay, it looks like if you just want to add a link to patrol logs, you can add it here: MediaWiki:Recentchangestext

      I dug through Special:AllMessages on WoWWiki to find it. WoWWiki has a significantly enhanced page compared to the default, though.

        Loading editor
    • A Fandom user
        Loading editor
  • Hey, staff have stated that you should not transclude signatures cross-wiki, because of the strain on the server that gives.

      Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message