跳到内容

模块:Navbar:修订间差异

添加30字节 、​ 2021年6月20日 (星期日)
无编辑摘要
(创建页面,内容为“local p = {} local getArgs local ul function p.addItem (mini, full, link, descrip, args, url) local l if url then l = {'[', '', ']'} else l = {'[[', '|', ']…”)
 
无编辑摘要
第85行: 第85行:
ul = div:tag('ul')
ul = div:tag('ul')
if show[1] then p.addItem('v', 'view', title.fullText, 'View', args) end
if show[1] then p.addItem('查看', 'view', title.fullText, 'View', args) end
if show[2] then p.addItem('t', 'talk', talkpage, 'Discuss', args) end
if show[2] then p.addItem('讨论', 'talk', talkpage, 'Discuss', args) end
if show[3] then p.addItem('e', 'edit', title:fullUrl('action=edit'), 'Edit', args, true) end
if show[3] then p.addItem('编辑', 'edit', title:fullUrl('action=edit'), 'Edit', args, true) end
if show[4] then p.addItem('h', 'hist', title:fullUrl('action=history'), 'History of', args, true) end
if show[4] then p.addItem('历史', 'hist', title:fullUrl('action=history'), 'History of', args, true) end
if show[5] then
if show[5] then
local move = mw.title.new ('Special:Movepage')
local move = mw.title.new ('Special:Movepage')
p.addItem('m', 'move', move:fullUrl('target='..title.fullText), 'Move', args, true) end
p.addItem('移动', 'move', move:fullUrl('target='..title.fullText), 'Move', args, true) end
if show[6] then p.addItem('w', 'watch', title:fullUrl('action=watch'), 'Watch', args, true) end
if show[6] then p.addItem('查看', 'watch', title:fullUrl('action=watch'), 'Watch', args, true) end
p.brackets('left', ' ]', args, div)
p.brackets('left', ' ]', args, div)