10,731
edits
TheNightAvl (talk | contribs) m (Added "???" and "—" delinking) |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
local export = {} | local export = {} | ||
function export.language_link(data) | function export.language_link(data) | ||
Line 18: | 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 | elseif mw.ustring.match(link,"^([%?-–—]+)$") then | ||
return alt | return alt | ||
else | else |