10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 14: | Line 14: | ||
link = link .. "#" .. string.gsub(data.language.name, " ", "_") | link = link .. "#" .. string.gsub(data.language.name, " ", "_") | ||
end | end | ||
local term = mw.ustring.match(mw.ustring.gsub(link, " ", " "),"([^%#]+)") | |||
if term == mw.title.getCurrentTitle().prefixedText and not data.nobold then | |||
return "<b>" .. alt .. "</b>" | return "<b>" .. alt .. "</b>" | ||
elseif mw.ustring. | elseif mw.ustring.match(term, "^[%?%-–—]+$") or mw.ustring.match(term, ":[%?%-–—]+$") then | ||
return alt | return alt | ||
else | else |