Munurin millum rættingarnar hjá "Module:Redirect/doc"
Content deleted Content added
EileenSanda (kjak | íkøst) Stovnaði síðu við "{{used in system}} {{Module rating|beta}} This module contains functions to find the target of a redirect page. == Main == The main function accepts t..." |
s Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html] |
||
Linja 26:
To use this, first load the module.
<
local mRedirect = require('Module:Redirect')
</syntaxhighlight>
Then use the function with the following syntax:
<
mRedirect.luaMain(rname, bracket)
</syntaxhighlight>
<var>rname</var> is the name of the redirect page, and if <var>bracket</var> is anything but false or nil, the module will produce a link rather than just a page name.
Linja 53:
To use it, first load the module.
<
local mRedirect = require('Module:Redirect')
</syntaxhighlight>
Then use the function with the following syntax:
<
mRedirect.getTarget(page)
</syntaxhighlight>
<var>page</var> can be either the name of the redirect page as a string, or a [[mw:Extension:Scribunto/Lua reference manual#Title objects|mw.title object]].
|