Module:T-TLD: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 140: Line 140:
template.config.processors.country = function(value, args)
template.config.processors.country = function(value, args)
     return TemplateHelpers.normalizeCountries(value)
     return TemplateHelpers.normalizeCountries(value)
end
template.config.processors.RVC = function(value, args)
    if tostring(value):match("^%d+$") then
        return string.format("[https://gtldresult.icann.org/applicationstatus/applicationdetails/%s Here]", value)
    end
    return value
end
template.config.processors.PIC = function(value, args)
    if tostring(value):match("^%d+$") then
        return string.format("[https://gtldresult.icann.org/applicationstatus/applicationdetails/%s Here]", value)
    end
    return value
end
end


Line 188: Line 202:
                 pageName
                 pageName
             )
             )
             args._ascii = 'xn--' .. puny
             args.ascii = 'xn--' .. puny
         end
         end
     end
     end