Difference between revisions of "Template:Bs position"
Jump to navigation
Jump to search
Template documentation
imported>IagoQnsi (G and F are ambiguous, and probably shouldn't link to such a specific and exclusively-recent position) |
imported>IagoQnsi (+templatedata) |
||
| Line 39: | Line 39: | ||
{{!}} <nowiki>{{Bs position|C}}</nowiki> {{!!}} <nowiki>[[Center (basketball)|C]]</nowiki> {{!!}} {{Bs position|C}} | {{!}} <nowiki>{{Bs position|C}}</nowiki> {{!!}} <nowiki>[[Center (basketball)|C]]</nowiki> {{!!}} {{Bs position|C}} | ||
{{!}}} | {{!}}} | ||
| + | == TemplateData == | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Position", | ||
| + | "description": "Abbreviated name of a basketball position", | ||
| + | "example": "PG", | ||
| + | "required": true, | ||
| + | "type": "string" | ||
| + | } | ||
| + | }, | ||
| + | "description": "Creates a link from the abbreviated name for any basketball position to the corresponding article", | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata>}} | ||
[[Category:Bs templates]] | [[Category:Bs templates]] | ||
[[Category:Basketball position templates]] | [[Category:Basketball position templates]] | ||
| − | + | </noinclude> | |
Revision as of 22:05, 10 July 2020
Template:Bs position (Basketball - position)
Usage
The template can be used as follows:
| What you type | What it returns | Result |
|---|---|---|
| {{Bs position|PG}} | [[Point guard|PG]] | PG |
| {{Bs position|SG}} | [[Shooting guard|SG]] | SG |
| {{Bs position|SF}} | [[Small forward|SF]] | SF |
| {{Bs position|PF}} | [[Power forward (basketball)|PF]] | PF |
| {{Bs position|C}} | [[Center (basketball)|C]] | C |
TemplateData
Creates a link from the abbreviated name for any basketball position to the corresponding article
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Position | 1 | Abbreviated name of a basketball position
| String | required |
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |