Template:TFRRS/doc

From Wikipedia, the free encyclopedia

The TFRRS template is designed to give standardised external links to athlete biographies on the Track & Field Results Reporting System (TFRRS) statistics website.

Usage[edit]

The template has five basic input fields, but only id= (which can also just be the first unnamed argument) is mandatory:

{{TFRRS|id=|name=|xc=|teamslug=|nameslug=}}
  • The id field is mandatory and relates to the number found in the target athlete biography URL
  • The name field is optional and changes the output text for the athlete's name. This defaults to the article name (minus any disambiguation handles in parentheses).
  • The xc field is optional. If populated this will change the URL to access the cross country side of the database, https://xc.tfrrs.org/.
  • The nameslug and teamslug fields, which are optional but must be used together if either is used, are useful to preserve the original URL format, if you would want to do that. So for example if you wanted to encode the USC and Andre_De_Grasse parts of the https://www.tfrrs.org/athletes/5095490/USC/Andre_De_Grasse.html URL, you could use {{TFRRS|id=5095490|name=Andre De Grasse|teamslug=USC|nameslug=Andre_De_Grasse}} to make the linked URL appear as per the original, rather than the brief https://www.tfrrs.org/athletes/5095490 version.

In addition, the id, xc, teamslug, nameslug, and a new label parameter may all be numbered starting from 1, to link multiple TFRRS profile pages to one person or entity, useful for transfers or accounting for database discrepancies. So to link Andre De Grasse's profiles from University of Southern California (with an ID of 5095490) and Coffeyville Community College (with an ID of 5720200), you could do the following: {{TFRRS|name=Andre De Grasse|id1=5095490|label1=At the University of Southern California|id2=4207601|label2=At Coffeyville Community College}}

If you are linking multiple TFRRS profiles to one entity, using numbered label parameters is recommended to avoid bare URLs. There is no limit to the number of TFRRS URLs you can link this way.

Examples[edit]

The indoor and outdoor track and field profile for Justyn Knight is https://tfrrs.org/athletes/5111450/

The final numbers in the URL are the id. So to add this link to the article we would include the following text in the External links section:

* {{TFRRS|id=5111450}}

This will appear in the article as below:

Cross country page[edit]

Cross country results can be shown with the 'xc' parameter. For example:

* {{TFRRS|id=5111450|xc=yes}}

This will appear in the article as below:

Using nameslug and teamslug parameters[edit]

* {{TFRRS |id= 5095490 |name= Andre De Grasse |teamslug= USC |nameslug= Andre_De_Grasse }}

Multiple links[edit]

* {{TFRRS |name= Andre De Grasse |id1= 5095490 |label1= At the University of Southern California |id2= 4207601 |label2= At Coffeyville Community College }}

See also[edit]