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

跳至導覽 跳至搜尋
移除 81 位元組 、​ 2016年4月10日 (星期日)
繁簡轉換
(新頁面: local p = {} local getArgs local HtmlBuilder = require('Module:HtmlBuilder') local function trim(s) return mw.ustring.match(s, "^%s*(.-)%s*$") end local function htmlError(s) loca...)
 
(繁簡轉換)
 
(未顯示由 2 位使用者於中間所作的 2 次修訂)
.css('float', 'left')
.css('white-space', 'nowrap')
.wikitext('出:' .. s)
 
return tostring(span)
 
if not title then
return htmlError('面不存在')
end
 
local editurl = title:fullUrl('action=edit');
 
local viewLink, talkLink, editLink = '-{zh-hans:查看;zh-hant:檢視;}-', '讨论討論', '编辑編輯'
if args.mini then
viewLink, talkLink, editLink = '-{zh-hans:查;zh-hant:;}-', '', ''
end
 
.wikitext('[[' .. mainpage .. '|')
.tag('span')
.attr('title', '-{zh-hans:查看;zh-hant:檢視;}-该模板')
.cssText(args.fontstyle or '')
.wikitext(viewLink)
.wikitext('[[' .. talkpage .. '|')
.tag('span')
.attr('title', '讨论该討論該模板')
.cssText(args.fontstyle or '')
.wikitext(talkLink)
.wikitext('[' .. editurl .. ' ')
.tag('span')
.attr('title', '编辑该編輯該模板')
.cssText(args.fontstyle or '')
.wikitext(editLink)
1,975

次編輯

導覽選單