Difference between revisions of "Template:DOSB profile/doc"
imported>Zyxw m (→See also: add link) |
imported>Zyxw (updates for new ID and URL) |
||
| Line 10: | Line 10: | ||
== Usage == | == Usage == | ||
| − | ; | + | ; Using [[Wikidata]] property {{Property|4053|id=only}} |
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | ||
| + | |||
| + | ; New ID | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | new_id= ''ID'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | new_id= ''ID'' | name= ''NAME'' }}</code> | ||
| + | |||
| + | ; Former ID | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> | ||
| − | |||
| − | |||
| − | |||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | ||
| − | |||
| − | |||
| − | |||
| − | |||
== Examples == | == Examples == | ||
| − | === | + | === New ID === |
; Usage | ; Usage | ||
| − | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | szaundra-diedrich | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | new_id= szaundra-diedrich | name= Szaundra Diedrich }}</code> |
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | new_id= julian-weber | name= Julian Weber }}</code> | ||
; Output | ; Output | ||
| − | :* {{{{BASEPAGENAME}} | szaundra-diedrich | + | :* {{{{BASEPAGENAME}} | new_id= szaundra-diedrich | name= Szaundra Diedrich }} |
| + | :* {{{{BASEPAGENAME}} | new_id= julian-weber | name= Julian Weber }} | ||
; URLs | ; URLs | ||
| − | : <kbd>[https://www.teamdeutschland. | + | : <kbd>[https://www.teamdeutschland.de/athleten/details/szaundra-diedrich https://www.teamdeutschland.de/athleten/details/{{Hilite|szaundra-diedrich}}]</kbd> |
| − | : <kbd>[ | + | : <kbd>[https://www.teamdeutschland.de/athleten/details/julian-weber https://www.teamdeutschland.de/athleten/details/{{Hilite|julian-weber}}]</kbd> |
| − | === | + | === Former ID === |
; Usage | ; Usage | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= szaundra-diedrich-870 | name= Szaundra Diedrich }}</code> | ||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= julian-weber-2008 | name= Julian Weber }}</code> | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= julian-weber-2008 | name= Julian Weber }}</code> | ||
; Output | ; Output | ||
| + | :* {{{{BASEPAGENAME}} | id= szaundra-diedrich-870 | name= Szaundra Diedrich }} | ||
:* {{{{BASEPAGENAME}} | id= julian-weber-2008 | name= Julian Weber }} | :* {{{{BASEPAGENAME}} | id= julian-weber-2008 | name= Julian Weber }} | ||
; URLs | ; URLs | ||
| + | : <kbd>[https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/szaundra-diedrich-870.html https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/{{Hilite|szaundra-diedrich-870}}.html]</kbd> | ||
: <kbd>[https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/julian-weber-2008.html https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/{{Hilite|julian-weber-2008}}.html]</kbd> | : <kbd>[https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/julian-weber-2008.html https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/{{Hilite|julian-weber-2008}}.html]</kbd> | ||
| + | |||
| + | ; URLs (deutsche-olympiamannschaft.de) | ||
| + | : <kbd>[http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/szaundra-diedrich-870.html http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/{{Hilite|szaundra-diedrich-870}}.html]</kbd> | ||
: <kbd>[http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/julian-weber-2008.html http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/{{Hilite|julian-weber-2008}}.html]</kbd> | : <kbd>[http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/julian-weber-2008.html http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/{{Hilite|julian-weber-2008}}.html]</kbd> | ||
| Line 59: | Line 69: | ||
"description": "This template displays an external link to an athlete's profile at TeamDeutschland.de, an official website of the German Olympic Sports Confederation (DOSB: Deutscher Olympischer Sportbund). It is intended for use in the external links section of an article.", | "description": "This template displays an external link to an athlete's profile at TeamDeutschland.de, an official website of the German Olympic Sports Confederation (DOSB: Deutscher Olympischer Sportbund). It is intended for use in the external links section of an article.", | ||
"params": { | "params": { | ||
| + | "new_id": { | ||
| + | "label": "new_id", | ||
| + | "description": "The \"new_id\" parameter should contain the ID portion of the new URL. Example: szaundra-diedrich is the ID portion of https://www.teamdeutschland.de/athleten/details/szaundra-diedrich. This parameter is optional if Wikidata property P4053 exists, but required if not.", | ||
| + | "type": "string", | ||
| + | "required": false, | ||
| + | "default": "Wikidata property P4053" | ||
| + | }, | ||
"id": { | "id": { | ||
"label": "id", | "label": "id", | ||
"aliases": ["1"], | "aliases": ["1"], | ||
| − | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: szaundra-diedrich-870 is the ID portion of https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/szaundra-diedrich-870.html or http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/szaundra-diedrich-870.html. This parameter is optional if Wikidata property P4053 exists, but required if not.", | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the former URL. Example: szaundra-diedrich-870 is the ID portion of https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/szaundra-diedrich-870.html or http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/szaundra-diedrich-870.html. This parameter is optional if the \"new_id\" parameter is used or Wikidata property P4053 exists, but required if not.", |
"type": "string", | "type": "string", | ||
| − | "required": false | + | "required": false |
| − | |||
}, | }, | ||
"name": { | "name": { | ||
| Line 77: | Line 93: | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
| + | "new_id", | ||
"id", | "id", | ||
"name" | "name" | ||
Revision as of 12:07, 24 July 2020
| This is a documentation subpage for Template:DOSB profile. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| 30px | This template uses Lua: |
Template:DOSB profile displays an external link to an athlete's profile at TeamDeutschland.de, an official website of the German Olympic Sports Confederation (DOSB: Deutscher Olympischer Sportbund). It is intended for use in the external links section of an article.
Contents
Usage
- Using Wikidata property Template:Property
{{DOSB profile}}{{DOSB profile | name= NAME }}
- New ID
{{DOSB profile | new_id= ID }}{{DOSB profile | new_id= ID | name= NAME }}
- Former ID
{{DOSB profile | ID }}{{DOSB profile | id= ID }}{{DOSB profile | ID | NAME }}{{DOSB profile | id= ID | name= NAME }}
Examples
New ID
- Usage
* {{DOSB profile | new_id= szaundra-diedrich | name= Szaundra Diedrich }}* {{DOSB profile | new_id= julian-weber | name= Julian Weber }}
- Output
-
- Szaundra Diedrich at the Deutscher Olympischer Sportbund (in German)Script error: No such module "EditAtWikidata".Template:WikidataCheck
- Julian Weber at the Deutscher Olympischer Sportbund (in German)Script error: No such module "EditAtWikidata".Template:WikidataCheck
- URLs
- https://www.teamdeutschland.de/athleten/details/szaundra-diedrich
- https://www.teamdeutschland.de/athleten/details/julian-weber
Former ID
- Usage
* {{DOSB profile | id= szaundra-diedrich-870 | name= Szaundra Diedrich }}* {{DOSB profile | id= julian-weber-2008 | name= Julian Weber }}
- Output
-
- Szaundra Diedrich at the Deutscher Olympischer Sportbund (in German)Script error: No such module "EditAtWikidata".Template:WikidataCheck
- Julian Weber at the Deutscher Olympischer Sportbund (in German)Script error: No such module "EditAtWikidata".Template:WikidataCheck
- URLs
- https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/szaundra-diedrich-870.html
- https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/julian-weber-2008.html
- URLs (deutsche-olympiamannschaft.de)
- http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/szaundra-diedrich-870.html
- http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/julian-weber-2008.html
No parameters and Wikidata property not defined
- Usage
* {{DOSB profile}}
- Output
-
- Template:PAGENAMEBASE at the Deutscher Olympischer Sportbund (in German)Script error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for DOSB profile
This template displays an external link to an athlete's profile at TeamDeutschland.de, an official website of the German Olympic Sports Confederation (DOSB: Deutscher Olympischer Sportbund). It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| new_id | new_id | The "new_id" parameter should contain the ID portion of the new URL. Example: szaundra-diedrich is the ID portion of https://www.teamdeutschland.de/athleten/details/szaundra-diedrich. This parameter is optional if Wikidata property P4053 exists, but required if not.
| String | optional |
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the former URL. Example: szaundra-diedrich-870 is the ID portion of https://www.teamdeutschland.de/de/athleten/detail/a_action/show/a_athletes/szaundra-diedrich-870.html or http://www.deutsche-olympiamannschaft.de/de/athleten/detail/a_action/show/a_athletes/szaundra-diedrich-870.html. This parameter is optional if the "new_id" parameter is used or Wikidata property P4053 exists, but required if not. | String | optional |
| name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(athlete)".
| String | optional |
Tracking categories
- ID parameter exists
- ID parameter does not exist
- Category:DOSB profile template missing ID and not in Wikidata (0)
- Category:DOSB profile template using Wikidata (0)
Templates and modules used
- Template:First word, implemented with Module:String
- Module:EditAtWikidata
- Module:WikidataCheck
See also
- {{IOC profile}} for links to profiles from the International Olympic Committee
- {{AOC profile}} for links to profiles from the Australian Olympic Committee
- {{BOC profile}} for links to profiles from the Brazilian Olympic Committee
- {{Chinese Olympic Committee profile}} for links to profiles from the Chinese Olympic Committee
- {{CNOSF profile}} for links to profiles from the Comité National Olympique et Sportif Français
- {{COA profile}} for links to profiles from the Comité Olímpico Argentino
- {{COC profile}} for links to profiles from the Canadian Olympic Committee
- {{COE profile}} for links to profiles from the Comité Olímpico Español
- {{CONI profile}} for links to profiles from the Comitato Olimpico Nazionale Italiano
- {{COSR profile}} for links to profiles from the Comitetul Olimpic și Sportiv Român
- {{COV profile}} for links to profiles from the Český olympijský výbor
- {{LOK profile}} for links to profiles from the Latvijas Olimpiskā Komiteja
- {{MOB profile}} for links to profiles from the Magyar Olimpiai Bizottság
- {{NZOC profile}} for links to profiles from the New Zealand Olympic Committee
- {{SNOC profile}} for links to profiles from the Singapore National Olympic Council
- {{SOK profile}} for links to profiles from the Sveriges Olympiska Kommitté
- {{Team GB}} for links to profiles from Team GB (the British Olympic Association)
- {{USOPC profile}} for links to profiles from the United States Olympic & Paralympic Committee
External links
- Athlete search at TeamDeutschland.de (in German)