匿名使用者
無編輯摘要
imported>CYL992 (建立內容為「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 end if args.fontcolor then args.fontstyle = 'color:' .. args.fontcolor .. ';' end args.style = 'float:left; text-align:left' end local titleText = args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle()) local title = mw.title.new(mw.text.trim(titleText), 'Template'); if n…」的新頁面) |
imported>NoahLDW 無編輯摘要 |
||
第21行: | 第21行: | ||
if not title then | if not title then | ||
error(' | error('頁面不存在 ' .. titleText) | ||
end | end | ||
第49行: | 第49行: | ||
:css('margin-right', '-0.125em') | :css('margin-right', '-0.125em') | ||
:cssText(args.fontstyle) | :cssText(args.fontstyle) | ||
:wikitext(' | :wikitext('[ ') | ||
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', '檢視該模板') | ||
:cssText(args.fontstyle) | :cssText(args.fontstyle) | ||
:wikitext(args.mini and ' | :wikitext(args.mini and '檢' or '檢視') | ||
:done() | :done() | ||
:wikitext(']]') | :wikitext(']]') | ||
第69行: | 第69行: | ||
:wikitext('[[' .. talkpage .. '|') | :wikitext('[[' .. talkpage .. '|') | ||
: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(']]'); | ||
第81行: | 第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(']'); | ||
第93行: | 第93行: | ||
:css('margin-left', '-0.125em') | :css('margin-left', '-0.125em') | ||
:cssText(args.fontstyle) | :cssText(args.fontstyle) | ||
:wikitext(' | :wikitext(' ]') | ||
end | end | ||