Jump to content

Template:ITTF PTT player/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
+ 2 categories
add documentation
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}

'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[para table tennis]] player's profile at ipttc.org, the [[International Table Tennis Federation|ITTF]] Para Table Tennis website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.

== Usage ==
== Usage ==
; Unnamed parameters
{{no documentation}}
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>ID</var> }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }}</code>

; Named parameters
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> | name= <var>NAME</var> }}</code>

== Examples ==

=== Unnamed parameters ===
; Usage
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 1522 | Natalia Partyka }}</code>

; Output
:* {{{{BASEPAGENAME}} | 1522 | Natalia Partyka }}

; URL
: <kbd>[http://stats.ipttc.org/en/profiles/1522 http://stats.ipttc.org/en/profiles/{{Highlight|1522}}]</kbd>

=== Named parameters ===
; Usage
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 695 | name= Holger Nikelis }}</code>

; Output
:* {{{{BASEPAGENAME}} | id= 695 | name= Holger Nikelis }}

; URL
: <kbd>[http://stats.ipttc.org/en/profiles/695 http://stats.ipttc.org/en/profiles/{{Highlight|695}}]</kbd>

=== No parameters ===
; Usage
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>

; Output
:* {{ {{BASEPAGENAME}} }}

== TemplateData ==
{{TemplateData header}}
<templatedata>
{
"description": "This template displays an external link to a para table tennis player's profile at ipttc.org, the ITTF Para Table Tennis website. It is intended for use in the external links section of an article.",
"params": {
"id": {
"label": "id",
"aliases": ["1"],
"description": "The ID number in the URL, such as 1522 in http://stats.ipttc.org/en/profiles/1522.",
"type": "number",
"required": true
},
"name": {
"label": "name",
"aliases": ["2"],
"description": "The link text, which should be the name of the athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(table tennis)\".",
"default": "{{PAGENAMEBASE}}",
"type": "string",
"required": false
}
},
"paramOrder": [
"id",
"name"
]
}
</templatedata>

== See also ==
* {{tl|WTT player}}


<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
<!-- Categories below this line -->
<!-- Categories below this line -->
[[Category:Sports external link templates]]
[[Category:Table tennis templates]]
[[Category:Table tennis templates]]
[[Category:Paralympics external link templates]]
[[Category:People and person external link templates]]
[[Category:Sports external link templates]]
[[Category:Sports governing body external link templates]]
}}</includeonly>
}}</includeonly>

Revision as of 03:40, 12 February 2024

Template:ITTF PTT player displays an external link to a para table tennis player's profile at ipttc.org, the ITTF Para Table Tennis website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{ITTF PTT player | ID }}
{{ITTF PTT player | ID | NAME }}
Named parameters
{{ITTF PTT player | id= ID }}
{{ITTF PTT player | id= ID | name= NAME }}

Examples

Unnamed parameters

Usage
* {{ITTF PTT player | 1522 | Natalia Partyka }}
Output
URL
http://stats.ipttc.org/en/profiles/1522

Named parameters

Usage
* {{ITTF PTT player | id= 695 | name= Holger Nikelis }}
Output
URL
http://stats.ipttc.org/en/profiles/695

No parameters

Usage
* {{ITTF PTT player}}
Output

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:ITTF PTT player in articles based on its TemplateData.

TemplateData for ITTF PTT player

This template displays an external link to a para table tennis player's profile at ipttc.org, the ITTF Para Table Tennis website. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The ID number in the URL, such as 1522 in http://stats.ipttc.org/en/profiles/1522.

Numberrequired
namename 2

The link text, which should be the name of the athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(table tennis)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also