Munurin millum rættingarnar hjá "Module:Pp-move-indef/doc"

Frá Wikipedia, hin frælsa alfrøðin
Content deleted Content added
Stovnaði síðu við "This module implements {{tl|pp-move-indef}}. It is a protection template, but has no visible output, unlike other protection templates which output banners or padlock icon..."
 
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 20: Linja 20:
From Lua, load the module like this:
From Lua, load the module like this:


<source lang="lua">
<syntaxhighlight lang="lua">
local ppMoveIndef = require('Module:Pp-move-indef').main
local ppMoveIndef = require('Module:Pp-move-indef').main
</syntaxhighlight>
</source>


You can then use <var>ppMoveIndef</var> like this:
You can then use <var>ppMoveIndef</var> like this:


<source lang="lua">
<syntaxhighlight lang="lua">
ppMoveIndef(title)
ppMoveIndef(title)
</syntaxhighlight>
</source>


The <var>title</var> parameter is an optional title object, used for testing purposes. If no parameters are supplied the module works on the current page.
The <var>title</var> parameter is an optional title object, used for testing purposes. If no parameters are supplied the module works on the current page.

Seinasta endurskoðan sum var 22. apr 2020 kl. 16:38

This module implements {{pp-move-indef}}. It is a protection template, but has no visible output, unlike other protection templates which output banners or padlock icons. The only output is a category.

If the page is move-protected with either full move protection or template move protection, the module outputs one of the following categories, depending on the namespace it is used in:

On pages that are not full-move-protected or template-move-protected, the module outputs Category:Wikipedia pages with incorrect protection templates.

Usage[rætta wikitekst]

From wikitext[rætta wikitekst]

The usual way to use this module from wikitext is with the {{pp-move-indef}} template. You can also use it from #invoke directly with the code {{#invoke:pp-move-indef|main}}. Neither of these take any parameters, and both only work on the current page.

From Lua[rætta wikitekst]

From Lua, load the module like this:

local ppMoveIndef = require('Module:Pp-move-indef').main

You can then use ppMoveIndef like this:

ppMoveIndef(title)

The title parameter is an optional title object, used for testing purposes. If no parameters are supplied the module works on the current page.