Module:Namespace detect/config: Difference between revisions
Content added Content deleted
(create separate configuration page for Module:Namespace detect) |
(make comments more informative, and document the possibility to add parameter as an array) |
||
Line 1: | Line 1: | ||
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
||
-- Namespace detect configuration data -- |
-- Namespace detect configuration data -- |
||
-- -- |
|||
-- This module stores configuration data for Module:Namespace detect. Here -- |
|||
-- you can localise the module to your wiki's language. -- |
|||
-- -- |
|||
-- To activate a configuration item, you need to uncomment it. This means -- |
|||
-- that you need to remove the text "-- " at the start of the line. -- |
|||
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
||
local cfg = {} |
local cfg = {} -- Don't edit this line. |
||
-------------------------------------------------------------------------------- |
|||
-- This parameter displays content for the main namespace: |
|||
-- Parameter names -- |
|||
⚫ | |||
-- These configuration items specify custom parameter names. Values added -- |
|||
-- here will work in addition to the default English parameter names. -- |
|||
-- To add one extra name, you can use this format: -- |
|||
-- -- |
|||
-- cfg.foo = 'parameter name' -- |
|||
-- -- |
|||
-- To add multiple names, you can use this format: -- |
|||
-- -- |
|||
-- cfg.foo = {'parameter name 1', 'parameter name 2', 'parameter name 3'} -- |
|||
-------------------------------------------------------------------------------- |
|||
-- This parameter displays |
---- This parameter displays content for the main namespace: |
||
cfg. |
-- cfg.main = 'main' |
||
-- This parameter displays |
---- This parameter displays in talk namespaces: |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
-- This parameter |
---- This parameter displays content for "other" namespaces (namespaces for which |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
-- This parameter |
---- This parameter makes talk pages behave as though they are the corresponding |
||
⚫ | |||
cfg.demospace = 'demospace' |
|||
⚫ | |||
⚫ | |||
-- This parameter sets a |
---- This parameter sets a demonstration namespace: |
||
cfg. |
-- cfg.demospace = 'demospace' |
||
---- This parameter sets a specific page to compare: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
-------------------------------------------------------------------------------- |
|||
⚫ | |||
-- Table configuration -- |
|||
⚫ | |||
-- These configuration items allow customisation of the "table" function, -- |
|||
⚫ | |||
-- used to generate a table of possible parameters in the module -- |
|||
-- documentation. -- |
|||
-------------------------------------------------------------------------------- |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
-------------------------------------------------------------------------------- |
|||
-- End of configuration data -- |
|||
-------------------------------------------------------------------------------- |
|||
return cfg |
return cfg -- Don't edit this line. |