From fe1535b9f92e759edf4d18a18d316ed41bcc5d4b Mon Sep 17 00:00:00 2001 From: NovemLinguae <79697282+NovemLinguae@users.noreply.github.com> Date: Wed, 19 Jul 2023 01:19:39 -0700 Subject: [PATCH] welcome: minor refactor (#1804) - 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 4d6ee62d4..016673362 100644 --- a/modules/friendlywelcome.js +++ b/modules/friendlywelcome.js @@ -230,6 +230,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: { @@ -246,7 +247,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',