User:SD0001/BDCS
Description | Wish users a happy birthday, first edit day or adminship anniversary |
---|---|
Author(s) | SD0001 |
Status | Beta |
Updated | December 7, 2019 (4 years ago) |
Skins | All desktop skins |
Source | User:SD0001/BDCS.js |
Birthday Committee script (BDCS) is a script created for the Birthday Committee, to assist in wishing users a happy birthday, first edit day, or adminship anniversary. Accessed through the menu item "BDC wish" (in the "More" menu) on user talk pages.
The code is adapted from Twinkle's welcome module.
To add custom wish templates, add the something like the following to your common.js page:
window.BDCS_CustomTemplates = [
"TemplateName",
"TemplateName2"
];
BDCS_CustomTemplates
is a list of template names (not necessarily in template namespace). You can mention additional parameters, such as "User:MyUsername/CustomWishTemplate|birthday=yes"
. But do not include the opening {{
or final }}
.
Installation
[edit]If you have the script-installer gadget, just click on the "Install" button in the infobox.
Otherwise, add the line
importScript('User:SD0001/BDCS.js'); // [[User:SD0001/BDCS.js]]
on your common.js page.