Editing Module:Redirect hatnote/doc
From Guild of Archivists
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{high-use|28,000+}} | |||
{{Module rating|protected}} | |||
This module produces a [[WP:HATNOTE|hatnote]] for disambiguating a page that is linked to by a given redirect. It implements the {{tl|redirect}} hatnote template. | This module produces a [[WP:HATNOTE|hatnote]] for disambiguating a page that is linked to by a given redirect. It implements the {{tl|redirect}} hatnote template. | ||
Line 9: | Line 12: | ||
To use this module from Lua, first load the module. | To use this module from Lua, first load the module. | ||
< | <source lang="lua"> | ||
local mRedirectHatnote = require('Module:Redirect hatnote') | local mRedirectHatnote = require('Module:Redirect hatnote') | ||
</ | </source> | ||
The module can then be used with the following syntax: | The module can then be used with the following syntax: | ||
< | <source lang="lua"> | ||
mRedirectHatnote._redirect(redirect, data, options, titleObj) | mRedirectHatnote._redirect(redirect, data, options, titleObj) | ||
</ | </source> | ||
== See also == | == See also == |