Module talk:Country alias: Difference between revisions

Content deleted Content added
m Replaced deprecated <source> tags with <syntaxhighlight> (via WP:JWB)
 
Line 33:
 
Perhaps something like the following would work, taking PUR as an example.
<sourcesyntaxhighlight lang="Lua">
local countries = {
-- Option 1.
Line 58:
},
}
</syntaxhighlight>
</source>
I need to know what inputs would cause "1948 Summer Olympics" and similar entries to be used. I don't understand what the idea is there. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 10:25, 8 December 2016 (UTC)
:Option 2 is far superior, mostly because it would mean not having to combine "year" and "games". It would also mean Chinese Taipei would be easier to code (it has a different flag depending on which games they're playing). As far as what's actually calling this module: most would be from {{t|infobox country at games}}, which requires year, games, and country code. [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 13:02, 8 December 2016 (UTC)
Line 64:
===Format 2===
I'm now thinking of using the following format. The following shows a simple case and a more complex example based on PUR. There is no need to use 3000 as a special code.
<sourcesyntaxhighlight lang="Lua">
local countries = {
["ADN"] = {
Line 82:
},
}
</syntaxhighlight>
</source>
 
Here is how I think it would work.