Jump to content
Wikipedia The Free Encyclopedia

Module:Title blacklist

From Wikipedia, the free encyclopedia
Module documentation[view] [edit] [history] [purge]
[画像:Warning] This Lua module is used in system messages.
Changes to it can cause immediate changes to the Wikipedia user interface.
To avoid major disruption, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them.
This module can only be edited by administrators because it is transcluded onto one or more cascade-protected pages.

Helper module to get protection data about a blacklisted page entry.

Usage

{{#invoke:Title blacklist|main|action=edit|pagename=Example}} -> "templateeditor", "autoconfirmed", or the empty string.

{{#invoke:Title blacklist|main|action=edit|pagename=Example|templateeditor=Example1|autoconfirmed=Example2}} -> "Example1", "Example2", or the empty string.

The above documentation is transcluded from Module:Title blacklist/doc. (edit | history)
Editors can experiment in this module's sandbox (edit | diff) and testcases (create) pages.
Subpages of this module.

 --helper module for title blacklist

 localp={}
 p.main=function(frame)
 localargs=frame.args
 localaction=args['action']
 localpagename=args['pagename']
 localblacklistentry=mw.ext.TitleBlacklist.test(action,pagename)
 ifblacklistentrythen
 ifblacklistentry.params.autoconfirmedthen
 returnargs['autoconfirmed']or"autoconfirmed"
 else
 returnargs['templateeditor']or"templateeditor"
 end
 elsereturn''end
 end

 returnp

AltStyle によって変換されたページ (->オリジナル) /