Difference between revisions of "Template:Bs position"

From blackwiki
Jump to navigation Jump to search
imported>MusikAnimal
m (Changed protection level for "Template:Bs position": High-risk template ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite)))
imported>IagoQnsi
(show endash if template is called with no parameters)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#switch:{{UC:{{{1}}}}}
 
<includeonly>{{#switch:{{UC:{{{1}}}}}
 
| PG = {{sort|1.0|[[Point guard|PG]]}}
 
| PG = {{sort|1.0|[[Point guard|PG]]}}
| PG/SG | PG-SG | SG/PG | SG-PG | CG | C-G | C/G
+
| PG/SG | PG-SG | SG/PG | SG-PG | C-G | C/G
| G = {{sort|1.5|[[Combo guard|G]]}}
+
| CG = {{sort|1.5|[[Combo guard|CG]]}}
 +
| G = {{sort|1.75|[[Guard (basketball)|G]]}}
 
| SG = {{sort|2.0|[[Shooting guard|SG]]}}
 
| SG = {{sort|2.0|[[Shooting guard|SG]]}}
 
| SG/SF | SG-SF | SF/SG | SF-SG | G/F | G-F | F/G | F-G
 
| SG/SF | SG-SF | SF/SG | SF-SG | G/F | G-F | F/G | F-G
 
| GF = {{sort|2.5|[[Swingman|G/F]]}}
 
| GF = {{sort|2.5|[[Swingman|G/F]]}}
 
| SF = {{sort|3.0|[[Small forward|SF]]}}
 
| SF = {{sort|3.0|[[Small forward|SF]]}}
| SF/PF | SF-PF | PF/SF | PF-SF | CM | C-M | C/M
+
| SF/PF | SF-PF | PF/SF | PF-SF | C-M | C/M
| F = {{sort|3.5|[[Stretch four|F]]}}
+
| CM = {{sort|3.5|[[Stretch four|F]]}}
 +
| F = {{sort|3.75|[[Forward (basketball)|F]]}}
 
| PF = {{sort|4.0|[[Power forward (basketball)|PF]]}}
 
| PF = {{sort|4.0|[[Power forward (basketball)|PF]]}}
 
| PF/C = {{sort|4.25|[[Power forward (basketball)|PF]]/[[Center (basketball)|C]]}}
 
| PF/C = {{sort|4.25|[[Power forward (basketball)|PF]]/[[Center (basketball)|C]]}}
Line 16: 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 37: 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>
+
</noinclude>

Latest revision as of 22:11, 10 July 2020

Template documentation

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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Position1

Abbreviated name of a basketball position

Example
PG
Stringrequired