Wikipedia:WikiProject Flag Template/January 2007 rework
A replacement for the current flag system. See Wikipedia:WikiProject Flag Template for the current system.
The new system uses the same call syntax and semantics for the front-end templates (the templates editors use on articles or in higher order templates).
Change To {{country|...}}
no change{{country2|...}}
{{flagcountry|...}}
no change{{flagcountry2|...}}
{{flagicon|...}}
no change{{flagicon2|...}}
{{flag|...}}
no change{{flag2|...}}
Implementation-wise, the new system uses a single data template for each country, instead of a template for each parameter of a country, so for example Template:Country data France(edit talk links history) replaces 6 templates (see #Data templates below).
Note that {{country2|flagIOC|..}} is not supported as this has been phased out into Template:FlagIOC(edit talk links history). See Wikipedia talk:WikiProject Flag Template#Olympic flag usage (flagIOC etc.)
Update: template:flagicon now uses the same template code as template:flagicon2 (--Ligulem 13:43, 25 January 2007 (UTC))
Update: template:flagcountry now uses the same template code as template:flagcountry2 (--Ligulem 17:23, 25 January 2007 (UTC))
Update: template:flag now uses the same template code as template:flag2 (--Ligulem 17:31, 25 January 2007 (UTC))
Update: template:country now uses the same template code as template:country2 (--Ligulem 14:51, 26 January 2007 (UTC))
Replaces Template:Country(edit talk links history)
{{country2|flagcountry|..}}
[edit]New call | Old call |
---|---|
{{country2|flagcountry|France}} = {{country2|flagcountry|France}}
|
{{country|flagcountry|France}} = {{country|flagcountry|France}}
|
{{country2|flagcountry|FRA}} = {{country2|flagcountry|FRA}}
|
{{country|flagcountry|FRA}} = {{country|flagcountry|FRA}}
|
{{country2|flagcountry|FRA|size=40px|name=foo}} = {{country2|flagcountry|FRA}}
|
{{country|flagcountry|FRA|size=40px|name=foo}} = {{country|flagcountry|FRA}}
|
{{country2|flagcountry|Brazil}} = {{country2|flagcountry|Brazil}}
|
{{country|flagcountry|Brazil}} = {{country|flagcountry|Brazil}}
|
{{country2|flagcountry|Brazil|1889}} = {{country2|flagcountry|Brazil|1889}}
|
{{country|flagcountry|Brazil-1889}} = {{country|flagcountry|Brazil-1889}}
|
{{country2|flagcountry|BRA|1889}} = {{country2|flagcountry|BRA|1889}}
|
{{country|flagcountry|BRA-1889}} = {{country|flagcountry|BRA-1889}}
|
calls Template:Country flagcountry2(edit talk links history) | calls Template:Country flagcountry(edit talk links history) |
{{country2|name|..}}
[edit]New call | Old call |
---|---|
{{country2|name|France}} = {{country2|name|France}}
|
{{country|name|France}} = {{country|name|France}}
|
{{country2|name|FRA}} = {{country2|name|FRA}}
|
{{country|name|FRA}} = {{country|name|FRA}}
|
calls Template:Country name2(edit talk links history) | calls Template:Country name(edit talk links history) |
{{country2|flag|..}}
[edit]New call | Old call |
---|---|
{{country2|flag|France}} = {{country2|flag|France}}
|
{{country|flag|France}} = {{country|flag|France}}
|
{{country2|flag|FRA}} = {{country2|flag|FRA}}
|
{{country|flag|FRA}} = {{country|flag|FRA}}
|
{{country2|flag|FRA|size=40px|name=foo}} = {{country2|flag|FRA}}
|
{{country|flag|FRA|size=40px|name=foo}} = {{country|flag|FRA}}
|
calls Template:Country flag2(edit talk links history) | calls Template:Country flag(edit talk links history) |
{{country2|flagicon|..}}
[edit]New call | Old call |
---|---|
{{country2|flagicon|France}} = {{country2|flagicon|France}}
|
{{country|flagicon|France}} = {{country|flagicon|France}}
|
{{country2|flagicon|FRA}} = {{country2|flagicon|FRA}}
|
{{country|flagicon|FRA}} = {{country|flagicon|FRA}}
|
{{country2|flagicon|FRA|size=40px}} = {{country2|flagicon|FRA}}
|
{{country|flagicon|FRA|size=40px}} = {{country|flagicon|FRA}}
|
calls Template:Country flagicon2(edit talk links history) | calls Template:Country flagicon(edit talk links history) |
{{country2|flagISO|..}}
[edit]New call | Old call |
---|---|
{{country2|flagISO|FRA}} = {{country2|flagISO|FRA}}
|
{{country|flagISO|FRA}} = {{country|flagISO|FRA}}
|
calls Template:Country flagISO2(edit talk links history) | calls Template:Country flagISO(edit talk links history) |
{{country2|flagIOC|..}} (NOT SUPPORTED)
[edit]New call (NOT SUPPORTED) | Old call |
---|---|
{{country2|flagIOC|FRA}} = {{country2|flagIOC|FRA}}
|
{{country|flagIOC|FRA}} = {{country|flagIOC|FRA}}
|
calls Template:Country flagIOC2(edit talk links history) | calls Template:Country flagIOC(edit talk links history) |
Replaces Template:Flagcountry(edit talk links history)
New call | Old call |
---|---|
{{flagcountry2|France}} = {{flagcountry2|France}}
|
{{flagcountry|France}} = France |
{{flagcountry2|FRA}} = {{flagcountry2|FRA}}
|
{{flagcountry|FRA}} = France |
Replaces Template:Flagicon(edit talk links history)
New call | Old call |
---|---|
{{flagicon2|France}} = {{flagicon2|France}}
|
{{flagicon|France}} = |
{{flagicon2|FRA}} = {{flagicon2|FRA}}
|
{{flagicon|FRA}} = |
Replaces Template:Flag(edit talk links history)
New call | Old call |
---|---|
{{flag2|France}} = France | {{flag|France}} = France |
{{flag2|FRA}} = FRA | {{flag|FRA}} = FRA |
{{flag2}} = [[|]] | {{flag}} = [[|]] |
Formatter templates
[edit]New template | Old template | Used when calling... |
---|---|---|
Template:Country name2(edit talk links history) | Template:Country name(edit talk links history) | {{country|name|...}} |
Template:Country flag2(edit talk links history) | Template:Country flag(edit talk links history) | {{country|flag|...}} |
Template:Country flagcountry2(edit talk links history) | Template:Country flagcountry(edit talk links history) | {{country|flagcountry|...}} |
Template:Country flagicon2(edit talk links history) | Template:Country flagicon(edit talk links history) | {{country|flagicon|...}} |
Template:Country flagISO2(edit talk links history) | Template:Country flagISO(edit talk links history) | {{country|flagISO|...}} |
Data templates
[edit]Replace:
- Template:Country alias XXX
- Template:Country flag alias XXX
- Template:Country shortname alias XXX
- Template:Country label alias XXX
- Template:Country ISO alias XXX
- Template:Country flag ISO alias XXX
Replaces:
- Template:Country alias France
- Template:Country flag alias France
- Template:Country shortname alias France
- Template:Country label alias France
- Template:Country ISO alias FRA
- Template:Country flag ISO alias FRA
Is a redirect to {{Country data France}}. Replaces
- Template:Country alias FRA
- Template:Country flag alias FRA
- Template:Country shortname alias FRA
- Template:Country label alias FRA
Replaces:
- Template:Country alias Brazil
- Template:Country flag alias Brazil
- Template:Country label alias Brazil
- Template:Country alias Brazil-1889
- Template:Country flag alias Brazil-1889
- Template:Country label alias Brazil-1889
- Template:Country flag ISO alias BRA
- Template:Country ISO alias BRA
- Template:Country ISO alias BRA
Redirect to template:Country data Brazil
Used as a default in the call: {{flag2}} = [[|]]
Testing and docu templates
[edit]- Template:Country showdata(edit talk links history)
- Used on template page of data templates (example: Template:Country data France)