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 = 'PBC move-protected user and user talk pages' elseif namespace == 4 or namepace == 12 then category = 'PBC move-protected project pages' elseif namespace == 100 then category = 'PBC move-protected portals' elseif title.isTalkPage then category = 'PBC move-protected talk pages' else category = 'PBC indefinitely move-protected pages' end else category = 'PBC 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 Porn Base Central may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see
Porn Base Central:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Template used on this page:
Module:Pp-move-indef/doc
(
view source
)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Module
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Upload file
Special pages
Page information