View source for Module:auto cat/languages
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local export = {}
local function get_language_and_label(title)
local find_by_name = require("Module:languages").find_by_name
local language, label
local words = mw.text.split(title, " ")
for i = 1, #words do
name = table.concat(words, " ", 1, i)
label = table.concat(words, " ", i + 1)
language = find_by_name(name)
if language then break end
end
return language, label
end
local function process_cat_templates(cat_templates, language)
if cat_templates == nil then return nil end
local cats = {}
for _, ct in ipairs(cat_templates) do
000
1:0
Template used on this page:
Return to Module:auto cat/languages.