Module:Message box: Difference between revisions

    (Created page with "-- This is a meta-module for producing message box templates, including {{mbox}}, {{ambox}}, {{imbox}}, {{tmbox}}, {{ombox}}, {{cmbox}} and {{fmbox}}. -- Require necessary m...")
    No edit summary
    Line 110: Line 110:
    function box:addCat(ns, cat, sort)
    function box:addCat(ns, cat, sort)
    if type(cat) ~= 'string' then return end
    if type(cat) ~= 'string' then return end
    local nsVals = {'main', 'template', 'all'}
    local nsVals = {'main', 'template', 'extension', 'all'}
    local tname
    local tname
    for i, val in ipairs(nsVals) do
    for i, val in ipairs(nsVals) do