Module:Navbar:修订间差异

删除的内容 添加的内容
enwiki>Pppery
Per edit request on talk
 
zhwiki>Shizhao
第41行:
end
ul:tag('li')
:addClass('nv-' .. link_description.fullhtml_class)
:wikitext(l[1] .. link_description.link .. l[2])
:tag(is_mini and 'abbr' or 'span')
第63行:
-- link_descriptions should be easier...
local link_descriptions = {
{ ['mini'] = 'v-{zh-hans:查;zh-hant:閱;}-', ['full'] = 'view-{zh-hans:查看;zh-hant:檢視;}-', ['html_title'] = 'View this template-{zh-hans:查看;zh-hant:檢視;}-该模板',
['html_class'] = 'view', ['link'] = title.fullText, ['url'] = false },
{ ['mini'] = 't论', ['full'] = 'talk讨论', ['html_title'] = 'Discuss this template讨论该模板',
['html_class'] = 'talk', ['link'] = talkpage, ['url'] = false },
{ ['mini'] = 'e编', ['full'] = 'edit编辑', ['html_title'] = 'Edit this template编辑该模板',
['html_class'] = 'edit', ['link'] = 'Special:EditPage/' .. title.fullText, ['url'] = false },
{ ['mini'] = 'h史', ['full'] = 'hist历史', ['html_title'] = 'History of this template该模板的历史',
['html_class'] = 'hist', ['link'] = 'Special:PageHistory/' .. title.fullText, ['url'] = false },
{ ['mini'] = 'm移', ['full'] = 'move移动', ['html_title'] = 'Move this template移动该模板',
['html_class'] = 'move', ['link'] = mw.title.new('Special:Movepage'):fullUrl('target='..title.fullText), ['url'] = true },
{ ['mini'] = 'w监', ['full'] = 'watch监视', ['html_title'] = 'Watch this template监视该模板',
['html_class'] = 'watch', ['link'] = title:fullUrl('action=watch'), ['url'] = true }
}
 
第119行:
if is_mini then div:addClass(cfg.classes.mini) end
 
local box_text = (args.text or cfg.box_text) .. ' '
-- the concatenated space guarantees the box text is separated
if not (is_mini or is_plain) then