Content deleted Content added
→Getting this module started: need details |
→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)
== Data format ==
Perhaps something like the following would work, taking PUR as an example.
<source lang="Lua">
local countries = {
-- Option 1.
["PUR"] = {
name = "Puerto Rico",
{1951, "Puerto Rico Azul Celeste.png"},
{1995, "Flag of Puerto Rico (1952-1995).svg"},
{3000, "Flag of Puerto Rico.svg"},
["1948 Summer Olympics"] = {"Puerto rico national sport flag.svg"},
["1952 Summer Olympics"] = {"Puerto rico national sport flag.svg"},
["1980 Summer Olympics"] = {"Olympic flag.svg"},
},
-- Option 2.
["PUR"] = {
name = "Puerto Rico",
{1951, "Puerto Rico Azul Celeste.png"},
{1995, "Flag of Puerto Rico (1952-1995).svg"},
{3000, "Flag of Puerto Rico.svg"},
["Summer Olympics"] = {
["1948"] = {"Puerto rico national sport flag.svg"},
["1952"] = {"Puerto rico national sport flag.svg"},
["1980"] = {"Olympic flag.svg"},
},
},
}
</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)
|