Module:Pagetype/config and Module:Pagetype/config/sandbox: Difference between pages
(Difference between pages)
imported>MSGJ m +cfg for non-existent pages |
imported>Awesome Aasim No edit summary |
||
| Line 14: | Line 14: | ||
cfg.pagetypes = { | cfg.pagetypes = { | ||
[0] = 'article', -- Main namespace | [0] = 'article', -- Main namespace | ||
[2] = 'user | [2] = 'user $1', | ||
[4] = 'project | [4] = 'project $1', | ||
[6] = 'file', | [6] = 'file', | ||
[8] = 'interface | [8] = 'interface $1', -- MediaWiki namespace | ||
[10] = 'template', | [10] = '{{#switch:$2|wikitext=template|#default=$1}}', | ||
[12] = 'help page', | [12] = 'help page', | ||
[14] = 'category', | [14] = 'category', | ||
| Line 24: | Line 24: | ||
[118] = 'draft', | [118] = 'draft', | ||
[710] = 'Timed Text page', | [710] = 'Timed Text page', | ||
[828] = 'module | [828] = '{{#switch:$2|wikitext=Lua module page|#default=$1}}', | ||
[-1] = 'special page', | [-1] = 'special page', | ||
[-2] = 'file', -- Media namespace | [-2] = 'file', -- Media namespace | ||
['#default'] = '$1' | |||
} | |||
-- This table contains the names of each content model to use | |||
cfg.contentModels = { | |||
['javascript'] = 'JavaScript page', | |||
['css'] = 'CSS page', | |||
['json'] = 'JSON page', | |||
['text'] = 'plain text page', | |||
['sanitized-css'] = 'TemplateStyles page', | |||
['Scribunto'] = 'Lua module', | |||
['#default'] = 'page' | |||
} | } | ||
| Line 38: | Line 48: | ||
[10] = true, -- template | [10] = true, -- template | ||
[14] = true, -- category | [14] = true, -- category | ||
[828] = true | [828] = true -- module | ||
} | } | ||