2,717
个编辑
NegativeTriu(讨论 | 贡献) (创建页面,内容为“local p = {} local getArgs local ul function p.addItem (mini, full, link, descrip, args, url) local l if url then l = {'[', '', ']'} else l = {'[[', '|', ']…”) |
NegativeTriu(讨论 | 贡献) 小无编辑摘要 |
||
| 第85行: | 第85行: | ||
ul = div:tag('ul') | ul = div:tag('ul') | ||
if show[1] then p.addItem(' | if show[1] then p.addItem('查看', 'view', title.fullText, 'View', args) end | ||
if show[2] then p.addItem(' | if show[2] then p.addItem('讨论', 'talk', talkpage, 'Discuss', args) end | ||
if show[3] then p.addItem(' | if show[3] then p.addItem('编辑', 'edit', title:fullUrl('action=edit'), 'Edit', args, true) end | ||
if show[4] then p.addItem(' | 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(' | p.addItem('移动', 'move', move:fullUrl('target='..title.fullText), 'Move', args, true) end | ||
if show[6] then p.addItem(' | 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) | ||