请输入您要查询的百科知识:

 

词条 Module:Pp-move-indef/doc
释义

  1. Usage

      From wikitext    From Lua  
{{Module rating|protected}}

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 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:

  • Category:Wikipedia indefinitely move-protected pages
  • Category:Wikipedia move-protected talk pages
  • Category:Wikipedia move-protected user and user talk pages
  • Category:Wikipedia move-protected project pages
  • Category:Wikipedia move-protected portals

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

Usage

From wikitext

The usual way to use this module from wikitext is with the {{tl|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

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.

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/23 10:31:03