Fandom

Wikia Developers Wiki

ArticlePreview

  • I want to make it site-wide in our wiki. Where do I add it?

      Loading editor
    • I would assume MediaWiki:Common.js, but it doesn't say. It does say it's in beta though, so I wouldn't really recommend using it just yet.

        Loading editor
    • Alright.

        Loading editor
    • Adding dev:ArticlePreview/code.js to MediaWiki:ImportJS page on your wiki should work. It would also bypass JS review.

        Loading editor
    • Thanks. Also, how I do add staff ranks next to peoples' names (e.g. JustLeafy Administrator)

        Loading editor
    • For forum comments or blog comments? Or both?

        Loading editor
    • Everything that are blogs, comments, talk pages, forums and message walls.

        Loading editor
    • For blog comments:

      #WikiaArticleComments [data-user='JustLeafy'] .edited-by:after, body.ns-1201 .edited-by > a.subtle[href="http://<wiki URL>.wikia.com/wiki/Message_Wall:JustLeafy "]:after {
          content: "Administrator";
          color: white;
          border-radius: 6px;
          padding: 0 5px;
          margin-left: 3px;
          background: <color>;
      }

      For forums:

      .comments li[data-user="JustLeafy"] .edited-by:after, body.ns-1201 .edited-by > a.subtle[href="http://<wiki URL>.wikia.com/wiki/Message_Wall:JustLeafy"]:after {
          content: "Administrator";
          color: black;
          border-radius: 6px;
          padding: 0 5px;
          margin-left: 3px;
          background: <color>;
      }

      For others? Well, I can give you a code for symbols, but no actual words, as I don't know how to do that, if it's even possible.

        Loading editor
    • Alright, two questions:

      • Do I need to copy both everytime for each staff member?
      • Where do I add them?
        Loading editor
    • Uh, yeah, you probably do have to copy it for another user. And you put it in MediaWiki:Wikia.css, of course.

        Loading editor
    • Alright, thanks!

        Loading editor
    • A Fandom user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.