10,735
edits
No edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 7: | Line 7: | ||
local link = data.term | local link = data.term | ||
local alt = data.alt or data.term | local alt = data.alt or data.term | ||
if data.language and data.language.proto then | |||
if link == mw.title.getCurrentTitle().subpageText then | |||
if data.language.proto then | |||
alt = "*" .. alt | |||
end | |||
return "<b>" .. alt .. "</b>" | |||
else | |||
if data.language and data.language.proto then | |||
alt = "*" .. alt | |||
link = "Appendix:" .. data.language.name .. "/" .. data.term | |||
elseif data.language then | |||
link = link .. "#" .. string.gsub(data.language.name, " ", "_") | |||
end | |||
return "[[" .. link .. "|" .. alt .. "]]" | |||
end | end | ||
end | end | ||