模組:Namespace/data
編輯指引
若是有新加入新的命名空間,請以以下方式修改。
['名字空间编号/命名空間編號'] = {
['en'] = '', -- 英文名,通常是名字空间的全名 / 英文名,通常是命名空間的全名
['zh-hans'] = '', -- 简体名称 / 簡體名稱
['zh-hant'] = '' -- 繁体名称 / 繁體名稱
},
並在陣列list插入一項命名空間編號
- 例如:
list = {-3, -2, -1, ...},
['-3'] = {
['en'] = 'Example',
['zh-hans'] = '示例',
['zh-hant'] = '範例'
},
偽命名空間亦同,只是id記得要大寫,且會連動更改{{isPNS}}
、{{ifPNS}}
及其連動之所有頁面 ,如MediaWiki:Newarticletext。
由於某些缺陷,就算中文名與英文相同請務必也至少要填上zh-hans或zh-hant以防Module:Lan2回落到空白。
return {
-- 命名空間
Namespace = {
list = {-2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 118, 119, 126, 127, 710, 711, 828, 829, 2600},
['-2'] = {
['en'] = 'Media',
['zh-hans'] = '媒体',
['zh-hant'] = '媒體'
},
['-1'] = {
['en'] = 'Special',
['zh-hans'] = '特殊',
['zh-hant'] = '特殊'
},
['0'] = {
['en'] = 'Article',
['zh-hans'] = '条目',
['zh-hant'] = '條目'
},
['1'] = {
['en'] = 'Talk',
['zh-hans'] = '讨论',
['zh-hant'] = '討論'
},
['2'] = {
['en'] = 'User',
['zh-hans'] = '用户',
['zh-hant'] = '用戶',
['zh-tw'] = '使用者'
},
['3'] = {
['en'] = 'User talk',
['zh-hans'] = '用户讨论',
['zh-hant'] = '用戶討論',
['zh-tw'] = '使用者討論'
},
['4'] = {
['en'] = 'Project',
['zh-hans'] = '项目',
['zh-hant'] = '專案',
['zh-tw'] = '計畫'
},
['4-display'] = {
['en'] = 'Wikiedia',
['zh-hans'] = '维基百科',
['zh-hant'] = '維基百科',
},
['5'] = {
['en'] = 'Project talk',
['zh-hans'] = '项目讨论',
['zh-hant'] = '專案討論',
['zh-tw'] = '計畫討論'
},
['5-display'] = {
['en'] = 'Wikiedia talk',
['zh-hans'] = '维基百科讨论',
['zh-hant'] = '維基百科討論',
},
['6'] = {
['en'] = 'File',
['zh-hans'] = '文件',
['zh-hant'] = '檔案'
},
['7'] = {
['en'] = 'File talk',
['zh-hans'] = '文件讨论',
['zh-hant'] = '檔案討論'
},
['8'] = {
['en'] = 'MediaWiki',
['zh-hans'] = '界面',
['zh-hant'] = '介面'
},
['8-display'] = {
['en'] = 'MediaWiki',
['zh-hans'] = 'MediaWiki',
['zh-hant'] = 'MediaWiki'
},
['9'] = {
['en'] = 'MediaWiki talk',
['zh-hans'] = '界面讨论',
['zh-hant'] = '介面討論'
},
['9-display'] = {
['en'] = 'MediaWiki talk',
['zh-hans'] = 'MediaWiki讨论',
['zh-hant'] = 'MediaWiki討論'
},
['10'] = {
['en'] = 'Template',
['zh-hans'] = '模板',
['zh-hant'] = '模板'
},
['11'] = {
['en'] = 'Template talk',
['zh-hans'] = '模板讨论',
['zh-hant'] = '模板討論'
},
['12'] = {
['en'] = 'Help',
['zh-hans'] = '帮助',
['zh-hant'] = '幫助',
['zh-tw'] = '使用說明'
},
['13'] = {
['en'] = 'Help talk',
['zh-hans'] = '帮助讨论',
['zh-hant'] = '幫助討論',
['zh-tw'] = '使用說明討論'
},
['14'] = {
['en'] = 'Category',
['zh-hans'] = '分类',
['zh-hant'] = '分類'
},
['15'] = {
['en'] = 'Category talk',
['zh-hans'] = '分类讨论',
['zh-hant'] = '分類討論'
},
['100'] = {
['en'] = 'Portal',
['zh-hans'] = '主题',
['zh-hant'] = '主題'
},
['101'] = {
['en'] = 'Portal talk',
['zh-hans'] = '主题讨论',
['zh-hant'] = '主題討論'
},
['102'] = {
['en'] = 'WikiProject',
['zh-hans'] = '维基专题',
['zh-hant'] = '維基專題'
},
['103'] = {
['en'] = 'WikiProject talk',
['zh-hans'] = '维基专题讨论',
['zh-hant'] = '維基專題討論'
},
['118'] = {
['en'] = 'Draft',
['zh-hans'] = '草稿',
['zh-hant'] = '草稿'
},
['119'] = {
['en'] = 'Draft talk',
['zh-hans'] = '草稿讨论',
['zh-hant'] = '草稿討論'
},
['126'] = {
['en'] = 'MOS',
['zh-hans'] = 'MOS',
['zh-hant'] = 'MOS'
},
['127'] = {
['en'] = 'MOS talk',
['zh-hans'] = 'MOS talk',
['zh-hant'] = 'MOS talk'
},
['710'] = {
['en'] = 'TimedText',
['zh-hans'] = '字幕',
['zh-hant'] = '字幕'
},
['711'] = {
['en'] = 'TimedText talk',
['zh-hans'] = '字幕讨论',
['zh-hant'] = '字幕討論'
},
['828'] = {
['en'] = 'Module',
['zh-hans'] = '模块',
['zh-hant'] = '模組'
},
['829'] = {
['en'] = 'Module talk',
['zh-hans'] = '模块讨论',
['zh-hant'] = '模組討論'
},
-- ['2300'] = {
-- ['en'] = 'Gadget',
-- ['zh-hans'] = '小工具',
-- ['zh-hant'] = '小工具'
-- },
-- ['2301'] = {
-- ['en'] = 'Gadget talk',
-- ['zh-hans'] = '小工具讨论',
-- ['zh-hant'] = '小工具討論'
-- },
-- ['2302'] = {
-- ['en'] = 'Gadget definition',
-- ['zh-hans'] = '小工具定义',
-- ['zh-hant'] = '小工具定義'
-- },
-- ['2303'] = {
-- ['en'] = 'Gadget definition talk',
-- ['zh-hans'] = '小工具定义讨论',
-- ['zh-hant'] = '小工具定義討論'
-- },
['2600'] = {
['en'] = 'Structured discussions',
['zh-hans'] = '结构式讨论',
['zh-hant'] = '結構式討論'
}
},
-- 偽命名空間
PseudoNamespace = {
list = { 'LTA', 'NC', 'NT'},
['LTA'] = {
['en'] = 'Shortcut of Long-term abuse',
['zh-hans'] = '持续出没的破坏者快捷方式',
['zh-hant'] = '持續出沒的破壞者捷徑'
},
['NC'] = {
['en'] = 'Shortcut of Naming Conventions',
['zh-hans'] = '命名常规快捷方式',
['zh-hant'] = '命名常規捷徑'
},
['NT'] = {
['en'] = 'Shortcut of Notability Guidelines',
['zh-hans'] = '关注度指引快捷方式',
['zh-hant'] = '關注度指引捷徑'
},
['Talk:LTA'] = {
['en'] = 'Shortcut of Long-term abuse\'s talkpage',
['zh-hans'] = '持续出没的破坏者讨论快捷方式页',
['zh-hant'] = '持續出沒的破壞者討論捷徑頁'
},
['Talk:NC'] = {
['en'] = 'Shortcut of Naming Conventions',
['zh-hans'] = '命名常规讨论快捷方式页',
['zh-hant'] = '命名常規討論捷徑頁'
},
['Talk:NT'] = {
['en'] = 'Shortcut of Notability Guidelines',
['zh-hans'] = '关注度指引讨论快捷方式页',
['zh-hant'] = '關注度指引討論捷徑頁'
}
}
}