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) | ||
local val = tostring(value) | |||
return string.format("[https://gtldresult.icann.org/applicationstatus/applicationdetails/%s Here]", | 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 | return val | ||
end | end | ||
template.config.processors.PIC = | template.config.processors.PIC = template.config.processors.RVC | ||
Blueprint.registerPropertyProvider(template, function(template, args) | Blueprint.registerPropertyProvider(template, function(template, args) | ||