Module:links: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 8: Line 8:
local alt = data.alt or data.term
local alt = data.alt or data.term
if mw.ustring.gsub(link, " ", " ") == mw.title.getCurrentTitle().subpageText then
if data.language.proto and "Appendix:" .. data.language.name .. "/" .. data.term == mw.title.getCurrentTitle().prefixedText then
if data.language.proto then
alt = "*" .. alt
alt = "*" .. alt
return "<b>" .. alt .. "</b>"
end
elseif not data.language.proto and mw.ustring.gsub(link, "&nbsp;", " ") == mw.title.getCurrentTitle().subpageText then
return "<b>" .. alt .. "</b>"
return "<b>" .. alt .. "</b>"
else
else