Community Central



This Frequently Asked-for Codes (FAfC) blog is meant to showcase codes people frequently ask for, whether they're aware of it or not. I've given you these to start out with; if you want another one covered that isn't already on here, tell me in the comments!


"How do I replace the chatmod star with something else?"

Put this in your wiki's MediaWiki:Chat.css, replacing the example URL with the URL of the image you want:

/* Remove existing mod star */ .username:after {
/* Add new mod star */ .username:after {
    content: url("");

"How do I highlight admin names?"

Put this in your wiki's MediaWiki:Common.css, replacing "Admin Username" with the username of the admin. Remember to do underscores instead of spaces for usernames with multiple words.

a[href$=":Admin_Username"], a[href$="/Admin_Username"] {
    color: blue !important; /* this can be any color or hex code */
    font-family: Arial  !important; /* this can be any font family Wikia recognizes */

"How do I get the local navigation menu to have rounded borders?"

Put this in your wiki's MediaWiki:Wikia.css:

/* Rounded corners for nav */
.WikiHeader .navbackground, .WikiHeader > nav .subnav-2 {
     border-radius: 0 5px 0 5px;
.WikiHeader > nav li:first-child {
     border-radius: 5px 0 0 0;
.WikiHeader > nav li:last-child {
     border-radius: 5px 0 0;
.WikiHeader nav li.marked, .WikiHeader > nav .subnav-2 .marked2 .subnav-2a {
     border-radius: 5px 5px 0 0;
.WikiHeader nav {
     border-radius: 1em 1em 0 0;
.WikiHeader > nav li.marked > a {
     border-top: none;
.WikiNav .navbackground > div {
.WikiNav .nav-item.marked > a {
    border-color: transparent;
.WikiHeader > nav .subnav-3 {
     border-radius: 0 5px 5px 5px;
.WikiHeader > nav li.marked > a {
     border-top: none;


Please remember that there are currently restrictions on editing JavaScript and certain MediaWiki pages. For more information, see here and here.

"How do I get {{USERNAME}} to work?"

If you haven't already created the template, create it as Template:USERNAME with the following code:

<span class="insertusername">{{{1|<insert name here>}}}</span>

Then add the following JavaScript to your wiki's MediaWiki:Common.js:

/* Replaces {{USERNAME}} with the name of the user browsing the page.
   Requires copying Template:USERNAME. */
function UserNameReplace() {
    if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName === null) return;
/* End of the {{USERNAME}} replacement */

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.