FANDOM

Zatalliya

aka Jessabess

Admin Chat moderator
  • I live in Oakland, CA | USA
  • I was born on December 5
  • My occupation is College Student | Tutor | Waitress
  • I am Female
  • Bio Jess | 17 F | I do shit
  • [Show More]

๐“•๐“ฒ๐“ป๐“ฎ๐“ผ๐“ฒ๐“ญ๐“ฎ

Ah,ย Tuesday. My favorite day.

User, welcome to my talk page! Drop questions and concerns below. I remove ordinary messages from theย talk page as soon as I've replied, so don't worry about not seeing our conversation here. I'd much rather talk to you on Discord, though. Jess#1144

๐’ฎ๐’พ๐‘”๐“ƒ ๐“Ž๐‘œ๐“Š๐“‡ ๐“‚๐‘’๐“ˆ๐“ˆ๐’ถ๐‘”๐‘’๐“ˆ, ๐‘œ๐“‡ ๐ผ'๐“๐“ ๐’พ๐‘”๐“ƒ๐‘œ๐“‡๐‘’ ๐“Ž๐‘œ๐“Š.ย 

๐’œ๐“‡๐’ธ๐’ฝ๐’พ๐“‹๐‘’๐“ˆ (Important ONLY!)

Just some MediaWiki Shit - Demotivator

Sup Jessabess ! Wave_emoticon.gif
Like I said, just some MediaWiki shit...

ImportJS

I think you should add these scripts to the MediaWiki:ImportJS:

dev:RailWAM/code.js
dev:ReferencePopups/custom.js

The first one because I think it'll be nice for people to see how massive of a wiki this place is. The second one so that my bloody {{Popup}} template works like it should ! (Like This)


Common.js

So, to get on top of the mess that is MediaWiki:Common.js, I feel like this is all we should keep:

/* Any JavaScript here will be loaded for all users on every page load. */

if (wgUserName != 'null') {
	$('.insertusername').html(wgUserName);
}
 
/* Custom edit buttons
See http://help.wikia.com/wiki/Help:Custom_edit_buttons
 */
 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "https://images.wikia.nocookie.net/central/images/1/11/Btn_toolbar_liste.png",
     "speedTip": "List",
     "tagOpen": "\n* ",
     "tagClose": "\n* Element B\n* Element C",
     "sampleText": "Element A"};
  }
 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "https://images.wikia.nocookie.net/central/images/8/88/Btn_toolbar_enum.png",
     "speedTip": "Numbering",
     "tagOpen": "\n# ",
     "tagClose": "\n# Element 2\n# Element 3",
     "sampleText": "Element 1"};
  }
 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "https://images.wikia.nocookie.net/central/images/f/fd/Button_blockquote.png",
     "speedTip": "Blockquote",
     "tagOpen": "<blockquote>",
     "tagClose": "</blockquote>",
     "sampleText": "Insert text"};
  }
 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "https://images.wikia.nocookie.net/central/images/7/74/Button_comment.png",
     "speedTip": "Note",
     "tagOpen": "{{Info|Insert title|",
     "tagClose": "}}",
     "sampleText": "Insert text"};
  }
 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "https://images.wikia.nocookie.net/central/images/b/b4/Button_category03.png",
     "speedTip": "Category",
     "tagOpen": "[[Category:",
     "tagClose": "]]",
     "sampleText": "Category name"};
  }
 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "https://images.wikia.nocookie.net/central/images/c/c8/Button_redirect.png",
     "speedTip": "Redirect",
     "tagOpen": "#REDIRECT [[",
     "tagClose": "]]",
     "sampleText": "Insert text"};
  }
 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "https://images.wikia.nocookie.net/central/images/1/12/Button_gallery.png",
     "speedTip": "Picture gallery",
     "tagOpen": "\n<gallery>\nImage:",
     "tagClose": "|[[The Sims Wiki]] Logo\nImage:Wiki.png|[[The Sims Wiki]] Logo\nImage:Wiki.png|Eine [[The Sims Wiki]] Logo\n<\/gallery>",
     "sampleText": "Wiki.png"};
  }
 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "https://images.wikia.nocookie.net/central/images/3/3b/Button_template_alt.png",
     "speedTip": "Template",
     "tagOpen": "{{",
     "tagClose": "}}",
     "sampleText": "Template"};

Everything else was thrown on waaaaay back in 2011 so I'm 99.9% it's redundant anyway. As for the custom edit buttons, the only reason I feel like they should stay is because they've been part of every source code editor's toolkit since 2011 (regardless of whether they've actually used those buttons or not Lol.gif).

Now, for the things I believe will either be helpful (or just a nice touch), I suggest these additions to the coding:

/* Auto Refresh */
window.AjaxRCRefreshText = 'Auto-refresh';
window.AjaxRCRefreshHoverText = 'Automatically refresh the page';
window.ajaxPages = [
        'Special:WikiActivity',
        'Special:RecentChanges',
        'Special:Contributions',
        'Special:Log',
        'Special:Log/move',
        'Special:AbuseLog',
        'Special:NewFiles',
        'Special:NewPages',
        'Special:Watchlist',
        'Special:Statistics',
        'Special:ListFiles'
];

/* Comments, message wall, forum posts user tags (adapted from the Sidekicks Wiki) */
// The tag should equate the user's role i.e. an admin will have "Admin", a content mod will have "Mod" etc.
(function ($, ArticleComments) {
    "use strict";
 
    function addTag() {
        var users = {
            'insert admin/mod username here': 'insert role name here',
            'insert admin/mod username here': 'insert role name here',
            'insert admin/mod username here': 'insert role name here',
            'Zatalliya': 'Admin',
        };
 
        for (var name in users) {
            $('.comments .edited-by a[href$="' + name + '"]:not(.subtle)')
            .after('<span class="tag">' + users[name] + '</span>');
        }
    }
 
    function init() {
        addTag();
        if (ArticleComments && ArticleComments.addHover) {
            var realFunc = ArticleComments.addHover;
            ArticleComments.addHover = function () {
                var result = realFunc.apply(ArticleComments, arguments);
                addTag();
                return result;
            };
        }
    }
 
    $(init);
}(jQuery, window.ArticleComments));
 

If you do add the RailWAM script to the MediaWiki:ImportJS page (which I strongly suggest you do) you'll need to add these lines of script to the Common.js as well (or logging scores will become messy otherwise):

window.railWAM = {
    logPage:"Project:WAM Log"
};
 


Common.css

This is literally two lines of code for the MediaWiki:Common.css page that'll work in tandem with the user tag coding I mentioned in the Common.js:

/* User tags */
.tag { background-color:#E8D151 !important; color:#000 !important; font-weight:bold; padding:4px 10px; border-radius: 10px 10px 10px 10px;}
.comments .tag { margin-left:5px; font-size:85%; padding:2px 5px; }

The background colour I've given above is the one this wiki uses (change it if you want, up to you or whoever *shrugs*). If you want to see what the user tag coding I mentioned looks like in action, see here: Example 1 / Example 2


Wikia.css

Okay, not gonna lie, this one ain't even necessary cos this wiki doesn't make affiliations with wikis (which means it'd probably have no need for the {{Wordmark}} template). But it might be handy to add to the MediaWiki:Wikia.css page:

#wmDiv img {
    max-width:100%;
    margin:auto;
    display:inline-block;
}

And finally, if you're not already aware of it, I think you'll have fun playing around with the MediaWiki:ProfileTags page ^^
Lawyer_Monkey.gif Tarzan_Monkey.gif

Gimme yo thoughts !
Demotivator โ†Doyoufeeldemotivated ยฟโ†’ Evil.gif 00:14, October 15, 2019 (UTC)


Small Note


Community content is available under CC-BY-SA unless otherwise noted.