View source for Module:links
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 make_list(frame, list_type)
if link_type ~= "mention" or link_type ~= "list" then
error("Link type must be specified")
end
local language_code = frame.args[1]
local word = frame.args[2]
local display = frame.args[3] or frame.args["display"] or frame.args["d"]
local text = frame.args[4] or frame.args["text"] or frame.args["t"]
local pos = frame.args["pos"]
local language = require("Module:languages").get_by_code(language_code)
local link = ""
if type(language.link) == "string" then
link = link .. "[[" .. language.link .. "|" .. language.name .. "]] "
else
link = link .. language.name .. " "
end
local link_format = (link_type == "mention" and "''") or ""
local link_display = display or word
000
1:0
Template used on this page:
Return to Module:links.