Module:labels: Difference between revisions

No change in size ,  10 December 2023
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 43: Line 43:
if l_id == "/" then
if l_id == "/" then
out = out .. "</i>/<i>"
out = out .. "</i>/<i>"
elseif mw.ustring.find(l_id, "^%[[^%[%]]+%]$") then
elseif mw.ustring.find(l_id, "^\"[^%[%]]+\"$") then
local l_id_link = mw.ustring.match(l_id, "%[([^%[%]]+)%]")
local l_id_link = mw.ustring.match(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