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 = {}
function export.language_link(data)
if not data.term then
error("language link data must contain term")
end
local link = data.term
local alt = data.alt or data.term
if link == mw.title.getCurrentTitle().subpageText then
if data.language.proto then
alt = "*" .. alt
end
return "<b>" .. alt .. "</b>"
else
if data.language and data.language.proto then
alt = "*" .. alt
link = "Appendix:" .. data.language.name .. "/" .. data.term
elseif data.language then
link = link .. "#" .. string.gsub(data.language.name, " ", "_")
000
1:0
Template used on this page:
Return to Module:links.