Difference between revisions of "Template:MOB profile/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (→‎External links: update template)
imported>Zyxw
(updates for Wikidata tracking)
Line 3: Line 3:
 
{{Template shortcut|MOB|mob}}
 
{{Template shortcut|MOB|mob}}
 
{{Uses Wikidata|P4066}}
 
{{Uses Wikidata|P4066}}
{{Lua|Module:EditAtWikidata}}
+
{{Tracks Wikidata|P4066}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an athlete's profile at [http://olimpia.hu/ Olimpia.hu], an official website of the [[Hungarian Olympic Committee]] (MOB: ''Magyar Olimpiai Bizottság''). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an athlete's profile at the official website of the [[Hungarian Olympic Committee]], known in [[Hungarian language|Hungarian]] as ''Magyar Olimpiai Bizottság'' (MOB). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
  
 
== Usage ==
 
== Usage ==
Line 16: Line 17:
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
  
; Using [[Wikidata]] property {{Property|4066|id=only}}
+
; Using [[Wikidata]] property {{Property|4066}}
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code>
Line 53: Line 54:
 
<templatedata>
 
<templatedata>
 
{
 
{
   "description": "This template  displays an external link to an athlete's profile at Olimpia.hu, an official website of the Hungarian Olympic Committee (MOB: Magyar Olimpiai Bizottság). It is intended for use in the external links section of an article.",
+
   "description": "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.",
 
   "params": {
 
   "params": {
 
     "id": {
 
     "id": {
Line 78: Line 79:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
== Tracking categories ==
 +
* {{clc|MOB profile ID different from Wikidata}}
 +
* {{clc|MOB profile ID not in Wikidata}}
 +
 +
== Templates and modules used ==
 +
* [[Template:First word]], implemented with [[Module:String]]
 +
* [[Module:EditAtWikidata]]
 +
* [[Module:WikidataCheck]]
  
 
== See also ==
 
== See also ==
Line 105: Line 115:
 
[[Category:Olympics external link templates]]
 
[[Category:Olympics external link templates]]
 
[[Category:External link templates using Wikidata]]
 
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 00:49, 9 December 2019

Template:Uses Wikidata Template:Tracks Wikidata

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
Usage
* {{MOB profile | 77 | Sarolta Kovács }}
Output

Named parameters

URL
http://olimpia.hu/champdata/details/id/23491
Usage
* {{MOB profile | id= 23491 | name= Margit Korondi }}
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. Example: 77 is the ID portion of http://olimpia.hu/champdata/details/id/77. 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