Module:CountryData: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 77: Line 77:
         if country.variations and type(country.variations) == "table" then
         if country.variations and type(country.variations) == "table" then
             mappingCount = mappingCount + #country.variations
             mappingCount = mappingCount + #country.variations
        end
       
        -- Count ISO-3 code if it exists
        if country.iso_3 then
            mappingCount = mappingCount + 1
         end
         end
     end
     end