Jump to content

User:Thetrick/tfd helper

From Wikipedia, the free encyclopedia

WARNING: BETA STATUS SOFTWARE!

tfd_helper is a script I basically stole from User:Jnothman painstakingly developed to help with atomizing fracking uncategorized templates managing the template namespace. It is nowhere near as nice as the one I shamelessly copied reverse-engineered, but it works for me. Unfortunately, it has suffered from severe featuritis to the point of software bloat, and it is now a all-singing, all-dancing programming marvel general-purpose template namespace management tool.

What you need

[edit]

If it works in anything other than Firefox consider it a miracle. It opens new windows for TfDs and other things, so you should set Firefox to open new windows in tabs.

What you do

[edit]

Open your monobook.js (probably here), add ONE of the following, and save the fool thing (with an edit summary, of course). The first line enables basic nomination and voting, the second enables everything. Unless you are obsessed with the template namespace, you want the basic script.

/**** tfd helper - basic ****/
importScript('User:Thetrick/tfd_helper/votenom.js');
/**** tfd helper - complete ****/
importScript('User:Thetrick/tfd_helper/script.js');

What more you can do

[edit]

Like you have any choice in the matter.

If you're vain and have a personalized signature, you can add it in by editing your monobook.js (probably here) and adding the following AFTER the script import line (note - do NOT include any datestamp coding):

tfdh_signature = "yoursillysighere";

If you want to be able to append additional templates to an existing nomination, add the following AFTER the script import line and you will receive another prompt:

tfdh_multi = true;

I've decided to be cautious and hide some functions by default. If you think you know what you are doing and have added the complete script, you can enable the advanced functions by adding the following AFTER the script import line:

tfdh_advanced = true;

What happens next

[edit]

When you are viewing a TfD discussion page or the Deletion today page (and possibly other pages that transcribe TfD log pages), you will be able to vote on individual nominations. On the right side of each page the [edit] link next to a nomination will be replaced with [edit • vote]. Clicking on "vote" will bring up a series of dialogs where you can enter your vote and explanation. (basic and complete)

If you look over to your left (your other left, silly), you will see box labeled "toolbox". For all pages, the script will show the following new and fairly harmless options:

  1. TfDh: discussions - View Templates for Deletion discussions - Get involved. (basic and complete)
  2. TfDh: uncat cat. - View Category:Wikipedia uncategorized templates - Help categorize. (complete only)
  3. TfDh: uncat list - View Special:UncategorizedTemplates list - Help categorize or flag as uncategorized. (complete only)
  4. TfDh: find category - Search the category namespace - Good for searching for template categories. (complete only)
  5. TfDh: find template - Search the template namespace - Good for searching for similar templates to examine their categorization. (complete only)
  6. TfDh: view prefix - View the template namespace starting at a specified string - Good for viewing sub-templates and groups of templates. (complete only)

When a page is a template, the menu will show the following new options:

  1. TfDh: add category - Add categories to this template - You can add up to three. (complete only)
  2. TfDh: flag as uncat. - Flag this template as uncategorized - Use this if you can't find a category. (complete only)
  3. TfDh: nominate TfD - Nominate this template for deletion (navboxes, infoboxes, messageboxes, etc.) - Use when the template is used straight-up and the delete message won't interfere (severely) with pages the template is used on. (basic and complete)
  4. TfDh: n. TfD (parsed) - Nominate this template for deletion (parsed templates) - Use when the template is substituted, or when the message would interfere with the page the template is used on. (complete only)
  5. TfDh: n. TfD (inline) - Nominate this template for deletion (inline templates) - Use when the template is small and/or used inline. (complete only)
  6. TfDh: notify user - Notify a user that this template has been nominated for deletion - Notify a user that their creation is about to be deleted. (basic and complete)

If you think you are an advanced user you will also see the following options (make sure you understand WP:CSD and other relevant policies first):

  1. TfDh: req. CSD#T1 - Request speedy deletion because this template is divisive or inflammatory - Inspect the links, history, talk, and logs first. Use with caution! (complete only)
  2. TfDh: req. CSD#T2 - Request speedy deletion because this template blatently misrepresents policy - Inspect the links, history, talk, and logs first. Use with caution! (complete only)
  3. TfDh: req. CSD#T3 - Request speedy deletion because this template is unused AND duplicates or hardcodes another template - Inspect the links, history, talk, and logs first. Use with caution! (complete only)
  4. TfDh: req. CSD#G1 - Request speedy deletion because this template is patently nonsensical - Inspect the links, history, talk, and logs first. Use with caution! (complete only)
  5. TfDh: req. CSD#G2 - Request speedy deletion because this template is a test template - Inspect the links, history, talk, and logs first. Use with caution! (complete only)
  6. TfDh: req. CSD#G6 - Request speedy deletion of this template for housekeeping reasons - Inspect the links, history, talk, and logs first. Use with caution! (complete only)
  7. TfDh: req. CSD#G7 - Request speedy deletion of this template because the author requested it - Inspect the links, history, talk, and logs first. Use with caution! (complete only)

The advanced option will also enable a new tab at the top of the page:

  1. add 1 cat. - Add just one category to this template - Quickly add one category with an automatic edit summary and no preview. Use only if you know for sure the category exists and is appropriate. (complete only)

You are now ready to ride herd on the template namespace to your heart's content.

What I plan to do

[edit]
  • nothing right now

What's your problem?

[edit]

Got a complaint? Hahahahahahahohohohohehehe! Giggle. (Seriously, add them to my talk page. Thanks.)