Templat:IOC year/doc: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
k fix |
|||
(9 revisi perantara oleh 2 pengguna tidak ditampilkan) | |||
Baris 1:
{{Subhalaman dokumentasi}}
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 = 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 =
| #default = 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 =
| IOC year =
| #default = * ''TYPE'' is relevant to {{tl|IOC year}} only. Accepts "Summer" or "Winter".
}}
Baris 90:
* <code><nowiki>{{PASO year|2020}}</nowiki></code> → {{PASO year|2020}}
===[[
* <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>
|