Difference between revisions of "Template:Bs position"

From blackwiki
Jump to navigation Jump to search
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>
+
</noinclude>

Revision as of 22:05, 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