Difference between revisions of "Module:Message box"
Jump to navigation
Jump to search
add a template link when generating the subst error message
>Mr. Stradivarius (change pageTitle --> self.pageTitle) |
>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 |