Difference between revisions of "Template:MOB profile"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (fix prior edit)
imported>Zyxw
(add translation link)
 
Line 1: Line 1:
 
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P4066}}
 
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P4066}}
  
| [http://olimpia.hu/champdata/details/id/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P4066}}|sep=,}} }}#ordertype {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[Hungarian Olympic Committee|''Magyar Olimpiai Bizottság'']] {{in lang|hu}}<includeonly>{{EditAtWikidata|pid=P4066|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P4066|value={{{1|{{{id|}}}}}}|category=MOB profile ID|namespaces=0|nocatsame=1}}
+
| [http://olimpia.hu/champdata/details/id/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P4066}}|sep=,}} }}#ordertype {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[Hungarian Olympic Committee|''Magyar Olimpiai Bizottság'']] {{in lang|hu}} ([http://www.translatetheweb.com/?from=hu&to=en&a=http://olimpia.hu/champdata/details/id/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P4066}}|sep=,}} }} English translation])<includeonly>{{EditAtWikidata|pid=P4066|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P4066|value={{{1|{{{id|}}}}}}|category=MOB profile ID|namespaces=0|nocatsame=1}}
  
 
| <span class="error">&#123;&#123;[[Template:MOB profile|MOB profile]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{#invoke:Preview warning|main|1=to find the ID, see the [http://olimpia.hu/sportolok Olimpia.hu athlete search page] or this [https://www.google.com/search?q={{urlencode:{{PAGENAMEBASE}}}}+site%3Aolimpia.hu%2Fchampdata%2Fdetails%2Fid%2F Google search]; the ID is the first number in the URL}}
 
| <span class="error">&#123;&#123;[[Template:MOB profile|MOB profile]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{#invoke:Preview warning|main|1=to find the ID, see the [http://olimpia.hu/sportolok Olimpia.hu athlete search page] or this [https://www.google.com/search?q={{urlencode:{{PAGENAMEBASE}}}}+site%3Aolimpia.hu%2Fchampdata%2Fdetails%2Fid%2F Google search]; the ID is the first number in the URL}}

Latest revision as of 19:19, 7 April 2020

{{{name}}} at the Magyar Olimpiai Bizottság (in Hungarian) (English translation)Template:WikidataCheck

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

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.

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

URL
http://olimpia.hu/champdata/details/id/77/m/612
Usage
* {{MOB profile | 77 | Sarolta Kovács }}
Output

Named parameters

URL
http://olimpia.hu/champdata/details/id/105/m/654
Usage
* {{MOB profile | id= 105 | name= Diána Detre }}
Output

No parameters and Wikidata property not defined

Usage
* {{MOB profile}}
Output

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 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.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P4066
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

Tracking categories

Templates and modules used

See also

External links