Templat:IOC year/doc: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
SndrAndrss (bicara | kontrib)
Tidak ada ringkasan suntingan
k fix
 
(11 revisi perantara oleh 2 pengguna tidak ditampilkan)
Baris 1:
{{Subhalaman dokumentasi}}
{{Documentation subpage}}
 
This template family is used to validate occurrence of major sporting events in a given year to provide the official name of the games, if year is valid.
 
Use {{t|{{PAGENAME}}}} for {{#switch:{{PAGENAME}}
| IOC year = Olimpiade
| CGF year = Pesta Olahraga Persemakmuran
| AFOC year = Pesta Olahraga Afrika
| OCA year = Pesta Olahraga Asia
| SEAGF year = Pesta Olahraga Asia Tenggara
| EOC year = Pesta Olahraga Eropa
| PASO year = Pesta Olahraga Amerika
| CIJM year = Pesta Olahraga Mediterania
| #default = other games not [[#See also|listed below]]
}}.
 
== Usage ==
<code><nowiki>{{</nowiki>{{#switch:{{PAGENAME}}
| IOC year = {{PAGENAME}}
| CGF year = {{PAGENAME}}
| AFOC year = {{PAGENAME}}
| OCA year = {{PAGENAME}}
| SEAGF year = {{PAGENAME}}
| EOC year = {{PAGENAME}}
| PASO year = {{PAGENAME}}
| CIJM year = {{PAGENAME}}
| FISU year = {{PAGENAME}}
| #default = XXX year
}}<nowiki>|YYYY}}</nowiki></code>{{#switch:{{PAGENAME}}
| IOC year = &nbsp;or <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|YYYY|type=TYPE}}</nowiki></code>
| CGF year =
| AFOC year =
| OCA year =
| SEAGF year =
| EOC year =
| PASO year =
| CIJM year =
| FISU year = &nbsp;
| #default = &nbsp;or <code><nowiki>{{XXX year|YYYY|type=TYPE}}</nowiki></code>
* ''XXX'' is organizer code. IOC for Olympics, CGF for Commonwealth and EOC for European etc.
}}
* ''YYYY'' is a the year to be validated.
{{#switch:{{PAGENAME}}
| CGF year =
| AFOC year =
| OCA year =
| SEAGF year =
| EOC year =
| CIJM year =
| FISU year = &nbsp;
| IOC year = &nbsp;
| #default = * ''TYPE''¨ is relevant to {{tl|IOC year}} only. Accepts "Summer" or "Winter".
}}
 
Baris 62:
===[[Pesta Olahraga Persemakmuran|CGF]] year===
* <code><nowiki>{{CGF year|1954}}</nowiki></code> → {{CGF year|1954}}
* <code><nowiki>{{CGF year|20202018}}</nowiki></code> → {{CGF year|20202018}}
* <code><nowiki>{{CGF year|2019}}</nowiki></code> → {{CGF year|2019}}
* <code><nowiki>{{CGF year|2020}}</nowiki></code> → {{CGF year|2020}}
 
===[[Pesta Olahraga Afrika|AFOC]] year===
Baris 90:
* <code><nowiki>{{PASO year|2020}}</nowiki></code> → {{PASO year|2020}}
 
===[[UniversiadePesta Olahraga Mediterania|FISUCIJM]] year===
* <code><nowiki>{{CIJM year|1951}}</nowiki></code> → {{CIJM year|1951}}
* <code><nowiki>{{CIJM year|2018}}</nowiki></code> → {{CIJM year|2018}}
* <code><nowiki>{{CIJM year|2019}}</nowiki></code> → {{CIJM year|2019}}
 
===[[Universiade#editions|FISU]] year===
* <code><nowiki>{{FISU year|2019}}</nowiki></code> → {{FISU year|2019}}
* <code><nowiki>{{FISU year|2021}}</nowiki></code> → {{FISU year|2021}}
Baris 133 ⟶ 138:
! [[Pesta Olahraga Amerika]]
| {{tl|PASO year}}
|-
! [[Pesta Olahraga Mediterania]]
| {{tl|CIJM year}}
|-
! [[Universiade#Editions|Universiade Musim Panas]]
! {{tl|FISU year}}
|}
<includeonly>{{sandbox other||
 
}}</includeonly>