Jump to content

Template:World Snooker/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This template, which creates properly-formatted reference citations to WPBSA player profiles, is designed to be used inside <ref name="uniqueid">...</ref> reference citations, though it can also be used in a free-form References or Footnotes section with a * bullet (this latter practice is deprecated, as it is impossible for the reader to know what facts in the article can be cited to this specific souce; see Wikipedia:Citing sources; while it is better than no sourcing at all, bad sourcing like that will block an article's progress to WP:GA and WP:FA status).

The format is:

{{World Snooker|VVVV|####~#######,##|Firstname Lastname|Day Month YYYY}}

where

  • VVVV can be active, senior and past for PlayersAlphabeticalArticle, SeniorPlayersArticle and PastPlayersArticle respectively)
  • ####~#######,## is the player's numeric ID code in the URL of the profile page after the two commas
  • Day Month YYYY is the access-date, and
  • Firstname Lastname is the player's name (as given by the source; may not perfectly match WP article name).

For example, use {{World Snooker|active|13165~2234637,00|24 November 2024|Ronnie O'Sullivan}} for:

"Official player profile of Ronnie O'Sullivan". wst.tv. World Professional Billiards and Snooker Association. "Tour Players" section. Retrieved 24 November 2024.

The parameters must be given in this order. If a different order is desired, the parameters must be named:

{{World Snooker|name=Firstname Lastname|1=VVVV|id=####~#######,##|access-date=Day Month YYYY}}

Required parameters & values

[edit]

Parameter 1 (1=) and 2 (id=) specifying the link to the profile are mandatory, or the template simply will not work.

Parameter 3 (access-date=) is mandatory, or the citation will be incomplete; typical usage is to just enter today's date manually in international format (24 November 2024), unless the article uses US date format. But a "cheat" is to do it as access{{subst:DATE}} with no "=". It can be specified as some other date, e.g. access-date=2 January 2008, when re-formatting an earlier citation that did not use this template but did give an access-date.

Parameter 4 (name=) is optional and defaults to the page name. It is important to use this field if the article title is disambiguated. It should match what the name of the World Snooker profile is, regardless what the Wikipedia article name is (for example, if there were a player X. Youill de Zounds but the WPBSA player profile had him as "X.Y. DeZounds", use "X.Y. DeZounds" in this parameter.

"Speed" version

[edit]

For doing a bunch of citations in a bunch of articles all with today's access-date, use the shorthand subst-only template {{WSfast}}, which requires only the active/senior/past parameter, the ID, and optionally the profile name, in that order, with no parameter names, and which will auto-fill the access-date for you:

{{subst:WSfast|VVVV|####~#######,##}}
or, if name also needed:
{{subst:WSfast|VVVV|####~#######,##|Firstname Lastname}}

See also

[edit]