Template:AthAbbr/doc
外观
![]() | 此頁面是Template:AthAbbr的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
![]() | 此Template文档被引用於許多頁面。 為了避免造成大規模的影響,所有對此Template文档的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template文档中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
The AthAbbr template is designed to allow easy abbr explanations with tooltip 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:
- The abbreviation display (e.g. PB)
- The tooltip (e.g. Personal best)
- 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|SB}}
*{{AthAbbr|OR}}
*{{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
[编辑]- Template:Abbr – a generic abbreviation template with no wikilinks
- Template:Abbrlink – a generic abbreviation template with wikilinks
- Template:T&Fcalc – a track and field measurement converter