模块:Test:修订间差异

跳到导航 跳到搜索
添加89字节 、​ 2022年1月31日 (星期一)
无编辑摘要
无编辑摘要
无编辑摘要
第5行: 第5行:
params["display_title"          ] = {'false'}
params["display_title"          ] = {'false'}
params["title"                  ] = "表格默认标题"
params["title"                  ] = "表格默认标题"
params["width"                  ] = "60%"
params["width"                  ] = "100%"
params["item_per_tab"          ] = "50"
params["item_per_tab"          ] = "50"
params["header"                ] = {'作者', '主题', '简介'}
params["header"                ] = {'作者', '主题', '简介'}
第158行: 第158行:
     local tab_count = (tableLength(tot_row_ids) - 1) / item_per_tab + 1
     local tab_count = (tableLength(tot_row_ids) - 1) / item_per_tab + 1
     local tabs_row_ids = {}
     local tabs_row_ids = {}
    -- if only one table is needed...
    if tab_count == 1 then
        return renderTable(args, next(tabs_row_ids))
    else
        return mw.html.create('p'):wikitext("tab_count:"..tostring(tab_count))
    end


     for i=1,tab_count do
     for i=1,tab_count do
第164行: 第171行:
             tabs_row_ids[i][j] = tot_row_ids[(i-1)*item_per_tab + j]
             tabs_row_ids[i][j] = tot_row_ids[(i-1)*item_per_tab + j]
         end
         end
    end
    -- if only one table is needed...
    if tab_count == 1 then
        return renderTable(args, next(tabs_row_ids))
     end
     end


导航菜单