11,799
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
if data.language.code == "lnk-pro" and plaenk_alt[link] then link = plaenk_alt[link] end | if data.language.code == "lnk-pro" and plaenk_alt[link] then link = plaenk_alt[link] end | ||
if data.hypo then alt = "**" .. alt end | |||
if data.language.proto then | if data.language.proto then | ||
if not data.nostar then alt = "*" .. alt end -- * is an asterisk but sometimes the asterisk gets mistaken for wiki formatting | if not data.nostar and not data.hypo then alt = "*" .. alt end -- * is an asterisk but sometimes the asterisk gets mistaken for wiki formatting | ||
link = "Appendix:" .. data.language.name .. "/" .. data.term | link = "Appendix:" .. data.language.name .. "/" .. data.term | ||
if anchor then link = link .. "#" .. data.language.name .. anchor end | if anchor then link = link .. "#" .. data.language.name .. anchor end | ||
Line 31: | Line 33: | ||
if term == mw.title.getCurrentTitle().text and not data.nobold then | if term == mw.title.getCurrentTitle().text and not data.nobold then | ||
return "<b>" .. alt .. "</b>" | return "<b>" .. alt .. "</b>" | ||
elseif mw.ustring.match(term, "^[%?%-–—]+$") or mw.ustring.match(term, ":[%?%-–—]+$") | elseif mw.ustring.match(term, "^[%?%-–—]+$") or mw.ustring.match(term, ":[%?%-–—]+$") or data.nolink then | ||
return alt | return alt | ||
else | else |