Changes
Jump to navigation
Jump to search
← Older edit
Module:Protection banner
(view source)
Revision as of 09:15, 14 March 2022
60 bytes added
,
09:15, 14 March 2022
m
1 revision imported
Line 652:
Line 652:
function Blurb:_makeVandalTemplateParameter()
function Blurb:_makeVandalTemplateParameter()
−
return
require
(
'Module
:
Vandal
-m
')._main{
+
return
mw.getCurrentFrame
(
)
:
expandTemplate{
−
self._args.user or self._protectionObj.title.baseText
+
title="vandal
-m
",
+
args={
self._args.user or self._protectionObj.title.baseText
}
}
}
end
end
Line 842:
Line 843:
-- protection from some other action, then don't bother displaying anything
-- protection from some other action, then don't bother displaying anything
-- for the other action (except categories).
-- for the other action (except categories).
−
if protectionObj.action == 'edit' or
+
if
not yesno(args.catonly) and (
protectionObj.action == 'edit' or
args.demolevel or
args.demolevel or
not getReachableNodes(
not getReachableNodes(
cfg.hierarchy,
cfg.hierarchy,
protectionObj.level
protectionObj.level
−
)[effectiveProtectionLevel('edit', protectionObj.title)]
+
)[effectiveProtectionLevel('edit', protectionObj.title)]
)
then
then
-- Initialise the blurb object
-- Initialise the blurb object
Wikiadmin
Bureaucrats
,
Interface administrators
,
Administrators (Semantic MediaWiki)
,
Curators (Semantic MediaWiki)
,
Editors (Semantic MediaWiki)
,
Suppressors
,
Administrators
19,911
edits
Navigation menu
Personal tools
Log in
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help
Shortcuts
New Person Format
New Document Format
New Source Format
New Citation Format
Search Card
Tools
Special pages
Printable version