Rule Module

//

```
//////////////////////////////////////////////////////////////////////////////////////
// Chat Rules //
//----------------------------------------------------------------------------------//
// This is a script for displaying the Rules button. //
// A better version of this script is in construction, DO NOT USE THE CODE BELOW //
//==================================================================================//
// CONFIGURATION //
//==================================================================================//

 /\*\*
 \* Rules that will be displayed in the window.
 \*/
 window.DittoRules = {
 rules: [
"Article 1, Section 1, Point 1: In accordance to COPPA, users under the age of 13 are not allowed to be editors on the wiki.",
"Article 1, Section 1, Point 2: If a user is revealed to be underage, please calmly report it with evidence to an administrator.",
"Article 1, Section 1, Point 3: Observe civil behavior; do not argue, insult, threaten, harass, purposefully offend, or disrespect users or their opinions.",
"Article 1, Section 1, Point 4: Respect the staff when they ask you to stop doing something harmful or disruptive.",
"Article 1, Section 1, Point 5: Minor profanity is permitted (such as hell, damn, piss, ass, or bastard when not frequently used or directed at another user) but severe profanity such as the F-Bomb, S-Bomb, \"Female Dog\" and racial slurs are prohibited, even when censored or shortened.",
"Article 1, Section 1, Point 6: Acronyms and abbreviations that are typically known to contain one of the disallowed swear words are not allowed. ",
"Article 1, Section 1, Point 7: Comply to all of our policies. If you wish to suggest a change to the policy, do so by contacting the admins. ",

"Article 1, Section 2, Point 1: Discussion or sharing of sexually explicit content.",
"Article 1, Section 2, Point 2: Hate speech, ethnic slurs, or any other form of discrimination or racism.",
"Article 1, Section 2, Point 3: Spamming.",
"Article 1, Section 2, Point 4: Trolling.",
"Article 1, Section 1, Point 5: Using a bot program unless a staff member has control of or has approved of the use of the bot.",

"Article 1, Section 3, Point 1: Share, post, or discuss leaked Steven Universe content, including fake leaks.",
"Article 1, Section 3, Point 2: Leaked content is any media released by Cartoon Network without approval from the creators.",
"Article 1, Section 3, Point 3: A fake leak is any Steven Universe related media that that has been created to imitate official content in order to purposefully misguide people.",
"Article 1, Section 3, Point 4: Impersonate or fabricate false information about other users.",
"Article 1, Section 3, Point 5: Advertise with the intent of users paying for or signing up for said content.",
"Article 1, Section 3, Point 6: Support or encourage vandalism or breaking of the rules.",
"Article 1, Section 3, Point 7: Make multiple accounts unless the one alternate account is used for bot purposes (and has been allowed by the staff).",
"Article 1, Section 3, Point 8: Add speculative or non-canon material to articles.",
"Article 1, Section 3, Point 9: Link to an unofficial way to view Steven Universe content (such as seeing full episodes unofficially, reading full comics unofficially, etc).",

"Article 1, Section 4, Point 1: For your own safety, it's recommended that you do not post personal information about yourself, such as your school, home address, etc.",

"Article 1, Section 5, Point 1: Anything on this website can be seen by anyone on the internet. So please consider this before expressing yourself to the community.",
 "Article 4, Section 1, Point 1: 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.",
 "Article 4, Section 1, Point 2: If you a feel a user who is breaking rules is going unnoticed, please 'ping' (play a sound that notifies a user that they are wanted) a moderator by saying their full username or another one of their ping phrases. If a moderator does not respond within 30 seconds or so, use \"!mods\" to automatically notify all chat moderators and administrators in the chat room.",
 "Article 4, Section 1, Point 3: 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.",
 "Article 4, Section 1, Point 4: 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.",
 "Article 4, Section 1, Point 5: 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.",
 "Article 4, Section 1, Point 6: 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)",
 "Article 4, Section 1, Point 7: Messages that are longer than 5 line-breaks must be warned for prior to sending.",
 "Article 4, Section 1, Point 8: 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.",
 "Article 4, Section 1, Point 9: Linking to any dangerous websites will result in a two week ban minimum. We wish to keep user’s computers safe.",
 "Article 4, Section 1, Point 10: Linking to jump-scares will result in an immediate day ban minimum.",
 "Article 4, Section 1, Point 11: Using false evidence or spreading malicious lies about another user will result in a kick or ban.",
 "Article 4, Section 1, Point 12: 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.",
 "Article 4, Section 1, Point 13: Posting about or discussing leaked Steven Universe content or fake Steven Universe leaks is prohibited within the main chat room.",
 "Article 4, Section 2, Point 1: Light swear words (such as hell, damn, ass, piss, bastard, etc.) are allowed when not directed at another user. Excessive usage or usage of these or usage of stronger cuss words such as the F-Bomb or S-Bomb will result in a no-warning kick followed by a ban.",
 "Article 4, Section 2, Point 2: The scientific words for reproductive genitals are only allowed when the context is explanatory or informative and not directed at another user.",
 "Article 4, Section 2, Point 3: Swear abbreviations (such as wt\*, st\*u, lm\*ao, etc), certain swear substitutes, and abbreviations that can be translated into cuss words is treated as though the swear had been said.",
 "Article 4, Section 2, Point 4: Words such as \"sl\*t\" and \"wh\*re\" are not allowed.",
 "Article 4, Section 2, Point 5: Links from the Tumblr account “Gemfuck” are allowed to be posted on main despite the adult name when either linking to or referencing the site. However, frequent mention is not allowed.",
 "Article 4, Section 3, Point 1: 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 you are unsure if what you are about to link is NSFW or not, please send a link to a staff member in PM to make sure.",
 "Article 4, Section 3, Point 2: Mild innuendos or jokes are allowed in moderation.",

 "Article 4, Section 4, Point 1: 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.",
 "Article 4, Section 5, Point 1: Linking to other wiki chats is not allowed in main chat.",
 "Article 4, Section 5, Point 2: Advertising to view your Steven Universe content on other websites is fine, however advertising non-Steven Universe content on other websites will result in a kick.",
 "Article 4, Section 6, Point 1: While role-playing is allowed, please keep in mind that role-playing can alienate users from chatting and can clutter the chat. If you wish to go on adventures in magical Gem realms, consider taking your role-play into PM.",
 "Article 4, Section 6, Point 2: Do not engage in sexual role-play in main chat. Please make sure that your holographic fantasies are kept private.",
 "Article 4, Section 6, Point 3: You cannot “own” a character from Steven Universe. Any arguments that result from this will result in a kick for any user involved.",
 "Article 0, Section 1, Point 1: Avoid Leaking Steven Universe Content to those users who don't want them",
 "Article 0, Section 1, Point 2: Discussion for some topics are limited",
 "Article 0, Section 1, Point 3: If someone came to the chat due to an issue in life....Just stay determined and try to help out, keep in mind to make sure if it's a drama or real.",
 "Article 0, Section 1, Point 4: If a user talks about suicide, it's the community's job to help confort him/her. Suicides are truly the worst way to go down, please don't attempt it...",
 "Article 0, Section 1, Point 5: Unneccessary Drama will result to a kick and then a 2 days ban",
 "Article 0, Section 1, Point 6: If a user brings her/his life issues to the main chat...Don't cry",
 "Article 0, Section 1, Point 7: Overall, keep the chat PG-13, and try to keep it that way.",
 "Article 0, Section 1, Point 8: You can read all Wikia rules <a href='http://steven-universe.wikia.com/wiki/Project:Regulations'>Here</a>",
 "Article 0, Section 1, Point 9: Don't go out of your way to irritate others. You can have arguments and debates, but don't get too passionate. Avoid unnecessary conflict, and don't start drama. No organization of chat invasions of other wikis.",
 "Article 0, Section 1, Point 10: Chat games are allowed, but only if they don\'t disturb the flow of conversation.",
 "Article 0, Section 1, Point 11: Sockpuppeting will result in an instantaneous ban",
 "Article 0, Section 1, Point 12: Personal attacks, harassment, insults, bigotry, racism, etc. will result in a ban.",
 "Article 0, Section 1, Point 13: Violation of personal privacy will result in a ban. This includes revealing information about others against their will, such as announcing their real name, location, age, gender, etc. ",
 "Article 0, Section 1, Point 14: If a user has managed to find some flaws of this Wikia or Wikia itself, please contact him for further detail.",
 "Article 0, Section 1, Point 15: If you want to be a staff, please contact the Administrators of the Wikia if you meet the requirements.",
 "Article 0, Section 1, Point 16: If a user spams your PM, please don't take the matter to your own hands, just contact the mods or admins. If you're peaceful, just calm the person down.",
 "Article 0, Section 1, Point 17: Try to keep the chat 'Peaceful', if you tracked down a user who plans to Invade the chat, contact the admins.",
 "Article 0, Section 1, Point 18: It's not recommended to communicate with Trolls, Vandals or Spammers 'Here,' if you know the user, please do so in the pm or in another chatroom."
 ]
 };
//=============================================================================//
// END CONFIGURATION //
//=============================================================================//

 mw.util.addCSS("#DittoRulesModalList{list-style-type:square;margin-left:15px}.DittoRulesButton{float:right}#DittoRulesModalMain{height:400px;overflow-y:auto;}");
 var DittoRules = window.DittoRules || {};
 DittoRules.vocab = DittoRules.vocab || {};
 var button = document.createElement("button");
 button.innerHTML = DittoRules.vocab.rules || "Rules";
 button.className = "DittoRulesButton";
 button.onclick = function()
 {
 $.showModal(DittoRules.vocab.rules || "Rules", "<div id='DittoRulesModalMain'>",
 {
 id: "DittoRulesModal",
 width: 500,
 buttons: [{
 id: "DittoRulesClose",
 defaultButton: true,
 message: DittoRules.vocab.close || "Close",
 handler: function(){ $("#DittoRulesModal").closeModal(); }
 }]
 });
 $("#DittoRulesModalMain").append("<ul id='DittoRulesModalList'></ul>");
 DittoRules.rules.forEach(function(el){ $("#DittoRulesModalList").append("<li id='DittoRulesModalListItem'>" + el + "</li>"); }, this);
 };
 $('.public.wordmark').first().append(button);
 $('<p class="private" style="display:block" id="collapseUsersMain">Members [<a href="#" id="collapseUsersLink">show/hide</a>]</p>').insertAfter($("#Rail .public.wordmark").last());
 $('#collapseUsersLink').click(function(){console.log($("#WikiChatList").slideToggle())});
//

```