Munurin millum rættingarnar hjá "Module:Redirect hatnote/doc"
Appearance
Content deleted Content added
EileenSanda (kjak | íkøst) Stovnaði síðu við " This module produces a hatnote for disambiguating a page that is linked to by a given redirect. It implements the {{tl|redirect}} hatnote template. == Usa..." |
s Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html] |
||
Linja 10: | Linja 10: | ||
To use this module from Lua, first load the module. |
To use this module from Lua, first load the module. |
||
< |
<syntaxhighlight lang="lua"> |
||
local mRedirectHatnote = require('Module:Redirect hatnote') |
local mRedirectHatnote = require('Module:Redirect hatnote') |
||
</syntaxhighlight> |
|||
</source> |
|||
The module can then be used with the following syntax: |
The module can then be used with the following syntax: |
||
< |
<syntaxhighlight lang="lua"> |
||
mRedirectHatnote._redirect(redirect, data, options, titleObj) |
mRedirectHatnote._redirect(redirect, data, options, titleObj) |
||
</syntaxhighlight> |
|||
</source> |
|||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| |
Seinasta endurskoðan sum var 22. apr 2020 kl. 16:38
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
[rætta wikitekst]This module cannot be used directly from wikitext. Please use the {{redirect}} template instead.
Usage from Lua
[rætta wikitekst]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)