(i) Дакументацыя

Модуль утрымлівае даныя канфігурацыі для Модуль:Pagetype. Глядзіце каментарыі модуля для разумення таго, як рэдагаваць даныя.

Каб пазбегнуць паломак старонак, дзе ўжыты гэты модуль, пажадана эксперыментаваць у пясочніцы для модуляў.


--------------------------------------------------------------------------------
--                  Module:Pagetype configuration data                        --
-- This page holds localisation and configuration data for Module:Pagetype.   --
--------------------------------------------------------------------------------

local cfg = {} -- Не рэдагуйце гэты радок.

--------------------------------------------------------------------------------
--                        Start configuration data                            --
--------------------------------------------------------------------------------

-- У гэтай табліцы знаходзяцца значэнні, якія выкарыстоўваюцца для
-- "main=true", "user=true" і інш. Ключамі да гэтай табліцы павінны
-- быць параметры прастораў назваў, якія можна выкарыстаць разам з
-- [[Модуль:Namespace detect]].
cfg.pagetypes = {
	['main']              = 'артыкул',
	['user']              = 'старонка ўдзельніка',
	['u']                 = 'старонка ўдзельніка',
	['project']           = 'старонка праекта',
	['wikipedia']         = 'старонка праекта',
	['wp']                = 'старонка праекта',
	['wikiproject']       = 'старонка праекта',
	['file']              = 'файл',
	['image']             = 'файл',
	['mediawiki']         = 'старонка інтэрфейсу',
	['template']          = 'шаблон',
	['help']              = 'старонка даведкі',
	['category']          = 'катэгорыя',
	['portal']            = 'партал',
	['draft']             = 'чарнавік',
	['timedtext']         = 'Timed Text page',
	['arbcom']            = 'arbitration page',
	['education program'] = 'education program page',
	['module']            = 'модуль',
	['topic']             = 'topic',
	['gadget']            = 'гаджэт',
	['gadget definition'] = 'gadget definition',
	['talk']              = 'старонка размоў',
	['special']           = 'спецыяльная старонка',
	['media']             = 'файл'
}

-- This table holds the names of the namespaces to be looked up from
-- cfg.pagetypes by default.
cfg.defaultNamespaces = {
	'main',
	'file',
	'template',
	'category',
	'module'
}

-- This table holds the names of the namespaces to be looked up from
-- cfg.pagetypes if cfg.defaultnsExtended is set.
cfg.extendedNamespaces = {
	'main',
	'user',
	'project',
	'file',
	'mediawiki',
	'template',
	'category',
	'help',
	'portal',
	'module',
	'draft'
}

-- The parameter name to set which default namespace values to be looked up from
-- cfg.pagetypes.
cfg.defaultns = 'defaultns'

-- The value of cfg.defaultns to set all namespaces, including talk.
cfg.defaultnsAll = 'all'

-- The value of cfg.defaultns to set the namespaces listed in
-- cfg.extendedNamespaces
cfg.defaultnsExtended = 'extended'

-- The value of cfg.defaultns to set no default namespaces.
cfg.defaultnsNone = 'none'

-- The parameter name to use for disambiguation pages page.
cfg.dab = 'dab'

-- This table holds the different possible aliases for disambiguation-class
-- pages. These should be lower-case.
cfg.dabAliases = {
	'disambiguation',
	'disambig',
	'disamb',
	'dab',
	'неадназначнасць'
}

-- The default value for disambiguation pages.
cfg.dabDefault = 'page'

-- The parameter name to use for N/A-class page.
cfg.na = 'na'

-- This table holds the different possible aliases for N/A-class pages. These
-- should be lower-case.
cfg.naAliases = {'na', 'n/a'}

-- The default value for N/A-class pages.
cfg.naDefault = 'page'

-- The parameter name to use for redirects.
cfg.redirect = 'redirect'

-- The default value to use for redirects.
cfg.redirectDefault = 'redirect'

-- The parameter name for undefined namespaces.
cfg.other = 'other'

-- The value used if the module detects an undefined namespace.
cfg.otherDefault = 'page'

-- Звычайны суфікс для множнага ліку.
cfg.plural = 'ы'

-- This table holds plurals not formed by a simple suffix.
cfg.irregularPlurals = {
	['main']              = 'артыкулы',
	['user']              = 'старонкі ўдзельнікаў',
	['u']                 = 'старонкі ўдзельнікаў',
	['project']           = 'старонкі праектаў',
	['wikipedia']         = 'старонкі праектаў',
	['wp']                = 'старонкі праектаў',
	['wikiproject']       = 'старонкі праектаў',
	['file']              = 'файлы',
	['image']             = 'файлы',
	['mediawiki']         = 'старонкі інтэрфейсу',
	['template']          = 'шаблоны',
	['help']              = 'старонкі даведкі',
	['category']          = 'катэгорыі',
	['portal']            = 'парталы',
	['draft']             = 'чарнавікі',
	['module']            = 'модулі',
	['gadget']            = 'гаджэты',
	['talk']              = 'старонкі размоў',
	['special']           = 'спецыяльныя старонкі',
	['media']             = 'файлы',
	["other"]             = "старонкі"
}

--------------------------------------------------------------------------------
--                        End configuration data                              --
--------------------------------------------------------------------------------

return cfg -- Не рэдагуйце гэты радок.