Module:links: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
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_proto = (language.proto and ("Appendix:" .. string.gsub(language.name, " ", "_") .. "/")) or ""
local link_display_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_proto .. link_display .. "]]" .. link_format
link = link .. link_format .. "[[" .. link_proto .. word .. "#" .. string.gsub(language.name, " ", "_") .. "|" .. link_display_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 .. " ("

Navigation menu