【広告】Amazonリンククリック後、何かを買うと北大Wikiの運営費になります

北大地図パズル紹介バナー

【ゲキムズ?】 北大地図パズル


「モジュール:Effective protection level」を編集中

ナビゲーションに移動 検索に移動

警告: ログインしていません。編集を行うと、あなたの IP アドレスが公開されます。ログインまたはアカウントを作成すれば、あなたの編集はその利用者名とともに表示されるほか、その他の利点もあります。

この編集を取り消せます。 下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。

最新版 編集中の文章
23行目: 23行目:
 
return nil -- not '*'. a page not being PC-protected is distinct from it being PC-protected with anyone able to review. also not '', as that would mean PC-protected but nobody can review
 
return nil -- not '*'. a page not being PC-protected is distinct from it being PC-protected with anyone able to review. also not '', as that would mean PC-protected but nobody can review
 
end
 
end
elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then
+
elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' and action ~= 'undelete' then
error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 )
+
error( 'First parameter must be one of edit, move, create, upload, undelete, autoreview', 2 )
 
end
 
end
 
if title.namespace == 8 then -- MediaWiki namespace
 
if title.namespace == 8 then -- MediaWiki namespace
if title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page
+
if title.text:sub(-3) == '.js' or title.text:sub(-4) == '.css' or title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page
 
return 'interfaceadmin'
 
return 'interfaceadmin'
 
else -- any non-JS/CSS MediaWiki page
 
else -- any non-JS/CSS MediaWiki page
38行目: 38行目:
 
return 'sysop'
 
return 'sysop'
 
end
 
end
 +
end
 +
if action == 'undelete' then
 +
return 'sysop'
 
end
 
end
 
local level = title.protectionLevels[action] and title.protectionLevels[action][1]
 
local level = title.protectionLevels[action] and title.protectionLevels[action][1]
51行目: 54行目:
 
return 'templateeditor'
 
return 'templateeditor'
 
elseif title.namespace == 6 then
 
elseif title.namespace == 6 then
return 'eliminator' -- 英語版では'filemover'
+
return 'filemover'
 
elseif level == 'extendedconfirmed' then
 
elseif level == 'extendedconfirmed' then
 
return 'extendedconfirmed'
 
return 'extendedconfirmed'
73行目: 76行目:
 
elseif action == 'upload' then
 
elseif action == 'upload' then
 
return 'autoconfirmed'
 
return 'autoconfirmed'
-- 英語版とは異なり、日本語版では現在のところIPユーザーでも記事等を作成可能なので、以下はコメントアウト
+
elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts
-- elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts
+
return 'user'
-- return 'user'
 
 
else
 
else
 
return '*'
 
return '*'

北大Wikiへの投稿はすべて、クリエイティブ・コモンズ 表示-継承 (詳細は北大Wiki:著作権を参照)のもとで公開したと見なされることにご注意ください。 自分が書いたものが他の人に容赦なく編集され、自由に配布されるのを望まない場合は、ここに投稿しないでください。
また、投稿するのは、自分で書いたものか、パブリック ドメインまたはそれに類するフリーな資料からの複製であることを約束してください。 著作権保護されている作品は、許諾なしに投稿しないでください!

このページを編集するには、下記の確認用の質問に回答してください (詳細):

取り消し 編集の仕方 (新しいウィンドウで開きます)

このページで使用されているテンプレート: