Difference between revisions of "Template:College/doc"
Jump to navigation
Jump to search
imported>Jonesey95 (create skeleton documentation) |
imported>Colonies Chris m (→Tracking categories: minor fixes, replaced: {{clc| → {{Category link with count|) |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{high-use|5,349}} | {{high-use|5,349}} | ||
| − | |||
This documentation takes one unnamed parameter: the name, nickname, or common initialism of a university or college, and turns it into a wikilinked version of the university or college's name. It is most commonly used within [[Template:Player2]], which is used to list players in basketball team rosters. | This documentation takes one unnamed parameter: the name, nickname, or common initialism of a university or college, and turns it into a wikilinked version of the university or college's name. It is most commonly used within [[Template:Player2]], which is used to list players in basketball team rosters. | ||
==Examples== | ==Examples== | ||
| − | |||
| − | |||
*<code><nowiki>{{College|Alabama State}}</nowiki></code> → {{College|Alabama State}} | *<code><nowiki>{{College|Alabama State}}</nowiki></code> → {{College|Alabama State}} | ||
*<code><nowiki>{{College|University of Michigan}}</nowiki></code> → {{College|University of Michigan}} | *<code><nowiki>{{College|University of Michigan}}</nowiki></code> → {{College|University of Michigan}} | ||
| + | |||
| + | For usage examples within a roster, using {{tl|player2}}, see [[1976–77 Buffalo Braves season#Roster]] or [[Template:Cleveland Cavaliers roster]]. | ||
==Unsupported college and university names== | ==Unsupported college and university names== | ||
When the unnamed parameter value is not recognized by the template, the value is displayed without a wikilink. Example: | When the unnamed parameter value is not recognized by the template, the value is displayed without a wikilink. Example: | ||
| − | *<code><nowiki>{{College|Foo State}}</nowiki></code> → {{College | + | *<code><nowiki>{{College|Foo State}}</nowiki></code> → {{College|Foo State}} |
| − | A blank unnamed parameter will display an error message | + | A blank unnamed parameter will display an error message: |
| − | *<code><nowiki>{{College | + | *<code><nowiki>{{College|}}</nowiki></code> → {{College|}} |
==Tracking categories== | ==Tracking categories== | ||
| − | *{{ | + | *{{Category link with count|Pages using Template:College with unsupported name}} |
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Latest revision as of 15:47, 14 May 2019
| This is a documentation subpage for Template:College. It contains usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 6,400 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
This documentation takes one unnamed parameter: the name, nickname, or common initialism of a university or college, and turns it into a wikilinked version of the university or college's name. It is most commonly used within Template:Player2, which is used to list players in basketball team rosters.
Examples
{{College|Alabama State}}→ Alabama State{{College|University of Michigan}}→ Michigan
For usage examples within a roster, using {{player2}}, see 1976–77 Buffalo Braves season#Roster or Template:Cleveland Cavaliers roster.
Unsupported college and university names
When the unnamed parameter value is not recognized by the template, the value is displayed without a wikilink. Example:
{{College|Foo State}}→ Foo State
A blank unnamed parameter will display an error message:
{{College|}}→ Error: Template:College requires a value
Tracking categories