Модуль:Loc: различия между версиями

мНет описания правки
Нет описания правки
 
Строка 58: Строка 58:
     local key = frame.args[1]
     local key = frame.args[1]
     local subkey = frame.args[2] or "_value"
     local subkey = frame.args[2] or "_value"
    local noFormat = frame.args.noFormat or ""


     if not key then
     if not key then
Строка 69: Строка 70:
     end
     end


    return frame:preprocess("{{#invoke:Loc/Marking|main|<nowiki>".. result .. "</nowiki>}}")
if noFormat == "" then
return frame:preprocess("{{#invoke:Loc/Marking|main|<nowiki>".. result .. "</nowiki>}}")
else
return frame:preprocess("{{#invoke:Loc/Marking|main|noFormat=1|<nowiki>".. result .. "</nowiki>}}")
end
end
end


Строка 75: Строка 80:
     local key = frame.args[1]
     local key = frame.args[1]
     local subkey = frame.args[2] or "_value"
     local subkey = frame.args[2] or "_value"
    local noFormat = frame.args.noFormat or ""


     if not key then
     if not key then
Строка 86: Строка 92:
     end
     end


    return frame:preprocess("<nowiki>".. result .. "</nowiki>")
if noFormat == "" then
return result
else
return frame:preprocess("<nowiki>".. result .. "</nowiki>")
end
end
end


return p
return p