Tutorials |
---|
AdvancedOasisUI - BackToTopButton - MarkForDeletion - RelatedDiscussionsModule - RevealAnonIP - SearchButtonV2 - VisualSpellCheck - Wikimarks |
MarkForDeletion is a relatively easy script to use, install, and customize.
Installation[]
To install MarkForDeletion, simply add:
importArticles({
type: "script",
articles: [
"u:dev:MarkForDeletion/code.js"
]
});
to your global.js
on Community Central to affect all wikis or your wikia.js
on this wiki to affect only this wiki. You can only have one importArticles
call in each console page, so add just:
"u:dev:MarkForDeletion/code.js"
if you already have one. Note that if you haven't yet used any script articles you will also need to copy the "type:script articles[]
" section.
Customization[]
To customize the default text that appears in the alert box, simply add this to one the consoles mentioned above:
window.MarkForDeletion = {
promptedDeleteReason: "<prompt>"
};
Usage[]
This script causes a new link to be added to the bottom toolbar called "Mark for deletion." Clicking this makes an alert box appear where you can enter a reason. Submitting this will add {{Delete|reason}}
to the top of the page.
Clear Cache[]
Before this script can begin working, you must clear your cache by doing the following based on your browser.
- Internet Explorer, Firefox, Chrome: Press Ctrl+F5.
- Opera: Go to Tools→Preferences.
- Konqueror and Safari: Click Reload.
This tutorial was created by Paperluigi ttyd.