Template:World Sailing: Difference between revisions
Yachty4000 (talk | contribs) No edit summary |
Adding standard unknown parameter tracking through Category:Pages using World Sailing with unknown parameters using Module:check for unknown parameters. Might be needed after so many changes to parameters. |
||
Line 17: | Line 17: | ||
}} |
}} |
||
}} |
}} |
||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using world Sailing with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:World Sailing]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | id | name | title | www }}<noinclude> |
|||
}}<noinclude> |
|||
{{Documentation}}<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> |
{{Documentation}}<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> |
||
</noinclude> |
</noinclude> |
Revision as of 01:57, 23 January 2023
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Template:World Sailing displays an external link to a sailor's profile at an official website of World Sailing (formerly the International Sailing Federation or ISAF), the international governing body for the sport of sailing. It is intended for use in the external links section of an article.
Usage
id parameter
Used with the Sailor ID, an alphanumeric string starting with a three letter country code, followed by two letters for the sailor's initials, and sometimes followed by number to differentiate sailors in the same country with the same initials.
- Using page name as link text
{{World Sailing | id= }}
- Using name parameter as link text
{{World Sailing | id= | name= }}
- Examples of URLs with Sailor ID at current website
- www.sailing.org/sailor/?ref=ESPFE – Fernando Echávarri
- www.sailing.org/sailor/?ref=AUSER1 – Elise Rechichi
- Examples of URLs with Member ID at former website
- members.sailing.org/biog.php?id=ESPFE (archived)
- members.sailing.org/biog.php?id=AUSER1 (archived)
- data-isaf.soticcloud.net/biog.php?id=ESPFE (archive)
- data-isaf.soticcloud.net/biog.php?id=AUSER1 (archive)
unnamed or www parameter
Used for everything after www.sailing.org/sailor/ in the URL displayed when searching for a sailor at www.sailing.org.
- Using page name as link text
{{World Sailing | WWW }}
{{World Sailing | www= }}
- Using name parameter as link text
{{World Sailing | WWW | NAME }}
{{World Sailing | www= | name= }}
- Examples of short URL (can use unnamed or www parameter)
- www.sailing.org/sailor/fernando-echvarri-erasun
- www.sailing.org/sailor/elise-rechichi
- Examples of full URL (requires www parameter)
- www.sailing.org/sailor/fernando-echvarri-erasun?ref=ESPFE
- www.sailing.org/sailor/elise-rechichi?ref=AUSER1
Wikidata property
Using Wikidata property World Sailing sailor ID (P11616) or World Sailing member ID (archived) (P2804).
- Using page name as link text
{{World Sailing}}
- Using name parameter as link text
{{World Sailing | name= }}
- Examples of URLs with Member ID at former website
- members.sailing.org/biog.php?memberid=29777 (archived) – Fernando Echávarri
- members.sailing.org/biog.php?memberid=38836 (archived) – Elise Rechichi
- data-isaf.soticcloud.net/biog.php?memberid=29777 (archive)
- data-isaf.soticcloud.net/biog.php?memberid=38836 (archive)
Examples
Using page name as link text
- Usage in the article Peter Burling (sailor)
* {{World Sailing | id= NZLPB2 }}
* {{World Sailing | peter-burling }}
* {{World Sailing | peter-burling | id= NZLPB2 }}
* {{World Sailing | www= peter-burling | id= NZLPB2 }}
* {{World Sailing | www= peter-burling?ref=NZLPB2 }}
- Output
-
- Peter Burling at World Sailing
- World Sailing at World Sailing
- World Sailing at World Sailing
- Peter Burling at World Sailing
- {{World Sailing}} template missing ID and not present in Wikidata.
- URLs in template
- https://www.sailing.org/sailor/?ref=NZLPB2
- https://www.sailing.org/sailor/peter-burling
- https://www.sailing.org/sailor/peter-burling?ref=NZLPB2
Using name parameter as link text
- Usage
* {{World Sailing | id= GBRHM15 | name= Hannah Mills }}
* {{World Sailing | hannah-mills | Hannah Mills }}
* {{World Sailing | hannah-mills | Hannah Mills | id= GBRHM15 }}
* {{World Sailing | www= hannah-mills | id= GBRHM15 | name= Hannah Mills }}
* {{World Sailing | www= hannah-mills?ref=GBRHM15 | name= Hannah Mills }}
- Output
-
- Hannah Mills at World Sailing
- World Sailing at World Sailing
- World Sailing at World Sailing
- Hannah Mills at World Sailing
- {{World Sailing}} template missing ID and not present in Wikidata.
- URLs in template
- https://www.sailing.org/sailor/?ref=GBRHM15
- https://www.sailing.org/sailor/hannah-mills
- https://www.sailing.org/sailor/hannah-mills?ref=GBRHM15
No parameters and Wikidata property not defined
- Usage
* {{World Sailing}}
- Output
-
- {{World Sailing}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for World Sailing
This template displays an external link to a sailor's profile at an official website of World Sailing (formerly the International Sailing Federation or ISAF), the international governing body for the sport of sailing. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id | Sailor ID, such as GBRHM15.
| String | optional |
www | www 1 | Everything following www.sailing.org/sailor/, such as hannah-mills or hannah-mills?ref=GBRHM15. | String | optional |
name | name 2 | The link text, which should be the sailor's name. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(sailor)".
| String | optional |
Tracking categories
- Category:World Sailing template using Wikidata property P11616 (9)
- Category:World Sailing template using Wikidata property P2804 (0)
- Category:World Sailing template missing ID and not in Wikidata (0)
- Category:Pages using World Sailing with unknown parameters (0)