跳转到内容
打开/关闭菜单
  • 5 条目
  • 3 文件
  • 13 用户
  • 619 编辑
久远澪Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Module:Navbar:修订间差异

来自久远澪Wiki
huijiwiki>SerGawen
来自templatemanager:模块:Navbar的1个版本已导入
 
res1999>Feral rage
bot edit
第53行: 第53行:
end
end


local ul = div:tag('ul');
-- local ul = div:tag('ul');


ul
-- ul
:tag('li')
-- :tag('li')
:addClass('nv-view')
-- :addClass('nv-view')
:wikitext('[[' .. title.fullText .. '|')
-- :wikitext('[[' .. title.fullText .. '|')
:tag(args.mini and 'abbr' or 'span')
-- :tag(args.mini and 'abbr' or 'span')
:attr('title', 'View this template')
-- :attr('title', 'View this template')
:cssText(args.fontstyle)
-- :cssText(args.fontstyle)
:wikitext(args.mini and 'v' or 'view')
-- :wikitext(args.mini and 'v' or 'view')
:done()
-- :done()
:wikitext(']]')
-- :wikitext(']]')
:done()
-- :done()
:tag('li')
-- :tag('li')
:addClass('nv-talk')
-- :addClass('nv-talk')
:wikitext('[[' .. talkpage .. '|')
-- :wikitext('[[' .. talkpage .. '|')
:tag(args.mini and 'abbr' or 'span')
-- :tag(args.mini and 'abbr' or 'span')
:attr('title', 'Discuss this template')
-- :attr('title', 'Discuss this template')
:cssText(args.fontstyle)
-- :cssText(args.fontstyle)
:wikitext(args.mini and 't' or 'talk')
-- :wikitext(args.mini and 't' or 'talk')
:done()
-- :done()
:wikitext(']]');
-- :wikitext(']]');


if not args.noedit then
-- if not args.noedit then
ul
-- ul
:tag('li')
-- :tag('li')
:addClass('nv-edit')
-- :addClass('nv-edit')
:wikitext('[' .. title:fullUrl('action=edit') .. ' ')
-- :wikitext('[' .. title:fullUrl('action=edit') .. ' ')
:tag(args.mini and 'abbr' or 'span')
-- :tag(args.mini and 'abbr' or 'span')
:attr('title', 'Edit this template')
-- :attr('title', 'Edit this template')
:cssText(args.fontstyle)
-- :cssText(args.fontstyle)
:wikitext(args.mini and 'e' or 'edit')
-- :wikitext(args.mini and 'e' or 'edit')
:done()
-- :done()
:wikitext(']');
-- :wikitext(']');
end
-- end


if args.brackets then
if args.brackets then