Simple Shortcuts for Wikia's JS

## Shortcuts

These are Use-based shortcuts which can only be activated via user itself.
Some common Commands with rules, these can be added to the chat.js completely

## Making a custom code

take the below as an example

**case '/lowercaseletters':**
            this.value = 'Please read the [[Project:Policy|chatroom rules]].';

            break;

This means you can only use lowercase to make shortcuts, and make sure it's as it should be

```
/** Chat Slash Commands **/
$('[name="message"]').keypress(function (e) {
    if (e.which == 32 || e.which == 13) {
        switch (this.value) {
        case '/refresh':
            this.value = 'Read this: https://en.wikipedia.org/wiki/Wikipedia:REFRESH';
             break;
        case '/blocks':
            this.value = wgSiteName + ' chat is not the place to discuss blocks/bans on this or another wiki. Also, please read this if you have any problems: [[Special:Contact/blocked]]';
             break;
        case '/crules':
            this.value = 'Please read the [[Project:Chatroom Policy|chatroom rules]].';
             break;
        case '/change':
            this.value = 'If you would like to request that your account be renamed please see [[Help:Changing your username]]';
             break;
        case '/greet':
            this.value = 'Hello and welcome to ' + wgSiteName + ' chat!';
            break;
        case '/logs':
            this.value = 'You can view the logs [[Project:Chat/Logs|here]].';
             break;
        case '/emotes':
            this.value = 'You can view the emoticons [[MediaWiki:Emoticons|here]].';
             break;
        case '/rules':
            this.value = 'You can read the Wikia\'s rules [[Steven_Universe_Wiki:Regulations|here]].';
             break;
        case '/tou':
            this.value = 'Wikia\'s Terms of Use can be found [[w:Terms of Use|here]].';
             break;
        case '/lightswears':
            this.value = 'Under Article 4, Section 2, Point 1 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Lightswears are allowed but not to be used as an insult or used excessively';
            break;
        case '/minimodding':
            this.value = 'Under Article 4, Section 1, Point 1 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Do not enforce the rules on the chat. This is commonly referred to as "mini-modding". Staff members of the wiki are appointed for this reason.';
            break;
        case '/unnoticed':
            this.value = 'Under Article 4, Section 1, Point 2 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! If you a feel a user who is breaking rules is going unnoticed, please \'ping\' a moderator by saying their full username or another one of their ping phrases.';
            break;
        case '/modcommand':
            this.value = 'Under Article 4, Section 1, Point 3 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Please know that if you use the "!mods" command for a reason other than gaining the attention of a moderator or administrator to deal with a rule breaker or using the command too often, you may be kicked or banned from the chat depending on the situation or amount of use the command has seen. ';
            break;
        case '/modless':
            this.value = 'Under Article 4, Section 1, Point 4 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! If no moderators or administrators are present within the chatroom, please leave a message on a chat moderator or administrator\'s message wall or the ask the staff board with evidence, preferably a screenshot, of the rule breaking. Do NOT take it upon yourself to take the matter into your own hands';
            break;
        case '/pm':
            this.value = 'Under Article 4, Section 1, Point 5 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! PM is mostly a no-rule zone, however if you are found to be harassing and/or sending NSFW content without consent from the other user with evidence from them, it is grounds for a ban or block. ';
            break;
        case '/caps':
            this.value = 'Under Article 4, Section 1, Point 6 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Using all-caps messages, emoticons, or big size messages longer than six words/emotes will issue a warning followed by a kick. (1 letter words such as "I" or "A" do not count towards this maximum)';
            break;
        case '/lines':
            this.value = 'Under Article 4, Section 1, Point 7 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Messages that are longer than 5 line-breaks must be warned for prior to sending.';
            break;
        case '/chattags':
            this.value = 'Under Article 4, Section 1, Point 8 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Certain chat tags such as coloured text and italics are alright to use past 6 words, however, if a moderator thinks that you are abusing them you will need to stop.';
            break;
        case '/linking':
            this.value = 'Under Article 4, Section 1, Point 9-10 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Linking to any dangerous websites will result in a two week ban minimum. We wish to keep user\’s computers safe. Linking to jump-scares will result in an immediate day ban minimum.';
            break;
        case '/lies':
            this.value = 'Under Article 4, Section 1, Point 11 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Using false evidence or spreading malicious lies about another user will result in a kick or ban.';
            break;
        case '/drama':
            this.value = 'Under Article 4, Section 1, Point 12 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! If an admin or mod feels like a user is purposefully trying to disrupt the chat, troll or purposefully upset other users, they may issue a warning followed by a kick and eventually a ban.';
            break;
        case '/leaks':
            this.value = 'Under Article 4, Section 1, Point 13 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Posting about or discussing leaked Steven Universe content or fake Steven Universe leaks is prohibited within the main chat room.';
            break;
        case '/swears':
            this.value = 'Under Article 4, Section 2, Point 2-4 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Swear abbreviations are not allowed and will result to either a warning with a kick and eventually a ban';
            break;
        case '/nsfw':
            this.value = 'Under Article 4, Section 3, Point 1 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! NSFW (not safe for work, or things you don\’t want to be seen looking at in school or work) is not permitted to be discussed or linked to in main chat. If a user is disturbing you with them in the Private Message section, please report to a Mod or Admin in order to warn the user about his behavior.';
            break;
        case '/topics':
            this.value = 'Under Article 4, Section 4, Point 1 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Be courteous. While it is suggested you avoid topics that make others uncomfortable (politics, religion, mortality, ect), if you do discuss these topics do so in a polite, respectful manner. If staff requests or another user states they are uncomfortable and asks that you stop talking about such topics, stop or take it to PM. ';
            break;
        case '/ads':
            this.value = 'Under Article 4, Section 5, Point 1-2 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! Linking to other wiki chats is not allowed in main chat though advertising to view your Steven Universe content on other websites is fine';
            break;
        case '/rp':
            this.value = 'Under Article 4, Section 6, Point 1-2 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! While role-playing is allowed, please keep in mind that role-playing can alienate users from chatting and can clutter the chat. Please understand that Roleplaying inappropraitely will not be tolererated and should be taken to the Private Message room';
            break;
        case '/rp1':
            this.value = 'Under Article 4, Section 7, Point 3 of the [[Project:Chatroom Policy|Steven Universe Wikia Chatroom Rules]]! You cannot “own” a character from Steven Universe. Any arguments that result from this will result in a kick for any user involved.';
            break;
        }
     }
 });

```