Module:Protection banner/doc: रिवीजन सभ के बीचा में अंतर
Content deleted Content added
छो १७ revisions imported from en:Module:Protection_banner/doc |
छो Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html] |
||
लाइन 29:
First, load the module.
<
local mProtectionBanner = require('Module:Protection banner')
</syntaxhighlight>
Then you can make protection banners by using the _main function.
<
mProtectionBanner._main(args, cfg, titleObj)
</syntaxhighlight>
<var>args</var> is a 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.
|