Jump to content

Template:ITTF PTT player/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add documentation template
 
update TemplateData
 
(2 intermediate revisions by 2 users not shown)
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:Table tennis templates]]
{{Uncat}}
[[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>

Latest revision as of 05:57, 3 March 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

[edit]
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

[edit]

Unnamed parameters

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

Named parameters

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

No parameters

[edit]
Usage
* {{ITTF PTT player}}
Output

TemplateData

[edit]
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

[edit]