Module:CountryData: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| Line 749: | Line 749: | ||
if region and region ~= "(Unrecognized)" then | if region and region ~= "(Unrecognized)" then | ||
if mw.smw then | if mw.smw then | ||
mw.smw.set({["Has region"] = region}) | mw.smw.set({["Has ICANN region"] = region}) | ||
else | else | ||
-- Collect HTML fragments instead of concatenating strings | -- Collect HTML fragments instead of concatenating strings | ||
table.insert(propertyHtml, '<div style="display:none;">') | table.insert(propertyHtml, '<div style="display:none;">') | ||
table.insert(propertyHtml, ' {{#set: Has region=' .. region .. ' }}') | table.insert(propertyHtml, ' {{#set: Has ICANN region=' .. region .. ' }}') | ||
table.insert(propertyHtml, '</div>') | table.insert(propertyHtml, '</div>') | ||
end | end | ||