Modul:Namespace detect/config: Unterschied zwischen den Versionen

Aus Android Wiki
dewiki>Mr. Stradivarius
(use cfg.demopage rather than cfg.page now that the default parameter has been changed on the /data page)
 
K (1 Version importiert)
 
(2 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 8: Zeile 8:
-- that you need to remove the text "-- " at the start of the line.          --
-- that you need to remove the text "-- " at the start of the line.          --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
 
local cfg = {} -- Don't edit this line.
local cfg = {} -- Don't edit this line.
 
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--                              Parameter names                              --
--                              Parameter names                              --
Zeile 23: Zeile 23:
-- cfg.foo = {'parameter name 1', 'parameter name 2', 'parameter name 3'}    --
-- cfg.foo = {'parameter name 1', 'parameter name 2', 'parameter name 3'}    --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
 
---- This parameter displays content for the main namespace:
---- This parameter displays content for the main namespace:
-- cfg.main = 'main'
-- cfg.main = 'main'
 
---- This parameter displays in talk namespaces:
---- This parameter displays in talk namespaces:
-- cfg.talk = 'talk'
-- cfg.talk = 'talk'
 
---- This parameter displays content for "other" namespaces (namespaces for which
---- This parameter displays content for "other" namespaces (namespaces for which
---- parameters have not been specified):
---- parameters have not been specified):
-- cfg.other = 'other'
-- cfg.other = 'other'
 
---- This parameter makes talk pages behave as though they are the corresponding
---- This parameter makes talk pages behave as though they are the corresponding
---- subject namespace. Note that this parameter is used with [[Module:Yesno]].
---- subject namespace. Note that this parameter is used with [[Module:Yesno]].
---- Edit that module to change the default values of "yes", "no", etc.
---- Edit that module to change the default values of "yes", "no", etc.
-- cfg.subjectns = 'subjectns'
-- cfg.subjectns = 'subjectns'
 
---- This parameter sets a demonstration namespace:
---- This parameter sets a demonstration namespace:
-- cfg.demospace = 'demospace'
-- cfg.demospace = 'demospace'
 
---- This parameter sets a specific page to compare:
---- This parameter sets a specific page to compare:
cfg.demopage = 'page'
cfg.demopage = 'page'
 
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--                          Table configuration                              --
--                          Table configuration                              --
Zeile 51: Zeile 51:
-- documentation.                                                            --
-- documentation.                                                            --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
 
---- The header for the namespace column in the wikitable containing the list of
---- The header for the namespace column in the wikitable containing the list of
---- possible subject-space parameters.
---- possible subject-space parameters.
-- cfg.wikitableNamespaceHeader = 'Namespace'
-- cfg.wikitableNamespaceHeader = 'Namespace'
 
---- The header for the wikitable containing the list of possible subject-space
---- The header for the wikitable containing the list of possible subject-space
---- parameters.
---- parameters.
-- cfg.wikitableAliasesHeader = 'Aliases'
-- cfg.wikitableAliasesHeader = 'Aliases'
 
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--                        End of configuration data                          --
--                        End of configuration data                          --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
 
return cfg -- Don't edit this line.
return cfg -- Don't edit this line.

Aktuelle Version vom 14. November 2015, 16:17 Uhr

MediaWiki.org
MediaWiki.org
Diese Seite basiert in ihrer ersten oder einer späteren Version auf dem Artikel „Module:Namespace_detect/config“ aus dem MediaWiki Wiki und steht, falls nicht anders angegeben, unter der Creative Commons Attribution-ShareAlike License. Auf MediaWiki.org ist eine Liste der Versionen und Autoren verfügbar.

Skriptfehler: Interner Lua-Fehler: Der Interpreter beendet sich mit dem Status 127.

--------------------------------------------------------------------------------
--                    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 = {} -- Don't edit this line.
 
--------------------------------------------------------------------------------
--                              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 content for the main namespace:
-- cfg.main = 'main'
 
---- This parameter displays in talk namespaces:
-- cfg.talk = 'talk'
 
---- This parameter displays content for "other" namespaces (namespaces for which
---- parameters have not been specified):
-- cfg.other = 'other'
 
---- This parameter makes talk pages behave as though they are the corresponding
---- subject namespace. Note that this parameter is used with [[Module:Yesno]].
---- Edit that module to change the default values of "yes", "no", etc.
-- cfg.subjectns = 'subjectns'
 
---- This parameter sets a demonstration namespace:
-- cfg.demospace = 'demospace'
 
---- This parameter sets a specific page to compare:
cfg.demopage = 'page'
 
--------------------------------------------------------------------------------
--                           Table configuration                              --
-- These configuration items allow customisation of the "table" function,     --
-- used to generate a table of possible parameters in the module              --
-- documentation.                                                             --
--------------------------------------------------------------------------------
 
---- The header for the namespace column in the wikitable containing the list of
---- possible subject-space parameters.
-- cfg.wikitableNamespaceHeader = 'Namespace'
 
---- The header for the wikitable containing the list of possible subject-space
---- parameters.
-- cfg.wikitableAliasesHeader = 'Aliases'
 
--------------------------------------------------------------------------------
--                        End of configuration data                           --
--------------------------------------------------------------------------------
 
return cfg -- Don't edit this line.