Module:Hatnote/doc: Difference between revisions

Content deleted Content added
update rellink class to hatnote class and expand the introduction
Line 97:
 
<source lang="lua">
mHatnote.makeWikitextError(msg, demoaddTrackingCategory)
</source>
 
Formats the string <var>msg</var> as a red wikitext error message. Normally this function also adds [[:Category:Hatnote templates with errors]]; however, if <var>demoaddTrackingCategory</var> is truenot false after being passed through [[Module:Yesno]], then the category is suppressed. This means that the category can be suppressed with <var>addTrackingCategory</var> values including "no", "n", 0, "false", and {{code|false|lua}}.
 
Example: