Answers Central Wiki
All Contributors
Jr Mime
Imamadmad
LiaSakura

Tools & Extensions

I've got 3 tools and 2 extensions you guys may like.

First, the extensions.

The first extension is called TitleBlacklist. It's a list of words or letters you cannot use while asking questions. I do not know if it's enabled by default, but here's a list of words we have at Wikianswers:

 #<!-- leave this line exactly as it is --> <pre> 

# This is a list of 'blacklist' titles.  Changes here will affect all page titles on this Wikia only.
#
# Syntax:
#    - Everything from a "#" character to the end of the line is a comment
#    - Every non-blank line is a regex fragment which will match page names
#    - Be default, all regex is case insensitive; this may be removed by putting
#      <casesensitive> after the expression
# see also MediaWiki:BadWords

###Well, all questions are required to be worded like questions...###
^[^a-z]*$
^[^aeiou]*$

###NO CAPSLOCK####
^[A-Z0-9_]*$ <casesensitive>

###IPs###
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

###SINGLE CHARACTERS WHICH SHOULDN'T APPEAR EVEN ONCE###
[Щбильгن¿•?■]

###Non-English words and characters###

хуя
^Ang\b
\bang\b
^Uri ng
Panahon bago
Ibat-? ?ibang
\bng\b
\bmga\b
^Mga\b
سكس
سكس
اباحية
saliksik
tungkol
\bsino\b
halimbawa(ng)?
katangiang?
sa tula
bilang
barangay
balangay
kaylan
Kegunaan
teorya
^Teorias?
teoryang
Pangngalan

ect

Another extension is DPL. It is used to find questions from a regex.

Next: Tools

Annihiliate.js This tool will delete AND protect tons of questions from a list of pages. It is useful with DPL.

Gadget-HotCat.js This tool is used to manage easier categories on pages. One click add, one click remove, easy as that!

FastDeleteProtect.js This tool makes buttons near the edit button to delete AND protect questions.

To use with FastDeleteProtect:

Those are the buttons to add with the import (You can customize them, ofc):

// Variables (Auto delete & delete and protect)
var fdButtons = [];
fdButtons[fdButtons.length] = {
        'summary': 'Vandalism',
        'label': 'V'
};
fdButtons[fdButtons.length] = {
	'summary': 'Spam',
	'label': 'S'
};
fdButtons[fdButtons.length] = {
	'summary': 'Junk',
	'label': 'J'
};
fdButtons[fdButtons.length] = {
	'summary': 'Opinion',
	'label': 'O'
};
fdButtons[fdButtons.length] = {
	'summary': 'Non-English',
	'label': 'Ѭ'
};
fdButtons[fdButtons.length] = {
	'summary': 'Not a question',
	'label': 'NQ'
};
fdButtons[fdButtons.length] = {
	'summary': 'Homework',
	'label': 'HW'
};
fdButtons[fdButtons.length] = {
	'summary': 'Clean-up',
	'label': 'C↑'
};
fdButtons[fdButtons.length] = {
	'summary': 'Too broad/not enough detail',
	'label': 'B'
};
fdButtons[fdButtons.length] = {
        'summary': 'Unused',
        'label': 'U'
};
fdButtons[fdButtons.length] = {
	'summary': 'Violation of Wikias terms of use (pornography, advertisement, etc.)',
	'label': 'ToU'
};
 
// Import for Delete & Delete and Protect buttons
if (wgNamespaceNumber == 0) {
    importScriptPage('User:The Mol Man/FastDeleteProtect.js', 'a');
    } else {
        importScriptPage('FastDelete/code.js', 'dev');
};

Thanks! Hope this is useful!

1 15
  • Upvote
  • Reply
Jr Mime
Imamadmad
LiaSakura
0
I'll get you pictures tonight on what it us supposed to do.
0

It's okay, I already saw the Wikipedia:HotCat.

The correct one is the bottom part, but this only appears in project pages. The upper part is what happens with the rest of the namespaces (main, file, category).

0

Oh yes!!! I totally forgot about that!

Go in http://central-answers.wikia.com/wiki/Special:Preferences#mw-prefsection-editing, and check the "Disable Category module (only applies if visual mode editing is disabled)" box.

After that, it should work.

0

Alright, thanks for the help! Quick question, since changing anything in the preferences would affect every wiki the user contributed to, isn't there a workaround for HotCat to work only on the wiki it's used on?

0

I do not believe so. But, you can place an import on your global.js to make it work on every wiki.

I find it way better than the old one, don't need to go in the editing page.

To add an import, add this simple code into global.js:

importArticles({
    type: "script",
    articles: [
 
        // HotCat
        "w:c:answers:MediaWiki:Gadget-HotCat.js",
 
    ]
});
0

I see. And it's fine, importing is basically needed in common.js so I know how to do that :P

0

Hey, I just tried adding the fast delete buttons to DWA, but it doesn't seem to have worked. Well, the buttons did appear, but on MediaWiki pages rather than questions. See http://drwho.answers.wikia.com/wiki/MediaWiki:Common.js and http://drwho.answers.wikia.com/wiki/MediaWiki:Common.js/deletebuttons.js for the code. What have I done wrong?

0

The import right under the buttons isn't right. Instead of importScriptPage('MediaWiki:Common.js/deletebuttons.js', 'a'); it should be importScript('MediaWiki:Common.js/deletebuttons.js'); as "MediaWiki:Common.js/deletebuttons.js" doesn't exist on w:c:a.

Hope this helps :).

0

Ah thanks Jr Mine! That works perfectly now!

Write a reply...