Wikipedia:WikiProject Articles for creation/Helper script: Difference between revisions

Content deleted Content added
Clean-up lead section and infobox
More work, plus a major ce
Line 21:
'''Yet another AFC Helper Script''' is a Wikipedia [[WP:JS|script]] designed to help when reviewing Articles for creation [[CAT:AFC|article]] and [[WP:AFC/R|redirect]] submissions.
 
==Instructions Installation ==
=== Installation ===
* To install the script, simply add the following line of code to [[Special:MyPage/common.js|your account's common JavaScript file]]:
 
Line 42 ⟶ 41:
** Modern
 
=== UsageDocumenation ===
{{Commonscat|Screenshots of Wikipedia AfC helper}}
If the installation was done properly, you should see a "reviewReview" tab on the top of the page when viewing a submission in [[CAT:AFCPEND]] or when reviewing [[WP:AFC/R|redirects]]; it may be a drop-down tab in certain skins. Note that the tab will only appear when viewing a page that is a subpage of [[Wikipedia:Articles for creation]] or [[Wikipedia talk:Articles for creation]]. Misplaced submissions must be moved to the proper ___location first using the link in the submission template. (Note: Misplaced submissions are patrolled and moved by {{user|ArticlesForCreationBot}}, but this can take a few days.)
 
==== Reviewing an article submission ====
===== The "reviewReview" tab =====
When clicked, the review tab brings up 5five buttons:
*Accept
*Decline
*Comment
*Mark as reviewing
*More options
**Clean the submission
**Resubmit
 
=====Accepting=====
Once you are satisfied that the submission should be accepted, simply click the "acceptAccept" button. You will be prompted to enter the title of the page to move to (by default the name of the AFCAfC subpage) and to assess the article. You can also enter some additional wikitext that will be appended to the article (for example, stub tags and categories) and/or its talk page (for example, WikiProject banners).
 
The script currently does the following:
Line 62 ⟶ 63:
* It moves the submission to mainspace.
* It removes all {{tl|afc submission}} and {{tl|afc comment}} templates from the article.
* It removes all other templates starting with ''<nowiki>{{afc</nowiki>'' from the article and does some additional cleanup. If there are other templates in the template parameters, however, it will not work properly. It cannot remove subst'dsubstituted templates.
* It optionally appends some text to the article (useful for adding stub tags or categories in one go).
* It records the assessment on the talk page, and optionally adds some extra text.
* It records the creation at [[WPWikipedia:Articles for creation/recent]].
* It uncomments categories like <nowiki>[[:Category:XXX]]</nowiki>.
 
'''===== Known issues''': =====
* If a page is [[MediaWiki:Titleblacklist|blacklisted through the blacklist extension]] and the reviewer has neither the [[WP:account creator|account creator right]] nor adminthe [[WP:ADMIN|administrator]] right, the error message "''Error info:hookaborted : The modification you tried to make was aborted by an extension hook''" will occur and the page won't get moved. Please find an admin (or account creator) to accept the page, e.g. by asking at [[WT:AFC|this page]].
 
===== Declining a submission =====
If the submission should be declined, click the "declineDecline" button. You will be prompted to select or enter a reason for declining. There are also three possible options:
* Notify if possible - ifIf checked, the script will try to notify the creator. On by default.
* Blank - ifIf checked, will replace the content with {{tl|afc cleared}}; on by default if the decline reason is copyvio or BLP; otherwise off by default.
* Notify about the Teahouse - If checked, this will add a notice about asking questions about the submission at the [[WP:TH|Teahouse]] (it automatically checks if there is a Teahouse template already as well).
Once you click "submit", the script does the following:
* If you have not entered any reason, it aborts.
Line 82 ⟶ 84:
* It cleans the submission page.
 
=====Commenting Known issues =====
* There will be an error if you attempt to leave a Teahouse notification without leaving the default notice.

====Commenting====
The "commentComment" button can be used to insert a comment in the page. It is placed right before the first horizontal line, if there is one, or otherwise right after the AfC template. It also cleans the submission page.
 
=====Marking as being reviewed=====