Skip to content

Commit

Permalink
welcome: minor refactor (wikimedia-gadgets#1804)
Browse files Browse the repository at this point in the history
- add comment
- capitalize a template name
- remove dead code (the template W-short does not support the parameter heading=true)

Related wikimedia-gadgets#1785
  • Loading branch information
NovemLinguae committed Jul 19, 2023
1 parent ccae792 commit fe1535b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/friendlywelcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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',
Expand Down

0 comments on commit fe1535b

Please sign in to comment.