Template:Tcode2
The tcode2 template will convert your T-Code (ALB, ALK, etc.) "to" the full name of the team, the full name of the team as a link, the team's location or the team's name.
Convert to full name
To convert a T-Code to the team's full name, just feed the Tcode into the template.
{{ tcode2 | SJT }}
Comes out as: San Jose Thrust
This is not linkable and helps preserve compatibility with other templates.
Convert to linkable full name
If you add a modifier to the template, you can get different results. The default result is to make a full name link of the team. This is also the result of using the value "1"..
{{ tcode2 | TEN | 1 }}
Comes out as: Tennessee Moonshiners
Convert to location
If you use "2" as the modifier, you'll get back just the team's location.
{{ tcode2 | WIL | 2 }}
Comes out as: Williamsburg
Convert to team name
If you use "3" as the modifier, you'll get back just the team's name.
{{ tcode2 | PIT | 3 }}
Comes out as: Keystones
| The above documentation is transcluded from Template:Tcode2/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |