Module:T-CountryHub: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 394: Line 394:
         local params = {
         local params = {
             string.format('[[Has country::%s]] [[Has entity type::Organization]]', args.has_country),
             string.format('[[Has country::%s]] [[Has entity type::Organization]]', args.has_country),
             limit    = 50
             limit    = 30
         }
         }
         local data = askCached('organizations:' .. args.has_country, params)
         local data = askCached('organizations:' .. args.has_country, params)
Line 411: Line 411:
             string.format('[[Has country::%s]] [[Has entity type::Person]]',  
             string.format('[[Has country::%s]] [[Has entity type::Person]]',  
             args.has_country),
             args.has_country),
             limit    = 20
             limit    = 30
         }
         }
         local data = askCached('people:' .. args.has_country, params)
         local data = askCached('people:' .. args.has_country, params)
Line 429: Line 429:
             '[[Category:Laws]]',
             '[[Category:Laws]]',
             mainlabel = 'Law', sort = 'Has date', order = 'desc',
             mainlabel = 'Law', sort = 'Has date', order = 'desc',
             limit    = 50
             limit    = 30
         }
         }
         return renderSection('laws:' .. args.has_country, params, {'Laws and Regulations'})
         return renderSection('laws:' .. args.has_country, params, {'Laws and Regulations'})
Line 443: Line 443:
             '[[Category:Document]]',
             '[[Category:Document]]',
             mainlabel = 'Document', sort = 'Has date', order = 'desc',
             mainlabel = 'Document', sort = 'Has date', order = 'desc',
             limit    = 50
             limit    = 30
         }
         }
         return renderSection('documents:' .. args.has_country, params, {'Key Documents'})
         return renderSection('documents:' .. args.has_country, params, {'Key Documents'})
Line 455: Line 455:
         local params = {
         local params = {
             string.format('[[Has country::%s]] [[Has entity type::TLD]] [[Has TLD subtype::geoTLD]]', args.has_country),
             string.format('[[Has country::%s]] [[Has entity type::TLD]] [[Has TLD subtype::geoTLD]]', args.has_country),
             limit    = 50
             limit    = 30
         }
         }
         local data = askCached('geoTlds:' .. args.has_country, params)
         local data = askCached('geoTlds:' .. args.has_country, params)
Line 472: Line 472:
             string.format('[[Has country::%s]]', args.has_country),  
             string.format('[[Has country::%s]]', args.has_country),  
             '[[Has entity type::Event]]',  
             '[[Has entity type::Event]]',  
             limit    = 50
             limit    = 30
         }
         }
         local data = askCached('events:' .. args.has_country, params)
         local data = askCached('events:' .. args.has_country, params)
Line 488: Line 488:
         local params = {
         local params = {
             string.format('[[Has country::%s]] [[Has entity type::Organization]] [[Has organization type::Government agency]]', args.has_country),
             string.format('[[Has country::%s]] [[Has entity type::Organization]] [[Has organization type::Government agency]]', args.has_country),
             limit    = 10
             limit    = 30
         }
         }
         local data = askCached('nra:' .. args.has_country, params)
         local data = askCached('nra:' .. args.has_country, params)
Line 508: Line 508:
             '[[Category:Resource]]',
             '[[Category:Resource]]',
             mainlabel = 'Resource',
             mainlabel = 'Resource',
             limit    = 10
             limit    = 30
         }
         }
         return renderSection('resources:' .. args.has_country, params, {'Resources'})
         return renderSection('resources:' .. args.has_country, params, {'Resources'})