Munurin millum rættingarnar hjá "Module:Redirect/doc"

Content deleted Content added
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..."
 
Xqbot (kjak | íkøst)
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.
 
<sourcesyntaxhighlight lang="lua">
local mRedirect = require('Module:Redirect')
</syntaxhighlight>
</source>
 
Then use the function with the following syntax:
 
<sourcesyntaxhighlight lang="lua">
mRedirect.luaMain(rname, bracket)
</syntaxhighlight>
</source>
 
<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.
 
<sourcesyntaxhighlight lang="lua">
local mRedirect = require('Module:Redirect')
</syntaxhighlight>
</source>
 
Then use the function with the following syntax:
 
<sourcesyntaxhighlight lang="lua">
mRedirect.getTarget(page)
</syntaxhighlight>
</source>
 
<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]].