Module:Message box: Difference between revisions
Jump to navigation
Jump to search
m>Mr. Stradivarius change pageTitle --> self.pageTitle |
m>Mr. Stradivarius add a template link when generating the subst error message |
||
Line 412: | Line 412: | ||
.addClass('error') | .addClass('error') | ||
.wikitext(format( | .wikitext(format( | ||
'Template <code>%s%s%s</code> has been incorrectly substituted.', | 'Template <code>%s[[Template:%s|%s]]%s</code> has been incorrectly substituted.', | ||
mw.text.nowiki('{{'), self.name, mw.text.nowiki('}}') | mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') | ||
)) | )) | ||
end | end |