Difference between revisions of "Template:ISSF/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (update category links using AWB)
imported>Zyxw
(misc updates)
Line 3: Line 3:
 
{{Uses Wikidata|P2730}}
 
{{Uses Wikidata|P2730}}
 
{{Tracks Wikidata|P2730}}
 
{{Tracks Wikidata|P2730}}
{{Lua|Module:WikidataCheck}}
+
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[shooting sport]] athlete's page at [http://www.issf-sports.org/ ISSF-sports.org], the official website of the [[International Shooting Sport Federation]] (ISSF). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[shooting sport]] athlete's page at [http://www.issf-sports.org/ ISSF-sports.org], the official website of the [[International Shooting Sport Federation]] (ISSF). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
Line 29: Line 29:
 
       "label": "ID",
 
       "label": "ID",
 
       "aliases": ["1"],  
 
       "aliases": ["1"],  
       "description": "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.",
+
       "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. 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.",
 
       "type": "string",
 
       "type": "string",
 
       "default": "Wikidata property P2730",
 
       "default": "Wikidata property P2730",
Line 56: Line 56:
  
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
[[Joshua Richmond]]
 
 
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | SHUSAM1912198501 | Joshua Richmond }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | SHUSAM1912198501 | Joshua Richmond }}</code>
Line 66: Line 64:
  
 
=== Named parameters ===
 
=== Named parameters ===
[[Yi Siling]]
 
 
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= SHCHNW0605198901 |name= Yi Siling }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= SHCHNW0605198901 |name= Yi Siling }}</code>
Line 75: Line 71:
 
: <tt>[http://www.issf-sports.org/athletes/athlete.ashx?personissfid=SHCHNW0605198901 http://www.issf-sports.org/athletes/athlete.ashx?personissfid={{hilite|SHCHNW0605198901}}]</tt>
 
: <tt>[http://www.issf-sports.org/athletes/athlete.ashx?personissfid=SHCHNW0605198901 http://www.issf-sports.org/athletes/athlete.ashx?personissfid={{hilite|SHCHNW0605198901}}]</tt>
  
==Tracking categories==
+
== Tracking categories ==
 
; "id" parameter exists
 
; "id" parameter exists
 
* {{clc|ISSF ID not in Wikidata}}
 
* {{clc|ISSF ID not in Wikidata}}
Line 84: Line 80:
 
* {{clc|ISSF template missing ID}}
 
* {{clc|ISSF template missing ID}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
== External links ==
 +
* [http://www.issf-sports.org/athletes.ashx Athlete search at ISSF-sports.org]
 +
 
 +
<includeonly>{{sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]

Revision as of 13:00, 23 November 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. 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

Usage:

{{ISSF | SHUSAM1912198501 | Joshua Richmond }}

Output:

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

URL:

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

Named parameters

Usage:

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

Output:

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

URL:

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

Tracking categories

"id" parameter exists
"id" parameter does not exist

External links