10,731
edits
TheNightAvl (talk | contribs) (Added with +link functionality... hopefully) |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 38: | Line 38: | ||
end | end | ||
if label == null then | if label == null then | ||
if mw.ustring.find(l_id, "^%[ | if mw.ustring.find(l_id, "^%[[^%[%]]+%]$") then | ||
local l_id_link = mw.ustring.gmatch(l_id, "^%[ | local l_id_link = mw.ustring.gmatch(l_id, "%[([^%[%]]+)%]") | ||
out = out .. "</i>[[" .. l_id_link .. "#" .. language.name .. "|" .. l_id_link .. "]]<i>" | out = out .. "</i>[[" .. l_id_link .. "#" .. language.name .. "|" .. l_id_link .. "]]<i>" | ||
else | else |