跳转到内容

模組討論:Navbox

页面内容不支持其他语言。
维基百科,自由的百科全书

这是本页的一个历史版本,由Winstonhyypia留言 | 贡献2020年9月5日 (六) 00:08 編輯請求:​ 新章节)编辑。这可能和当前版本存在着巨大的差异。


Winstonhyypia在话题“編輯請求”中的最新留言:4年前

求管理员把查论编链接改小点儿

请求已拒绝

就像这样:[1]-- 2014年8月14日 (四) 15:41 (UTC)回复

这个动了会不会标题又不居中了?--Jimmy Xu 2014年8月18日 (一) 04:07 (UTC)回复
应该不会,而且编辑模块的时候可以在下面随便输入一个页面来预览,可以调试模块-- 2014年8月24日 (日) 11:30 (UTC)回复
未完成,看了下这个样式应该是.navbox给的吧?还有这个尺寸其实有点再小就看不清了。--Jimmy Xu 2014年9月13日 (六) 03:55 (UTC)回复

我写了新代码,求管理员更新

{{editprotected}}我把英文维基百科的代码移植到了这里,求馆里猿更新,传送门在这里。-- 2014年10月5日 (日) 17:36 (UTC)回复

目前 Module:Authority control 新编的代码因为技术问题只能调用 Module:Navbox/sandbox 的代码。-- 2014年10月6日 (一) 08:23 (UTC)回复
完成 Liangent留言 2014年10月30日 (四) 07:24 (UTC)回复

编辑请求

请求已处理--1=0欢迎维基人加QQ群170258339 2016年11月27日 (日) 04:15 (UTC)回复

HtmlBuilder is obsolete, please use mw.html instead. --Dabao qian留言2016年11月26日 (六) 02:46 (UTC)回复

Lua错误

几乎所有的铁路站序模板都出现了如下Lua错误 模块:Navbox的第357行:invalid tag name '/div' (可能是42280585的结果)--N509FZ TXN -TXQ 2016年11月27日 (日) 03:41 (UTC)回复

編輯請求

请求已处理

Special:固定链接/51163192,在title指定模板樣式時,只有中央有套用,應讓renderTitleRow時也加入WP:模板樣式

标题
local function renderTitleRow(tbl)
    if not args.title then return end
 
    local titleRow = addTableRow(tbl)
     
    if args.titlegroup then
        titleRow
            :tag('th')
                :attr('scope', 'row')
                :addClass('navbox-group')
                :addClass(args.titlegroupclass)
                :cssText(args.basestyle)
                :cssText(args.groupstyle)
                :cssText(args.titlegroupstyle)
                :wikitext(args.titlegroup)
    end
    
    local titleCell = titleRow:tag('th'):attr('scope', 'col')
            
    if args.titlegroup then
        titleCell
            :css('border-left', '2px solid #fdfdfd')
            :css('width', '100%')
    end
    
    local titleColspan = 2
    if args.imageleft then titleColspan = titleColspan + 1 end
    if args.image then titleColspan = titleColspan + 1 end
    if args.titlegroup then titleColspan = titleColspan - 1 end
    
    titleCell
        :cssText(args.basestyle)
        :cssText(args.titlestyle)
        :addClass('navbox-title')
        :addClass(args.titleclass)
        :attr('colspan', titleColspan)
 
    renderNavBar(titleCell)

    titleCell
         :tag('div')
             :addClass(args.titleclass)
             :css('font-size', '110%')
             :wikitext(addNewline(args.title))
end

-- 宇帆(維基貢獻十周年!留言·歡迎簽到 [試用小工具]2018年9月4日 (二) 18:56 (UTC)回复

完成,過長的內容請善用沙盒。--Xiplus#Talk 2018年10月20日 (六) 12:26 (UTC)回复

編輯請求

请求已处理

只添加imageleft會使圖片的表格佔一半。(如果同時使用imageleft和image則不會)參見Special:固定链接/53332509-Zest 2019年2月24日 (日) 17:15 (UTC)回复

這應該是瀏覽器問題,只有google chrome 會如此,internet explorer、mozilla firefox 則正常--Qqkuro66541留言2019年2月27日 (三) 02:46 (UTC)回复
确实如此。 Stang★75 2019年2月28日 (四) 12:40 (UTC)回复

編輯請求

请求已处理--Xiplus#Talk 2019年3月7日 (四) 12:52 (UTC)回复

加一個維護分類給模板名稱與參數name不同,name與模板名稱不同會使點擊閱論編的編時編擊到重定向甚至紅鍊。-Zest 2019年3月3日 (日) 15:00 (UTC)回复

編輯請求

加一個 nowrapitems support. Thank you very much Winston留言2020年9月5日 (六) 00:08 (UTC)回复