Module:Redirect hatnote/doc: Difference between revisions
From Guild of Archivists
m (1 revision imported) |
m (Removed Wikipedia-specific warning banners) |
||
Line 1: | Line 1: | ||
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 12: | Line 9: | ||
To use this module from Lua, first load the module. | To use this module from Lua, first load the module. | ||
< | <code> | ||
local mRedirectHatnote = require('Module:Redirect hatnote') | local mRedirectHatnote = require('Module:Redirect hatnote') | ||
</ | </code> | ||
The module can then be used with the following syntax: | The module can then be used with the following syntax: | ||
< | <code> | ||
mRedirectHatnote._redirect(redirect, data, options, titleObj) | mRedirectHatnote._redirect(redirect, data, options, titleObj) | ||
</ | </code> | ||
== See also == | == See also == |
Latest revision as of 05:43, 20 January 2018
This module produces a hatnote for disambiguating a page that is linked to by a given redirect. It implements the {{redirect}} hatnote template.
Usage from wikitext[edit source]
This module cannot be used directly from wikitext. Please use the {{redirect}} or {{redirect2}} templates instead.
Usage from Lua[edit source]
To use this module from Lua, first load the module.
local mRedirectHatnote = require('Module:Redirect hatnote')
The module can then be used with the following syntax:
mRedirectHatnote._redirect(redirect, data, options, titleObj)
See also[edit source]