Template:World Sailing/doc: Difference between revisions

 

Line 3: Line 3:

<!– Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) –>

<!– Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) –>

{{Tracks and uses Wikidata|P11616|P2804}}

{{Tracks and uses Wikidata|P11616|P2804}}

{{Lua|Module:EditAtWikidata}}

”'{{NAMESPACE}}:{{BASEPAGENAME}}”’ 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 [[sport governing body|governing body]] for the sport of [[sailing (sport)|sailing]]. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.

”'{{NAMESPACE}}:{{BASEPAGENAME}}”’ displays an external link to a sailor’s profile at official website of [[World Sailing]] (formerly the International Sailing Federation or ISAF), the international [[sport governing body|governing body]] for the sport of [[sailing (sport)|sailing]]. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.

{{ombox|text=These URLs starting displaying ”[https://web.archive.org/web/20250131235723/https://www.sailing.org/sailor/elise-rechichi?ref=AUSER1 Server error]” in 2025, even though the sailor’s profile can still seen via a search at ”[https://www.sailing.org/sailors/profiles/ sailing.org/sailors/profiles/]”. As a result, this template currently displays an archived link. If a working URL can be found, the template will be updated.}}

== Usage ==

== Usage ==

Omit the name parameter to use the Wikipedia article name as the link text.

=== id parameter ===

=== 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.

Used with the Sailor ID, 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.

; Usage

; Using page name as link text

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <nowiki>}}</nowiki></code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <nowiki>}}</nowiki></code>

; Using name parameter as link text

: [https://www.sailing.org/sailor/?ref=AUSER1 https://www.sailing.org/sailor/?ref={{Highlight|AUSER1}}] ([https://web.archive.org/web/20250221074657/https://www.sailing.org/sailor/?ref=AUSER1 archive])

: [https://www.sailing.org/sailor/?ref=AUSER1 https://www.sailing.org/sailor/?ref={{Highlight|AUSER1}}] ([https://web.archive.org/web/20250221074657/https://www.sailing.org/sailor/?ref=AUSER1 archive])

Used with an identifier such as elise-rechichi or fernando-echvarri-erasun.

: http://<nowiki/>members.sailing.org/biog.php?id={{Highlight|ESPFE}} ([https://web.archive.org/web/20120724043958/http://members.sailing.org/biog.php?id=ESPFE archive])

: http://<nowiki/>members.sailing.org/biog.php?id={{Highlight|AUSER1}} ([https://web.archive.org/web/20120724000538/http://members.sailing.org/biog.php?id=AUSER1 archive])

; Usage

; Examples of URLs with Member ID at former website (data-isaf.soticcloud.net)

: https://<nowiki/>data-isaf.soticcloud.net/biog.php?id={{Highlight|ESPFE}} ([https://web.archive.org/web/20230127060343/https://data-isaf.soticcloud.net/biog.php?id=ESPFE archive])

: https://<nowiki/>data-isaf.soticcloud.net/biog.php?id={{Highlight|AUSER1}} ([https://web.archive.org/web/20230127060340/https://data-isaf.soticcloud.net/biog.php?id=AUSER1 archive])

Used for everything after ”’www.sailing.org/sailor/”’ in the URL displayed when searching for a sailor at [https://www.sailing.org/ www.sailing.org].

www.sailing.org/sailor/ https://www.sailing.org/ www.sailing.org]

=== id and www parameters ===

; Using page name as link text

The two parameters may be used together to create the full URL shown at the World Sailing website.

: {{tlcw|{{BASEPAGENAME}} | <var>WWW</var> }}

: {{tlcw|{{BASEPAGENAME}} | www{{=}} }}

; Usage

; Using name parameter as link text

: {{tlcw|{{BASEPAGENAME}} | <var>WWW</var> | <var>NAME</var> }}

: {{{{BASEPAGENAME}} | <var></var> | <var></var> }}

: {{tlcw|{{BASEPAGENAME}} | www{{=}} | name{{=}} }}

: {{{{BASEPAGENAME}} | www= | name= }}

; Examples of short URL (can use unnamed or www parameter)

; Example of URLs at current website (www.sailing.org)

; Examples of full URL (requires www parameter)

: [https://www.sailing.org/sailor/fernando-echvarri-erasun?ref=ESPFE https://www.sailing.org/sailor/{{Highlight|1=fernando-echvarri-erasun?ref=ESPFE}}] ([https://web.archive.org/web/20230126170229/https://www.sailing.org/sailor/fernando-echvarri-erasun?ref=ESPFE archive])

: [https://www.sailing.org/sailor/elise-rechichi?ref=AUSER1 https://www.sailing.org/sailor/{{Highlight|1=elise-rechichi?ref=AUSER1}}] ([https://web.archive.org/web/20250125190717/https://www.sailing.org/sailor/elise-rechichi?ref=AUSER1 archive])

: [https://www.sailing.org/sailor/elise-rechichi?ref=AUSER1 https://www.sailing.org/sailor/{{Highlight|1=elise-rechichi?ref=AUSER1}}] ([https://web.archive.org/web/20250125190717/https://www.sailing.org/sailor/elise-rechichi?ref=AUSER1 archive])

=== Wikidata property ===

=== Wikidata property ===

Using [[Wikidata]] property {{Property|P11616}} or {{Property|P2804}}.

Wikidata property {{Property|P11616}} {{Property|P2804}}.

; Usage

; Using page name as link text

: {{tlcw|{{BASEPAGENAME}}<!– –>}}

: {{tlcw|{{BASEPAGENAME}}<!– –>}}

; Using name parameter as link text

: {{tlcw|{{BASEPAGENAME}} | name{{=}} }}

: {{tlcw|{{BASEPAGENAME}} | name{{=}} }}

; Examples of URLs with Member ID at former website (members.sailing.org)

; of URLs at former website (..)

: http://<nowiki/>members.sailing.org/biog.php?memberid={{Highlight|29777}} ([https://web.archive.org/web/20120809074635/http://members.sailing.org/biog.php?memberid=29777 archive])

: http://<nowiki/>members.sailing.org/biog.php?memberid={{Highlight|38836}} ([https://web.archive.org/web/20120802174421/http://members.sailing.org/biog.php?memberid=38836 archive])

; Examples of URLs with Member ID at former website (data-isaf.soticcloud.net)

: https://<nowiki/>data-isaf.soticcloud.net/biog.php?memberid={{Highlight|29777}} ([https://web.archive.org/web/20230126164728/https://data-isaf.soticcloud.net/biog.php?memberid=29777 archive])

: https://<nowiki/>data-isaf.soticcloud.net/biog.php?memberid={{Highlight|29777}} ([https://web.archive.org/web/20230126164728/https://data-isaf.soticcloud.net/biog.php?memberid=29777 archive])

: https://<nowiki/>data-isaf.soticcloud.net/biog.php?memberid={{Highlight|38836}} ([https://web.archive.org/web/20230126164729/https://data-isaf.soticcloud.net/biog.php?memberid=38836 archive])

: https://<nowiki/>data-isaf.soticcloud.net/biog.php?memberid={{Highlight|38836}} ([https://web.archive.org/web/20230126164729/https://data-isaf.soticcloud.net/biog.php?memberid=38836 archive])

Line 71: Line 61:

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= NZLPB2 }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= NZLPB2 }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | peter-burling }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | peter-burling }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | peter-burling | id= NZLPB2 }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | | = }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | www= peter-burling | id= NZLPB2 }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | www= peter-burling?ref=NZLPB2 }}</code>

; Output

; Output

:* {{{{BASEPAGENAME}} | id= NZLPB2 | name= Peter Burling }}

:* {{{{BASEPAGENAME}} | id= NZLPB2 | name= Peter Burling }}

:* {{{{BASEPAGENAME}} | peter-burling | Peter Burling }}

:* {{{{BASEPAGENAME}} | peter-burling | Peter Burling }}

:* {{{{BASEPAGENAME}} | peter-burling | Peter Burling | id= NZLPB2 }}

:* {{{{BASEPAGENAME}} | | | = }}

:* {{{{BASEPAGENAME}} | www= peter-burling | id= NZLPB2 | name= Peter Burling }}

:* {{{{BASEPAGENAME}} | www= peter-burling?ref=NZLPB2 | name= Peter Burling }}

; URLs in template

; URLs in template

Line 91: Line 77:

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= GBRHM15 | name= Hannah Mills }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= GBRHM15 | name= Hannah Mills }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | hannah-mills | Hannah Mills }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | hannah-mills | Hannah Mills }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | hannah-mills | Hannah Mills | id= GBRHM15 }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | | | = }}</code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | www= hannah-mills | id= GBRHM15 | name= Hannah Mills }}</code>

; Output

; Output

:* {{{{BASEPAGENAME}} | id= GBRHM15 | name= Hannah Mills }}

:* {{{{BASEPAGENAME}} | id= GBRHM15 | name= Hannah Mills }}

:* {{{{BASEPAGENAME}} | hannah-mills | Hannah Mills }}

:* {{{{BASEPAGENAME}} | hannah-mills | Hannah Mills }}

:* {{{{BASEPAGENAME}} | hannah-mills | Hannah Mills | id= GBRHM15 }}

:* {{{{BASEPAGENAME}} | | | = }}

:* {{{{BASEPAGENAME}} | www= hannah-mills | id= GBRHM15 | name= Hannah Mills }}

:* {{{{BASEPAGENAME}} | www= hannah-mills?ref=GBRHM15 | name= Hannah Mills }}

; URLs in template

; URLs in template

Template:World Sailing displays an external link to a sailor’s profile at the 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.

Omit the name parameter to use the Wikipedia article name as the link text.

Used with the Sailor ID, such as AUSER1 or ESPFE. This identifier starts 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.

Usage
{{World Sailing | id= Sailor ID | name= Name }}
Examples of URLs at current website (www.sailing.org)
https://www.sailing.org/sailor/?ref=AUSER1 (archive)
https://www.sailing.org/sailor/?ref=ESPFE (archive)

www or unnamed first parameter

[edit]

Used with an identifier such as elise-rechichi or fernando-echvarri-erasun.

Usage
{{World Sailing | first-last | Name }}
{{World Sailing | www= first-last | name= Name }}
Example of URLs at current website (www.sailing.org)
https://www.sailing.org/sailor/elise-rechichi (archive)
https://www.sailing.org/sailor/fernando-echvarri-erasun (archive)

id and www parameters

[edit]

The two parameters may be used together to create the full URL shown at the World Sailing website.

Usage
{{World Sailing | first-last | Name | id= Sailor ID }}
{{World Sailing | www= first-last | name= Name | id= Sailor ID }}
Example of URLs at current website (www.sailing.org)
https://www.sailing.org/sailor/elise-rechichi?ref=AUSER1 (archive)
https://www.sailing.org/sailor/fernando-echvarri-erasun?ref=ESPFE (archive)

Omit the identifiers to use the Wikidata property. Preference is given to World Sailing sailor ID (P11616) since it links to the current website, otherwise World Sailing member ID (archived) (P2804) will be used for links to the former website.

Usage
{{World Sailing}}
{{World Sailing | name= }}
Example of URLs at former website (data-isaf.soticcloud.net)
https://data-isaf.soticcloud.net/biog.php?memberid=29777 (archive)
https://data-isaf.soticcloud.net/biog.php?memberid=38836 (archive)

[edit]

Usage in the article Peter Burling (sailor)
* {{World Sailing | id= NZLPB2 }}
* {{World Sailing | peter-burling }}
* {{World Sailing | id= NZLPB2 | www= peter-burling }}
Output
URLs in template
https://www.sailing.org/sailor/?ref=NZLPB2 (archive)
https://www.sailing.org/sailor/peter-burling (archive)
https://www.sailing.org/sailor/peter-burling?ref=NZLPB2 (archive)

[edit]

Usage
* {{World Sailing | id= GBRHM15 | name= Hannah Mills }}
* {{World Sailing | hannah-mills | Hannah Mills }}
* {{World Sailing | id= GBRHM15 | www= hannah-mills | name= Hannah Mills }}
Output
URLs in template
https://www.sailing.org/sailor/?ref=GBRHM15 (archive)
https://www.sailing.org/sailor/hannah-mills (archive)
https://www.sailing.org/sailor/hannah-mills?ref=GBRHM15 (archive)

No parameters and Wikidata property not defined

[edit]

Usage
* {{World Sailing}}
Output
  • {{World Sailing}} template missing ID and not present in Wikidata.

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.

Template parameters

Parameter Description Type Status
id id

Sailor ID, such as GBRHM15.

Default
Wikidata property P11616
String optional
www www 1

Everything following https://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)”.

Default
{{PAGENAMEBASE}}
String optional

Tracking categories

[edit]

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top