Template:Draft article check/doc

From blackwiki
< Template:Draft article check
Revision as of 15:27, 23 December 2013 by imported>HectorMoffet (→‎ShowOnlyToLoggedInUsers.js)
Jump to navigation Jump to search

DraftChecker is a template to alert editors to the existence of relevant articles or drafts.

  • In Draft or Draft_Talk, DraftChecker will check for an Article of the same title.
  • In Article_Talk, DraftChecker will check for a Draft of the same title.
  • In the Article namespace, Draftchecker will check for a Draft of the same title, but will only show a message if a custom javascript determines the user is logged in.

Usage

{{DraftChecker}}

Technical details

View content for Logged-in Users

Currently, viewing DraftChecker links in Article space requires that you install the ShowOnlyToLoggedInUsers.js script.

Individual editors can install this on a per-user basis by adding the following line to their common.js file:

importScript('User:HectorMoffet/ShowOnlyToLoggedInUsers.js');

In future, the ShowOnlyToLoggedInUsers.js script could be added as a gadget, or included in Wikipedia's default javascript.

Test Cases