Module:links: Difference between revisions

No change in size ,  25 December 2023
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 16: Line 16:
if mw.ustring.match(mw.ustring.gsub(link, " ", " "),"([^%#]+)") == mw.title.getCurrentTitle().prefixedText and not data.nobold then
if mw.ustring.match(mw.ustring.gsub(link, " ", " "),"([^%#]+)") == mw.title.getCurrentTitle().prefixedText and not data.nobold then
return "<b>" .. alt .. "</b>"
return "<b>" .. alt .. "</b>"
elseif mw.ustring.match(link, "^(%s*[%?%-–—]+%s*)$") then
elseif mw.ustring.match(link, "^%s*[%–%—%?%-]+%s*$") then
return alt
return alt
else
else