Difference between revisions of "Template:MOB profile/doc"
imported>Zyxw m (→See also: update link) |
imported>Zyxw (update URLs, add note after search page link) |
||
| Line 25: | Line 25: | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
; URL | ; URL | ||
| − | : | + | : [http://olimpia.hu/champdata/details/id/77/m/612 http://olimpia.hu/champdata/details/id/{{Hilite|77}}/m/612] |
; Usage | ; Usage | ||
| Line 35: | Line 35: | ||
=== Named parameters === | === Named parameters === | ||
; URL | ; URL | ||
| − | : | + | : [http://olimpia.hu/champdata/details/id/105/m/654 http://olimpia.hu/champdata/details/id/{{Hilite|105}}/m/654] |
; Usage | ; Usage | ||
| − | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 105 | name= Diána Detre }}</code> |
; Output | ; Output | ||
| − | :* {{{{BASEPAGENAME}} | id= | + | :* {{{{BASEPAGENAME}} | id= 105 | name= Diána Detre }} |
=== No parameters and Wikidata property not defined === | === No parameters and Wikidata property not defined === | ||
| Line 59: | Line 59: | ||
"label": "id", | "label": "id", | ||
"aliases": ["1"], | "aliases": ["1"], | ||
| − | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL, which is the first number shown. Examples: 77 is the ID portion of http://olimpia.hu/champdata/details/id/77/m/612 and 105 is the ID portion of http://olimpia.hu/champdata/details/id/105/m/654. This parameter is optional if Wikidata property P4066 exists, but required if not.", |
"type": "number", | "type": "number", | ||
"required": false, | "required": false, | ||
| Line 108: | Line 108: | ||
== External links == | == External links == | ||
| − | * [http://olimpia.hu/sportolok Athlete search at Olimpia.hu] {{in lang|hu}} | + | * [http://olimpia.hu/sportolok Athlete search at Olimpia.hu] {{in lang|hu}} – use [[Personal name#Eastern name order|Hungarian name order]] (e.g. Kovács Sarolta, not Sarolta Kovács) |
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Revision as of 19:08, 7 April 2020
| This is a documentation subpage for Template:MOB profile. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| This template uses Lua: |
Template:MOB profile displays an external link to an athlete's profile at the official website of the Hungarian Olympic Committee, known in Hungarian as Magyar Olimpiai Bizottság (MOB). It is intended for use in the external links section of an article.
Contents
Usage
- Unnamed parameters
{{MOB profile | ID }}{{MOB profile | ID | NAME }}
- Named parameters
{{MOB profile | id= ID }}{{MOB profile | id= ID | name= NAME }}
- Using Wikidata property Template:Property
{{MOB profile}}{{MOB profile | name= NAME }}
Examples
Unnamed parameters
- Usage
* {{MOB profile | 77 | Sarolta Kovács }}
- Output
-
- Sarolta Kovács at the Magyar Olimpiai Bizottság (in Hungarian) (English translation)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
- Usage
* {{MOB profile | id= 105 | name= Diána Detre }}
- Output
-
- Diána Detre at the Magyar Olimpiai Bizottság (in Hungarian) (English translation)Script error: No such module "EditAtWikidata".Template:WikidataCheck
No parameters and Wikidata property not defined
- Usage
* {{MOB profile}}
- Output
-
- Template:PAGENAMEBASE at the Magyar Olimpiai Bizottság (in Hungarian) (English translation)Script error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for MOB profile
This template displays an external link to an athlete's profile at the official website of the Hungarian Olympic Committee, known in Hungarian as Magyar Olimpiai Bizottság (MOB). It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL, which is the first number shown. Examples: 77 is the ID portion of http://olimpia.hu/champdata/details/id/77/m/612 and 105 is the ID portion of http://olimpia.hu/champdata/details/id/105/m/654. This parameter is optional if Wikidata property P4066 exists, but required if not.
| Number | optional |
| 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)".
| String | optional |
Tracking categories
Templates and modules used
- Template:First word, implemented with Module:String
- Module:EditAtWikidata
- Module:WikidataCheck
See also
- {{IOC profile}} for links to profiles from the International Olympic Committee
- {{AOC profile}} for links to profiles from the Australian Olympic Committee
- {{BOC profile}} for links to profiles from the Brazilian Olympic Committee
- {{CNOSF profile}} for links to profiles from the Comité National Olympique et Sportif Français
- {{COA profile}} for links to profiles from the Comité Olímpico Argentino
- {{COC profile}} for links to profiles from the Canadian Olympic Committee
- {{COE profile}} for links to profiles from the Comité Olímpico Español
- {{CONI profile}} for links to profiles from the Comitato Olimpico Nazionale Italiano
- {{COSR profile}} for links to profiles from the Comitetul Olimpic și Sportiv Român
- {{COV profile}} for links to profiles from the Český olympijský výbor
- {{DOSB profile}} for links to profiles from the Deutscher Olympischer Sportbund
- {{LOK profile}} for links to profiles from the Latvijas Olimpiskā Komiteja
- {{NZOC profile}} for links to profiles from the New Zealand Olympic Committee
- {{SOK profile}} for links to profiles from the Sveriges Olympiska Kommitté
- {{Team GB}} for links to profiles from Team GB (the British Olympic Association)
- {{USOPC profile}} for links to profiles from the United States Olympic & Paralympic Committee
External links
- Athlete search at Olimpia.hu (in Hungarian) – use Hungarian name order (e.g. Kovács Sarolta, not Sarolta Kovács)