Jump to content

Module:Documentation/config: Difference between revisions

m
1 revision imported: Templates
m (1 revision imported from w:en:Module:Documentation/config)
m (1 revision imported: Templates)
Line 13:
-- Protection template configuration
----------------------------------------------------------------------------------------------------
 
-- cfg['protection-template']
-- The name of the template that displays the protection icon (a padlock on enwiki).
cfg['protection-template'] = 'pp-template'
 
-- cfg['protection-reason-edit']
Line 22 ⟶ 18:
-- [[Module:Protection banner]].
cfg['protection-reason-edit'] = 'template'
 
--[[
-- cfg['protection-template-args']
-- Any arguments to send to the protection template. This should be a Lua table.
-- For example, if the protection template is "pp-template", and the wikitext template invocation
-- looks like "{{pp-template|docusage=yes}}", then this table should look like "{docusage = 'yes'}".
--]]
cfg['protection-template-args'] = {docusage = 'yes'}
 
--[[
Cookies help us deliver our services. By using our services, you agree to our use of cookies.