Editing
Module
:
Pp-move-indef
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
-- This module implements [[Template:Pp-move-indef]]. local p = {} function p.main(title) if type(title) == 'string' then title = mw.title.new(title) elseif type(title) ~= 'table' or not title.text or not title.getContent then -- The title parameter is absent or not a title object. It could be a -- frame object if we are being called from #invoke. title = mw.title.getCurrentTitle() end local level = title and title.protectionLevels and title.protectionLevels.move and title.protectionLevels.move[1] local namespace = title and title.namespace local category if level == 'sysop' or level == 'templateeditor' then if namespace == 2 or namespace == 3 then category = 'Wikipedia move-protected user and user talk pages' elseif namespace == 4 or namepace == 12 then category = 'Wikipedia move-protected project pages' elseif namespace == 100 then category = 'Wikipedia move-protected portals' elseif title.isTalkPage then category = 'Wikipedia move-protected talk pages' else category = 'Wikipedia indefinitely move-protected pages' end else category = 'Wikipedia pages with incorrect protection templates' end return string.format( '[[%s:%s|%s]]', mw.site.namespaces[14].name, -- "Category" category, title.text -- equivalent of {{PAGENAME}} ) end return p
Summary:
Please note that all contributions to Zoophilia wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Page included on this page:
Module:Pp-move-indef/doc
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
associated-pages
Module
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information