Difference between revisions of "Template:ISSF/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (Zyxw moved page Template:ISSF name/doc to Template:ISSF/doc: moved to match new template name)
imported>Zyxw
(misc updates)
Line 8: Line 8:
  
 
== Usage ==
 
== Usage ==
No parameters (only works if [[Wikidata]] property [[d:Property:P2730|P2730]] exists):
+
Unnamed parameters:
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
  
One parameter:
+
Named parameters:
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
 
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
  
Two parameters:
+
Using [[Wikidata]] property [[d:Property:P2730|P2730]]:
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code>
  
 
== TemplateData ==
 
== TemplateData ==
Line 53: Line 54:
  
 
== Examples ==
 
== Examples ==
One parameter:
 
: ISSF web page for [[Joshua Richmond]]:
 
: <code><nowiki>http://</nowiki>www.issf-sports.org/athletes/athlete.ashx?personissfid={{hilite|SHUSAM1912198501}}</code>
 
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | SHUSAM1912198501 }}</code>
 
#: {{{{BASEPAGENAME}} | SHUSAM1912198501 }}
 
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= SHUSAM1912198501 }}</code>
 
#: {{{{BASEPAGENAME}} | id= SHUSAM1912198501 }}
 
  
Two parameters:
+
=== Unnamed parameters ===
: ISSF web page for [[Yi Siling]]:
+
[[Joshua Richmond]]
: <code><nowiki>http://</nowiki>www.issf-sports.org/athletes/athlete.ashx?personissfid={{hilite|SHCHNW0605198901}}</code>
+
 
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | SHCHNW0605198901 | YI Siling }}</code>
+
''URL:''
#: {{{{BASEPAGENAME}} | SHCHNW0605198901 | YI Siling }}
+
: <tt>[http://www.issf-sports.org/athletes/athlete.ashx?personissfid=SHUSAM1912198501 http://www.issf-sports.org/athletes/athlete.ashx?personissfid={{hilite|SHUSAM1912198501}}]</tt>
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= SHCHNW0605198901 | name= YI Siling }}</code>
+
''Usage:''
#: {{{{BASEPAGENAME}} | id= SHCHNW0605198901 | name= YI Siling }}
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | SHUSAM1912198501 | Joshua Richmond }}</code>
 +
''Output:''
 +
: {{{{BASEPAGENAME}} | SHUSAM1912198501 | Joshua Richmond }}
 +
 
 +
=== Named parameters ===
 +
[[Yi Siling]]
 +
 
 +
''URL:''
 +
: <tt>[http://www.issf-sports.org/athletes/athlete.ashx?personissfid=SHCHNW0605198901 http://www.issf-sports.org/athletes/athlete.ashx?personissfid={{hilite|SHCHNW0605198901}}]</tt>
 +
''Usage:''
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= SHCHNW0605198901 |name= Yi Siling }}</code>
 +
''Output:''
 +
: {{{{BASEPAGENAME}} |id= SHCHNW0605198901 |name= Yi Siling }}
  
 
==Tracking categories==
 
==Tracking categories==

Revision as of 21:08, 7 June 2016

Template:Uses Wikidata Template:Tracks Wikidata

Template:ISSF displays an external link to a shooting sport athlete's page at ISSF-sports.org, the official website of the International Shooting Sport Federation (ISSF). It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{ISSF | ID }}
{{ISSF | ID | NAME }}

Named parameters:

{{ISSF | id= ID }}
{{ISSF | id= ID | name= NAME }}

Using Wikidata property P2730:

{{ISSF}}
{{ISSF | name= NAME }}

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 ISSF

This template displays an external link to a shooting sport athlete's page at ISSF-sports.org, the official website of the International Shooting Sport Federation (ISSF). 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 for a shooting sport athlete's ISSF web page. Example: SHCHNW0605198901 is the ID portion of http://www.issf-sports.org/athletes/athlete.ashx?personissfid=SHCHNW0605198901. This parameter is optional if Wikidata property P2730 exists, but required if not.

Default
Wikidata property P2730
Stringrequired
Namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the shooting sport athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(sport shooter)".

Default
{{PAGENAMEBASE}}
Stringoptional

Instructions

  1. Go to ISSF-sports.org and search for an athlete
  2. Click on the correct link to go to the athlete's page
  3. The page URL should look like
http://www.issf-sports.org/athletes/athlete.ashx?personissfid=AAAAAAnnnnnnnnnn
where "AAAAAAnnnnnnnnnn" indicates the alphanumeric ID string for a specific athlete.

Examples

Unnamed parameters

Joshua Richmond

URL:

http://www.issf-sports.org/athletes/athlete.ashx?personissfid=SHUSAM1912198501

Usage:

{{ISSF | SHUSAM1912198501 | Joshua Richmond }}

Output:

Joshua Richmond at the International Shooting Sport FederationScript error: No such module "EditAtWikidata". Template:WikidataCheck

Named parameters

Yi Siling

URL:

http://www.issf-sports.org/athletes/athlete.ashx?personissfid=SHCHNW0605198901

Usage:

{{ISSF |id= SHCHNW0605198901 |name= Yi Siling }}

Output:

Yi Siling at the International Shooting Sport FederationScript error: No such module "EditAtWikidata". Template:WikidataCheck

Tracking categories

ID parameter exists
ID parameter does not exist