Editing Module:Pagetype/config
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 10: | Line 10: | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- This table holds the | -- This table holds the values to use for "main=true", "user=true", etc. Keys to | ||
-- table should be | -- this table should be namespace parameters that can be used with | ||
-- [[Module:Namespace detect]]. | |||
cfg.pagetypes = { | cfg.pagetypes = { | ||
[ | ['main'] = 'article', | ||
[ | ['user'] = 'user page', | ||
[ | ['project'] = 'project page', | ||
[ | ['wikipedia'] = 'project page', | ||
[ | ['wp'] = 'project page', | ||
[ | ['file'] = 'file', | ||
[ | ['image'] = 'file', | ||
[ | ['mediawiki'] = 'interface page', | ||
[ | ['template'] = 'template', | ||
[ | ['help'] = 'help page', | ||
[ | ['category'] = 'category', | ||
[ | ['portal'] = 'portal', | ||
[ | ['draft'] = 'draft', | ||
[ | ['timedtext'] = 'Timed Text page', | ||
[ | ['module'] = 'module', | ||
[ | ['topic'] = 'topic', | ||
['gadget'] = 'gadget', | |||
['gadget definition'] = 'gadget definition', | |||
['talk'] = 'talk page', | |||
['special'] = 'special page', | |||
['media'] = 'file', | |||
} | } | ||
-- This table holds the namespaces to be looked up from cfg.pagetypes by | -- This table holds the names of the namespaces to be looked up from | ||
-- cfg.pagetypes by default. | |||
cfg.defaultNamespaces = { | cfg.defaultNamespaces = { | ||
'main', | |||
'file', | |||
'template', | |||
'category', | |||
'module' | |||
} | } | ||
-- This table holds the namespaces to be looked up from cfg.pagetypes if | -- This table holds the names of the namespaces to be looked up from | ||
-- cfg.pagetypes if cfg.defaultnsExtended is set. | |||
cfg.extendedNamespaces = { | cfg.extendedNamespaces = { | ||
'main', | |||
'user', | |||
'project', | |||
'file', | |||
'mediawiki', | |||
'template', | |||
'category', | |||
'help', | |||
'portal', | |||
'module', | |||
'draft' | |||
} | } | ||
Line 75: | Line 76: | ||
-- The value of cfg.defaultns to set no default namespaces. | -- The value of cfg.defaultns to set no default namespaces. | ||
cfg.defaultnsNone = 'none' | cfg.defaultnsNone = 'none' | ||
-- The parameter name to use for disambiguation pages page. | -- The parameter name to use for disambiguation pages page. | ||
Line 88: | Line 83: | ||
-- pages. These should be lower-case. | -- pages. These should be lower-case. | ||
cfg.dabAliases = { | cfg.dabAliases = { | ||
'disambiguation', | |||
'disambig', | |||
'disamb', | |||
'dab' | |||
} | } | ||
Line 102: | Line 97: | ||
-- This table holds the different possible aliases for N/A-class pages. These | -- This table holds the different possible aliases for N/A-class pages. These | ||
-- should be lower-case. | -- should be lower-case. | ||
cfg.naAliases = { | cfg.naAliases = {'na', 'n/a'} | ||
} | |||
-- The default value for N/A-class pages. | -- The default value for N/A-class pages. |