「模組:Navbar」:修訂間差異
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(' | 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 ' | :wikitext(args.mini and '编' or '编辑') | ||
:done() | :done() | ||
:wikitext(']'); | :wikitext(']'); |