View source for Module:labels
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 = {}
function export.make_labels(language, labels, nocat)
local function make_label(label_id, label, language_name)
local categories = label["categories"]
local cat_out = ""
if categories ~= nil then
for _, cat in ipairs(categories) do
cat_out = cat_out .. "[[Category:" .. language_name .. " " .. cat .. "]]"
end
end
local display = label["display"]
local glossary = label["glossary"]
local wikipedia = label["Wikipedia"]
if display ~= nil then return display, cat_out end
if glossary ~= nil then
local g_url = "Appendix:Glossary#" .. (type(glossary) == "string" and glossary or label_id)
return "[[" .. g_url .. "|" .. label_id .. "]]", cat_out
end
if wikipedia ~= nil then
000
1:0
Template used on this page:
Return to Module:labels.