Wikipedia:WikiProject Flag Template/January 2007 rework
From Wikipedia, the free encyclopedia
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|...}} {{country2|...}}no change{{flagcountry|...}} {{flagcountry2|...}}no change{{flagicon|...}} {{flagicon2|...}}no change{{flag|...}} {{flag2|...}}no change
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 #Data templates below).
replaces 6 templates (seeNote that {{country2|flagIOC|..}} is not supported as this has been phased out into Wikipedia talk:WikiProject Flag Template#Olympic flag usage (flagIOC etc.)
. SeeUpdate: 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))
Contents |
[edit]
Replaces
[edit] {{country2|flagcountry|..}}
New call | Old call |
---|---|
{{country2|flagcountry|France}} = Template:Country2 | {{country|flagcountry|France}} = |
{{country2|flagcountry|FRA}} = Template:Country2 | {{country|flagcountry|FRA}} = |
{{country2|flagcountry|FRA|size=40px|name=foo}} = Template:Country2 | {{country|flagcountry|FRA|size=40px|name=foo}} = |
{{country2|flagcountry|Brazil}} = Template:Country2 | {{country|flagcountry|Brazil}} = |
{{country2|flagcountry|Brazil|1889}} = Template:Country2 | {{country|flagcountry|Brazil-1889}} = |
{{country2|flagcountry|BRA|1889}} = Template:Country2 | {{country|flagcountry|BRA-1889}} = |
calls | calls |
[edit] {{country2|name|..}}
New call | Old call |
---|---|
{{country2|name|France}} = Template:Country2 | {{country|name|France}} = |
{{country2|name|FRA}} = Template:Country2 | {{country|name|FRA}} = |
calls | calls |
[edit] {{country2|flag|..}}
New call | Old call |
---|---|
{{country2|flag|France}} = Template:Country2 | {{country|flag|France}} = |
{{country2|flag|FRA}} = Template:Country2 | {{country|flag|FRA}} = |
{{country2|flag|FRA|size=40px|name=foo}} = Template:Country2 | {{country|flag|FRA|size=40px|name=foo}} =
) |
calls | calls |
[edit] {{country2|flagicon|..}}
New call | Old call |
---|---|
{{country2|flagicon|France}} = Template:Country2 | {{country|flagicon|France}} = |
{{country2|flagicon|FRA}} = Template:Country2 | {{country|flagicon|FRA}} = |
{{country2|flagicon|FRA|size=40px}} = Template:Country2 | {{country|flagicon|FRA|size=40px}} = |
calls | calls |
[edit] {{country2|flagISO|..}}
New call | Old call |
---|---|
{{country2|flagISO|FRA}} = Template:Country2 | {{country|flagISO|FRA}} = |
calls | calls |
[edit] {{country2|flagIOC|..}} (NOT SUPPORTED)
New call (NOT SUPPORTED) | Old call |
---|---|
{{country2|flagIOC|FRA}} = Template:Country2 | {{country|flagIOC|FRA}} = |
calls | calls |
[edit]
Replaces
New call | Old call |
---|---|
{{flagcountry2|France}} = Template:Flagcountry2 | {{flagcountry|France}} = France |
{{flagcountry2|FRA}} = Template:Flagcountry2 | {{flagcountry|FRA}} = France |
[edit]
Replaces
New call | Old call |
---|---|
{{flagicon2|France}} = Template:Flagicon2 | {{flagicon|France}} = |
{{flagicon2|FRA}} = Template:Flagicon2 | {{flagicon|FRA}} = |
[edit]
Replaces
New call | Old call |
---|---|
{{flag2|France}} = France | {{flag|France}} = France |
{{flag2|FRA}} = FRA | {{flag|FRA}} = FRA |
{{flag2}} = ? | {{flag}} = ? |
[edit] Formatter templates
New template | Old template | Used when calling... |
---|---|---|
{{country|name|...}} | ||
{{country|flag|...}} | ||
{{country|flagcountry|...}} | ||
{{country|flagicon|...}} | ||
{{country|flagISO|...}} |
[edit] Data templates
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
[edit]
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
[edit]
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
[edit]
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
[edit]
Redirect to template:Country data Brazil
[edit]
Used as a default in the call: {{flag2}} = ?
[edit] Testing and docu templates
- Used on template page of data templates (example: Template:Country data France)