Module:links: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 20: Line 20:
end
end
local link_format = (link_type == "mention" and "''") or ""
local link_format = (link_type == "mention" and "''") or ""
local link_proto = (language.proto and "*") or ""
local link_display = display or word
local link_display = display or word
link = link .. link_format .. "[[" .. word .. "#" .. string.gsub(language.name, " ", "_") .. "|" .. link_display .. "]]" .. link_format
link = link .. link_format .. "[[" .. word .. "#" .. string.gsub(language.name, " ", "_") .. "|" .. link_proto .. link_display .. "]]" .. link_format
if type(text) == "string" or type(pos) == "string" then
if type(text) == "string" or type(pos) == "string" then
link = link .. " ("
link = link .. " ("