Difference between revisions of "Template:AIBA/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(create)
 
blackwiki>John of Reading
m (Typo fixing, replaced: a amateur boxer's → an amateur boxer's (2))
Line 2: Line 2:
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
  
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[amateur boxing|amateur boxer]]'s page at the [[International Boxing Association (amateur)|AIBA]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[amateur boxing|amateur boxer]]'s page at the [[International Boxing Association (amateur)|AIBA]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
  
 
== Usage ==
 
== Usage ==
Line 46: Line 46:
 
<templatedata>
 
<templatedata>
 
{
 
{
   "description": "This template displays an external link to a amateur boxer's page at the AIBA website. It is intended for use in the external links section of an article.",
+
   "description": "This template displays an external link to an amateur boxer's page at the AIBA website. It is intended for use in the external links section of an article.",
 
   "params": {
 
   "params": {
 
     "id": {
 
     "id": {

Revision as of 12:03, 17 July 2020

Template:AIBA displays an external link to an amateur boxer's page at the AIBA website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{AIBA | ID }}
{{AIBA | ID | NAME }}

Named parameters:

{{AIBA | id= ID }}
{{AIBA | id= ID | name= NAME }}

Examples

Unnamed parameters

Usage:

  • {{AIBA | robson-concencaio-60-kg | Robson Concencaio }}

Output:

URL:

https://www.aiba.org/robson-concencaio-60-kg/

Named parameters

Usage:

  • {{AIBA |id= 60kg-joseph-cordina |name= Joseph Cordina }}

Output:

URL:

https://www.aiba.org/60kg-joseph-cordina/

No parameters

Usage
  • {{AIBA}}
Output
  • {{AIBA}} template missing ID.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for AIBA

This template displays an external link to an amateur boxer's page at the AIBA website. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL for the boxer's profile. Example: robson-concencaio-60-kg is the ID portion of https://www.aiba.org/robson-concencaio-60-kg/.

Stringrequired
Namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the boxer. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(boxer)".

Default
{{PAGENAMEBASE}}
Stringoptional