Module:T-TLD: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 143: Line 143:


template.config.processors.RVC = function(value, args)
template.config.processors.RVC = function(value, args)
     if tostring(value):match("^%d+$") then
     local val = tostring(value)
         return string.format("[https://gtldresult.icann.org/applicationstatus/applicationdetails/%s Here]", value)
    if val:find("gtldresult.icann.org") then
        return string.format("[%s Here]", val)
    elseif val:match("^%d+$") then
         return string.format("[https://gtldresult.icann.org/applicationstatus/applicationdetails/%s Here]", val)
     end
     end
     return value
     return val
end
end


template.config.processors.PIC = function(value, args)
template.config.processors.PIC = template.config.processors.RVC
    if tostring(value):match("^%d+$") then
        return string.format("[https://gtldresult.icann.org/applicationstatus/applicationdetails/%s Here]", value)
    end
    return value
end


Blueprint.registerPropertyProvider(template, function(template, args)
Blueprint.registerPropertyProvider(template, function(template, args)