Module:T-TLD: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| Line 119: | Line 119: | ||
} | } | ||
-- | -- Field processors | ||
template.config.processors = template.config.processors or {} | template.config.processors = template.config.processors or {} | ||
template.config.processors.tld_type = function(value, args) | template.config.processors.tld_type = function(value, args) | ||
| Line 126: | Line 126: | ||
template.config.processors.tld_subtype = function(value, args) | template.config.processors.tld_subtype = function(value, args) | ||
return select(1, getCanonicalForms().normalize(value, template.config.mappings.tld_subtype)) or value | return select(1, getCanonicalForms().normalize(value, template.config.mappings.tld_subtype)) or value | ||
end | end | ||
template.config.processors.website = function(value, args) | template.config.processors.website = function(value, args) | ||