User:SD0001/DYK-helper
Description | Easily create DYK nominations |
---|---|
Author(s) | SD0001 |
Status | Stable |
Updated | September 15, 2024 (3 months ago) |
Skins |
|
Source | User:SD0001/DYK-helper.js |
DYK-helper is a script to easily create a DYK nomination. It automates:
- Creation of the nomination page
- Transcluding the nomination at Template talk:Did you know
- Transcluding the nomination at article talk pages
Installation
[edit]If you have the script-installer gadget, just click on the "Install" button in the infobox.
Otherwise, place
importScript('User:SD0001/DYK-helper.js'); // [[User:SD0001/DYK-helper.js]]
Usage
[edit]The "DYK" menu option is available in the "More" dropdown menu, when viewing the article page (not on T:DYKT)
Any number of articles, authors and hooks are supported. For multi-article nominations, the nomination page will be transcluded on talk pages of all articles involved.
The script window displays a count of the number of words and characters of readable prose in the article. The character count is same as that given by the DYKcheck tool (though the word count may differ slightly, either could be more accurate).
For each hook, a live character count is shown at the side as you type. Per DYK guidelines, the three dots at the beginning ...
, the italicised text such as (pictured), are not counted. The syntax used for making links or for bolding too are not counted.
All hooks must begin with ... that
and end with ?
, failing which you cannot proceed. The script will also warn you if you are submitting without mentioning the source for each hook provided, though you may ignore this warning and go ahead.
- "DYK" link placement
- The "DYK" link appears by default in
p-cactions
, which is the "More" dropdown (in vector skin, in other skins, look for it alongside the row of subject/talk links). To change the default, add the linevar DYKH_portlet = "
to your common.js, replacingportletID
";portletID
with one of the portlet id values from Help:Customizing toolbars.
- Watchlist talk pages?
- Set whether or not you want to watchlist talk pages where you transclude the DYK nomination by adding
DYKH_watchlistTalkPage = true;
orDYKH_watchlistTalkPage = false;
in your common.js page. If unspecified, watchlisting depends on your site preferences.