「模組:Navbar」:修訂間差異

增加 342 位元組 、​ 2022年10月21日 (星期五)
無編輯摘要
imported>DC
(建立內容為「local p = {} local getArgs function p._navbar(args) local titleArg = 1 if args.collapsible then titleArg = 2 if not args.plain then args.mini = 1 en…」的新頁面)
 
imported>DC
無編輯摘要
第21行: 第21行:


if not title then
if not title then
error('頁面不存在 ' .. titleText)
error('页面不存在 ' .. titleText)
end
end


第59行: 第59行:
:wikitext('[[' .. title.fullText .. '|')
:wikitext('[[' .. title.fullText .. '|')
:tag(args.mini and 'abbr' or 'span')
:tag(args.mini and 'abbr' or 'span')
:attr('title', '檢視該模板')
:attr('title', '-{zh-hans:查看;zh-hant:檢視;}-该模板')
:cssText(args.fontstyle)
:cssText(args.fontstyle)
:wikitext(args.mini and '閱' or '檢視')
:wikitext(args.mini and '-{zh-hans:查;zh-hant:;}-' or '-{zh-hans:查看;zh-hant:檢視;}-')
:done()
:done()
:wikitext(']]')
:wikitext(']]')
:done()
:done()
:tag('li')
:addClass('nv-talk')
:wikitext('[[' .. talkpage .. '|')
:tag(args.mini and 'abbr' or 'span')
:attr('title', '讨论该模板')
:cssText(args.fontstyle)
:wikitext(args.mini and '论' or '讨论')
:done()
:wikitext(']]');


if not args.noedit then
if not args.noedit then
第72行: 第81行:
: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', '編輯該模板')
:attr('title', '编辑该模板')
:cssText(args.fontstyle)
:cssText(args.fontstyle)
:wikitext(args.mini and '' or '編輯')
:wikitext(args.mini and '' or '编辑')
:done()
:done()
:wikitext(']');
:wikitext(']');
匿名用戶