Difference between revisions of "Template:Infobox country at games/sandbox"
Jump to navigation
Jump to search
Template:Subpage other
imported>Primefac (additional if - only run off interval if there's also a begin_year (indicating that someone wants it set)) |
imported>Primefac (comments, minor tweaks. Plus, for some reason people link the games, so delinking) |
||
Line 1: | Line 1: | ||
<includeonly>{{Infobox country at games/core | <includeonly>{{Infobox country at games/core | ||
+ | <!-- | ||
+ | Simplify country names being passed to avoid as many calls to {{country alias}}, as well as cleaning up the infobox code | ||
+ | --> | ||
| country = {{{country|}}} | | country = {{{country|}}} | ||
| alias = {{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}} | | alias = {{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}} | ||
Line 7: | Line 10: | ||
| flagcaption = {{{flagcaption|}}} | | flagcaption = {{{flagcaption|}}} | ||
| alt = {{{alt|}}} | | alt = {{{alt|}}} | ||
+ | <!-- | ||
+ | Games info | ||
+ | --> | ||
| year = {{{year|}}} | | year = {{{year|}}} | ||
− | | games = {{{games|}}} | + | | games = {{delink|{{{games|}}}}} |
| games_link = {{{games_link|}}} | | games_link = {{{games_link|}}} | ||
− | |||
| location = {{{location|}}} | | location = {{{location|}}} | ||
| officials = {{{officials|}}} | | officials = {{{officials|}}} | ||
| date = {{#if:{{{start_date|}}}{{{end_date|}}}|{{{start_date|}}} – {{{end_date|}}}|{{{date|}}}}} | | date = {{#if:{{{start_date|}}}{{{end_date|}}}|{{{start_date|}}} – {{{end_date|}}}|{{{date|}}}}} | ||
+ | <!-- | ||
+ | Team info | ||
+ | --> | ||
| gold = {{{gold|}}} | | gold = {{{gold|}}} | ||
| silver = {{{silver|}}} | | silver = {{{silver|}}} | ||
Line 42: | Line 50: | ||
| flagbearer_close = {{{flagbearer_close|}}} | | flagbearer_close = {{{flagbearer_close|}}} | ||
| flagbearer_open = {{{flagbearer_open|}}} | | flagbearer_open = {{{flagbearer_open|}}} | ||
+ | <!-- | ||
+ | Games info | ||
+ | --> | ||
| app_begin_year = {{{app_begin_year|}}} | | app_begin_year = {{{app_begin_year|}}} | ||
| app_end_year = {{{app_end_year|}}} | | app_end_year = {{{app_end_year|}}} | ||
Line 69: | Line 80: | ||
| winterappearances = {{{winterappearances|}}} | | winterappearances = {{{winterappearances|}}} | ||
| youthappearances = {{{youthappearances|}}} | | youthappearances = {{{youthappearances|}}} | ||
+ | <!-- | ||
+ | Info to determine if the games list will appear; will do so automatically if: | ||
+ | a) the Games is listed in [[Module:Team appearances list/data]] | ||
+ | b) app_interval AND app_begin_year are included | ||
+ | --> | ||
| TALauto = {{#switch:{{{games|}}} | | TALauto = {{#switch:{{{games|}}} | ||
| All-Africa Games | African Games | | All-Africa Games | African Games |
Latest revision as of 22:26, 9 January 2020
![]() | This is the template sandbox page for Template:Infobox country at games (diff). See also the companion subpage for test cases. |
![]() | This template is used on approximately 12,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
![]() | This template uses Lua: |
![]() | This template adds an automatically generated short description. |
This infobox template is for country articles about international sporting events.
Usage
Template:Parameter names example
Template:Parameter names example
Blank
{{Infobox country at games | NOC = | NPC = | IAAF = | CGA = | NF = | country = | year = | games = | games_link = | flag = | flagcaption = | alt = | oldcode = | NOCname = | NPCname = | CGAname = | NFname = | fedname = | website = | location = | start_date = <!-- {{Start date|YYYY|MM|DD|df=y}} --> | end_date = <!-- {{End date|YYYY|MM|DD|df=y}} --> | date = | competitors = | competitors_men = | competitors_women = | sports = | events = | flagbearer = | flagbearer_open = | flagbearer_close = | rank = | gold = | silver = | bronze = | officials = | appearances = | app_begin_year = | app_interval = | summerappearances = | winterappearances = | youthappearances = | seealso = | previous = | next = }}
Parameters
- NOC
- IOC country code
- NPC
- IOC country code (for Paralympic articles)
- CGF
- CGF country code
- IAAF
- IAAF country code
- NF
- FINA country code
- FIE
- FIE country code
- NOCname
- Name of country's Olympic Committee
- NPCname
- Name of country's Paralympic Committee
- CGAname
- Name of country's Commonwealth Games Federation
- fedname
- Name the country's sports governing body
- year
- YYYY
- start_date
- Use {{Start date}}
- end_date
- Use {{End date}}
- flag
- games
- games_link
- Do not wikilink
- location
- Wikilink
- flagbearer
- Flagbearer(s) for the opening ceremony
- flagbearer_close
- Flagbearer(s) for the closing ceremony. If not used, the "(opening)" will not be displayed for the
|flagbearer=
label - competitors
- competitors_men
- competitors_women
- sports
- events
- gold
- silver
- bronze
- rank
- officials
- appearances
- A {{flatlist}} of appearances at the games; if set to
auto
, the list is automatically generated; {{Team appearances list}} can be used - app_begin_year
- Year when the country first competed at the games, e.g. "1981"; optional
- app_interval
- Year interval between games, e.g. "4" if quadrennial; optional
- seealso
- previous
- next
- website
- website link
Example
[[Category:Template:Pagetype with short description]]Lua error in Module:Country_alias at line 148: Invalid country alias: <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-0">Script error: No such module "If empty".</span></strong>. at the 2011 Winter European Youth Olympic Festival | |
---|---|
Lua error in Module:Country_alias at line 148: Invalid country alias: <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-2">Script error: No such module "If empty".</span></strong>. | |
IOC code | Script error: No such module "If empty". |
NOC | Script error: No such module "If empty". |
in Liberec, Czech Republic 11 February 2011 – 18 February 2011 | |
Competitors | 19 in 6 sports |
Flag bearer | Script error: No such module "If empty". |
Medals |
|
{{Infobox country at games | NOC = EST | NOCname = [[Estonian Olympic Committee]] | year = 2011 | start_date = {{Start date|2011|02|11|df=y}} | end_date = {{End date|2011|02|18|df=y}} | games = Winter European Youth Olympic Festival | games_link = 2011 European Youth Winter Olympic Festival | location = [[Liberec, Czech Republic]] | flagbearer = | competitors = 19 | sports = 6 | officials = | gold = 0 | silver = 0 | bronze = 0 | rank = | appearances = }}
Tracking categories
- Category:Pages using infobox country at games with unknown parameters (0)
- Category:Pages using infobox country at games with no automatic appearances (0)
- Category:Pages using infobox country at games with no appearances (0)
- Category:Pages using infobox country at games with manual interval (0)
- Category:Pages using infobox country at games with multiple omissions (0)
Microformat
The above documentation is transcluded from Template:Infobox country at games/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |