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

Content deleted Content added
Stovnaði síðu við "This module creates protection banners and padlock icons that are placed at the top of protected pages. == Usage == Most users will not need to use 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:
First, load the module.
 
<sourcesyntaxhighlight lang="lua">
local mProtectionBanner = require('Module:Protection banner')
</syntaxhighlight>
</source>
 
Then you can make protection banners by using the _main function.
 
<sourcesyntaxhighlight lang="lua">
mProtectionBanner._main(args, cfg, titleObj)
</syntaxhighlight>
</source>
 
<var>args</var> is an table of arguments to pass to the module. For possible keys and values for this table, see the [[#Parameters|parameters section]]. The <var>cfg</var> and <var>titleObj</var> variables are intended only for testing; <var>cfg</var> specifies a customised config table to use instead of [[Module:Protection banner/config]], and <var>titleObj</var> specifies a mw.title object to use instead of the current title. <var>args</var>, <var>cfg</var> and <var>titleObj</var> are all optional.