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 (show endash if template is called with no parameters) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 18: | Line 18: | ||
| FC = {{sort|4.75|[[Forward-center|F/C]]}} | | FC = {{sort|4.75|[[Forward-center|F/C]]}} | ||
| C = {{sort|5.0|[[Center (basketball)|C]]}} | | C = {{sort|5.0|[[Center (basketball)|C]]}} | ||
| − | | #default = {{{1}}} | + | | #default = {{{1|–}}} |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation|content= | {{documentation|content= | ||
| 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> | |
Latest revision as of 22:11, 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. |