الگو:Databaseolympics/توضیحات
این زیرصفحهٔ مستندات الگو:Databaseolympics است. این شامل اطلاعات استفاده، الگوها، پیوندهای بین زبانی و سایر اطلاعات است که در اصل الگو صفحه قرار نمیگیرد. |
این الگو از یک ویژگی ویکیداده استفاده میکند:
|
این الگو از لوآ استفاده میکند: |
الگو:Databaseolympics displays an external link to an Olympic athlete's profile at databaseOlympics.com. It is intended for use in the ویکیپدیا:پیوند به بیرون section of an article.
Usage ویرایش
Unnamed parameters:
{{Databaseolympics | ID }}
{{Databaseolympics | ID | NAME }}
Named parameters:
{{Databaseolympics | id= ID }}
{{Databaseolympics | id= ID | name= NAME }}
{{Databaseolympics | id= ID | name= NAME | archive= NUMBER }}
Using ویکیداده property شناسۀ ورزشکار المپیک (P3520):
{{Databaseolympics }}
{{Databaseolympics | name= NAME }}
{{Databaseolympics | name= NAME | archive= NUMBER }}
Examples ویرایش
Unnamed parameters ویرایش
URL:
- http://www.databaseolympics.com/players/playerpage.htm?ilkid=MCCORJOE01 (archived)
Usage:
* {{Databaseolympics | MCCORJOE01 | Joe McCormick }}
Output:
- Joe McCormick در databaseOlympics.com (archived)
Named parameters ویرایش
URL:
- http://www.databaseolympics.com/players/playerpage.htm?ilkid=WRIGHJOS02 (archived)
Usage:
* {{Databaseolympics |id= WRIGHJOS02 |name= Joseph Wright |archive= 20160303211305}}
Output:
- Joseph Wright در databaseOlympics.com (archived)
No ID in template or Wikidata ویرایش
Usage:
* {{Databaseolympics}}
Output:
- {{DatabaseOlympics}} template missing ID and not present in Wikidata.
TemplateData ویرایش
الگوداده Databaseolympics
This template displays an external link to an Olympic athlete's profile at databaseOlympics.com. It is intended for use in the external links section of an article.
پارامتر | توضیحات | نوع | وضعیت | |
---|---|---|---|---|
id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: MCCORJOE01 is the ID portion of http://www.databaseolympics.com/players/playerpage.htm?ilkid=MCCORJOE01. This parameter is optional if Wikidata property P3520 exists, but required if not.
| رشته | اختیاری |
name | name 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)".
| رشته | اختیاری |
archive | archive | Number representing the date/time in an Internet Archive URL, such as 20160303211305 in https://web.archive.org/web/20160303211305/http://www.databaseolympics.com/players/playerpage.htm?ilkid=WRIGHJOS02. | شماره | اختیاری |