Module:labels: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
 
Line 7: Line 7:
         if categories ~= nil then
         if categories ~= nil then
             for _, cat in ipairs(categories) do
             for _, cat in ipairs(categories) do
                 cat_out = cat_out .. "[[Category:" .. language_name .. " " .. cat .. "]]"
                 cat_out = cat_out .. "[[Category:" .. language_name .. " " .. cat .. "|" .. mw.title.getCurrentTitle().subpageText .. "]]"
             end
             end
         end
         end
         if topics ~= nil then
         if topics ~= nil then
             for _, top in ipairs(topics) do
             for _, top in ipairs(topics) do
                 cat_out = cat_out .. "[[Category:" .. language_code .. ":" .. top .. "]]"
                 cat_out = cat_out .. "[[Category:" .. language_code .. ":" .. top .. "|" .. mw.title.getCurrentTitle().subpageText .. "]]"
             end
             end
         end
         end