From 41d377c5359c0b603125c0708b6651d93bad2509 Mon Sep 17 00:00:00 2001 From: NovemLinguae Date: Fri, 23 Jun 2023 00:08:10 -0700 Subject: [PATCH] welcome: minor refactor - add comment - capitalize a template name - remove dead code (the template W-short does not support the parameter heading=true) Related #1785 --- modules/friendlywelcome.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/friendlywelcome.js b/modules/friendlywelcome.js index 7ec987fcf..87d73677b 100644 --- a/modules/friendlywelcome.js +++ b/modules/friendlywelcome.js @@ -226,6 +226,7 @@ Twinkle.welcome.populateWelcomeList = function(e) { // - $USERNAME$ - replaced by the welcomer's username, depending on user's preferences // - $ARTICLE$ - replaced by an article name, if "linkedArticle" is true // - $HEADER$ - adds a level 2 header (most templates already include this) +// - $EXTRA$ - custom message to be added at the end of the template. not implemented yet. Twinkle.welcome.templates = { standard: { @@ -242,7 +243,7 @@ Twinkle.welcome.templates = { }, 'welcome-short': { description: 'a shorter welcome message', - syntax: '{{subst:w-short|heading=true|$EXTRA$}}' + syntax: '{{subst:W-short|$EXTRA$}}' }, 'welcome-cookie': { description: 'a welcome message with some helpful links and a plate of cookies',