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

From blackwiki
Jump to navigation Jump to search
imported>Phikia
(Created page with '{{Documentation subpage}} <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Template shortcut|MVLSZ|mvlsz}} '''{...')
 
imported>Phikia
 
Line 2: Line 2:
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
{{Template shortcut|MVLSZ|mvlsz}}
 
{{Template shortcut|MVLSZ|mvlsz}}
 +
{{Uses Wikidata|P8725}}
 +
{{Tracks Wikidata|P8725}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a player's profile at the official website of the [[Hungarian Water Polo Federation]], known in [[Hungarian language|Hungarian]] as ''Magyar Vízilabda Szövetség'' (MVLSZ). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a player's profile at the official website of the [[Hungarian Water Polo Federation]], known in [[Hungarian language|Hungarian]] as ''Magyar Vízilabda Szövetség'' (MVLSZ). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
Line 13: Line 16:
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
 +
 +
; Using [[Wikidata]] property {{Property|8725}}
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code>
  
 
== Examples ==
 
== Examples ==
Line 36: Line 43:
 
: <kbd>[http://waterpolo.hu/jatekos/293 http://waterpolo.hu/jatekos/{{Hilite|293}}]</kbd>
 
: <kbd>[http://waterpolo.hu/jatekos/293 http://waterpolo.hu/jatekos/{{Hilite|293}}]</kbd>
  
=== No parameters ===
+
=== No parameters and Wikidata property not defined ===
 
; Usage
 
; Usage
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
Line 52: 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, which is the number shown. Examples: 2435 is the ID portion of http://waterpolo.hu/jatekos/2435, and 293 is the ID portion of http://waterpolo.hu/jatekos/293.",
+
       "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL, which is the number shown. Examples: 2435 is the ID portion of http://waterpolo.hu/jatekos/2435, and 293 is the ID portion of http://waterpolo.hu/jatekos/293. This parameter is optional if Wikidata property P8725 exists, but required if not.",
 
       "type": "number",
 
       "type": "number",
 
       "required": false,
 
       "required": false,
       "default": " "
+
       "default": "Wikidata property P8725"
 
     },
 
     },
 
     "name": {
 
     "name": {
 
       "label": "name",
 
       "label": "name",
 
       "aliases": ["2"],  
 
       "aliases": ["2"],  
       "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text, which should be the name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(player)\".",
+
       "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text, which should be the name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(water polo)\".",
 
       "type": "string",
 
       "type": "string",
 
       "required": false,
 
       "required": false,
Line 72: Line 79:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
== Tracking categories ==
 +
; template with ID
 +
* {{clc|MVLSZ profile template with ID different from Wikidata}}
 +
* {{clc|MVLSZ profile template with ID not in Wikidata}}
 +
; template missing ID
 +
* {{clc|MVLSZ profile template missing ID and not in Wikidata}}
  
 
== See also ==
 
== See also ==
Line 84: Line 98:
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:Sports governing body external link templates]]
 
[[Category:Sports governing body external link templates]]
 +
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 13:51, 22 October 2020

Template:Uses Wikidata Template:Tracks Wikidata

Template:MVLSZ profile displays an external link to a player's profile at the official website of the Hungarian Water Polo Federation, known in Hungarian as Magyar Vízilabda Szövetség (MVLSZ). It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{MVLSZ profile | ID }}
{{MVLSZ profile | ID | NAME }}
Named parameters
{{MVLSZ profile | id= ID }}
{{MVLSZ profile | id= ID | name= NAME }}
Using Wikidata property Template:Property
{{MVLSZ profile}}
{{MVLSZ profile | name= NAME }}

Examples

Unnamed parameters

Usage
* {{MVLSZ profile | 2435 | Márton Vámos }}
Output
URL
http://waterpolo.hu/jatekos/2435

Named parameters

Usage
* {{MVLSZ profile | id= 293 | name= Rita Keszthelyi }}
Output
URL
http://waterpolo.hu/jatekos/293

No parameters and Wikidata property not defined

Usage
* {{MVLSZ 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 MVLSZ profile

This template displays an external link to a player's profile at the official website of the Hungarian Water Polo Federation, known in Hungarian as Magyar Vízilabda Szövetség (MVLSZ). 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 number shown. Examples: 2435 is the ID portion of http://waterpolo.hu/jatekos/2435, and 293 is the ID portion of http://waterpolo.hu/jatekos/293. This parameter is optional if Wikidata property P8725 exists, but required if not.

Default
Wikidata property P8725
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 player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(water polo)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

template with ID
template missing ID

See also

External links