Module talk:Country alias: Difference between revisions

Content deleted Content added
Data format: new section
Line 15:
:*games (used to determine which flag)
:Is that all correct? If so, I'll muck around with it and am likely to do something withing 24 hours. Anything else? [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 04:09, 8 December 2016 (UTC)
::To answer in order:
::Combining the two sets of data (as in the next section) is an excellent idea.
::Yes, 3000 was meant as the "upper limit" so that a simple "if less than" statement could be made.
::If the games are spelled wrong, then as you imply it would just match the year. Having the right country but the wrong flag probably isn't the end of the world (given that about 75% of them are broken at the moment anyway due to bad switches in the existing templates).
::To use the 1980 example: there were both Summer and Winter Olympics. So if {{para|games|Winter Olympics}} we wouldn't want to return "Olympic flag.svg". Additionally, in your Option 2 below, this would allow Chinese Taipei (which has six different flags depending on which Games they're playing at) to be much easier to code.
::Everything else looks correct. I'll add some more thoughts to the next section as well. [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 12:59, 8 December 2016 (UTC)
 
== Data format ==