Difference between revisions of "Template:AthAbbr/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Swpb
blackwiki>SMcCandlish
(+cat.)
Line 48: Line 48:
 
[[Category:Athletics templates|Abbreviations]]
 
[[Category:Athletics templates|Abbreviations]]
 
[[Category:Text-specific formatting and function templates]]
 
[[Category:Text-specific formatting and function templates]]
 +
[[Category:Glossary link templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 05:45, 3 March 2016

The AthAbbr template is designed to allow easy tooltip explanations and links to be generated for common abbreviations used in the sport of athletics and track and field.

Usage

This template has two possible input fields:

  • The first field is for the relevant abbreviation (e.g. PB, meaning "personal best"). This field is used to automatically generate three aspects of the template:
  1. The abbreviation display (e.g. PB)
  2. The tooltip (e.g. Personal best)
  3. The relevant wikilink (e.g. Athletics abbreviations#Bests)
The list of usable abbreviations are located on the Athletics abbreviations page. The last update to the code was completed on 18 December 2013.
  • The second field is used to refine the wikilink for the abbreviation. These allow location- or championship-specific linking for record lists: championship record, area record, games record or national record list

Example

The below code will produce the following results:

*{{AthAbbr|PB}}
*{{AthAbbr|WR}}
*{{AthAbbr|WR|Men's 110 metres hurdles}}
*{{AthAbbr|WJR}}
*{{AthAbbr|CR|World Championships in Athletics}}
*{{AthAbbr|GR|Asian Games}}
*{{AthAbbr|AR|African}}
*{{AthAbbr|NR|British}}
*{{AthAbbr|w}}
*{{AthAbbr|DNF}}
*{{AthAbbr|#}}

See also