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

72 bytes løgd afturat ,  7 mánaðir síðan
s
Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
(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])
 
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.
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]].
14.816

rættingar