Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Examples  



2.1  Unnamed parameters  





2.2  Named parameters  





2.3  No parameters and Wikidata property not defined  







3 TemplateData  





4 See also  














Template:Diamond League profile






العربية
 

Edit links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

(Redirected from Template:Diamond League)

Template:Diamond League profile displays an external link to an athlete's profile at the official website of the Diamond League. The template is intended for use in the external links section of an article.

Usage[edit]

Unnamed parameters:

{{Diamond League profile | ID }}
{{Diamond League profile | ID | NAME }}

Named parameters:

{{Diamond League profile | id= ID }}
{{Diamond League profile | id= ID | name= NAME }}

Using Wikidata property Diamond League athlete ID (P3923):

{{Diamond League profile}}
{{Diamond League profile | name= NAME }}

Examples[edit]

Unnamed parameters[edit]

Usage:

* {{Diamond League profile | 14258756 | Mathilde Andraud }}

Output:

URL:

https://www.diamondleague.com/athletes/14258756.html

Named parameters[edit]

Usage:

* {{Diamond League profile |id= 14195659 |name= Kirani James }}

Output:

URL:

https://www.diamondleague.com/athletes/14195659.html

No parameters and Wikidata property not defined[edit]

Usage:

{{Diamond League profile}}

Output:

{{Diamond League profile}} template missing ID and not present in Wikidata.

TemplateData[edit]

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

TemplateData for Diamond League profile

This template ddisplays an external link to an athlete's profile at the official website of the Diamond League. The template is intended for use in the external links section of an article.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Examples: 14258756 is the ID portion of https://www.diamondleague.com/athletes/14258756.html. This parameter is optional if Wikidata property P3923 exists, but required if not.

Default
Wikidata property P3923
Numberoptional
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify 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 "(athlete)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also[edit]


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Diamond_League_profile&oldid=1047284663"

Categories: 
Templates using data from Wikidata
Lua-based templates
Athletics external link templates
People and person external link templates
External link templates using Wikidata
Hidden category: 
Templates using TemplateData
 



This page was last edited on 30 September 2021, at 01:49 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki