Jump to content

Template:UEFA match attendance/doc

From Wikipedia, the free encyclopedia

A template for citing attendances from UEFA's match database API (formatted in JSON). The attendance can be found in the matchAttendance property of the referenced URL.

Usage

[edit]

Copy a blank version to use. All parameter names are supported only in lower case. Use the "|" (pipe) character between each parameter. Unused parameters may be deleted to avoid clutter in the edit window.

Typical usage
{{UEFA match attendance|matchID|title|date=|access-date=}}
  • matchID – The match ID from UEFA's database
  • title – The title used in the reference
Required parameters only, in horizontal format
{{UEFA match attendance |id= |title=}}
Full parameter set in horizontal format
{{UEFA match attendance |id= |title= |date= |access-date= |url-status= |archive-url= |archive-date=}}

|id= and |title= correspond to the first and second unnamed parameters, respectively.

The match ID can be found in the URL from UEFA's website. For example, the URL www.uefa.com/uefaeuropaleague/match/2033450--frankfurt-vs-rangers/ has the match ID 2033450. Using this, the template generates a link to the corresponding game in UEFA's match database, in this case match.uefa.com/v4/matches/2033450/. This is used to cite the match attendance, as UEFA do not display attendances on the normal match report pages.

Example

[edit]

{{UEFA match attendance|2033450|Eintracht Frankfurt vs. Rangers|date=18 May 2022|access-date=18 May 2022}}

"Eintracht Frankfurt vs. Rangers" (JSON). Union of European Football Associations. 18 May 2022. Retrieved 18 May 2022.

Attendances

[edit]

Using the URL for UEFA's match database, the attendance for a given match can be found under the matchAttendance property. For example, the Eintracht Frankfurt vs. Rangers page has a value of 38842 for this property, corresponding to an attendance of 38,842 spectators at the match.

Note that for older matches, the attendances given in UEFA's match database may not be as reliable as in present-day competitions. Contemporary sources may be more accurate in such cases.