Difference between revisions of "Template:DOSB profile/doc"
imported>Zyxw m (→External links: update link) |
imported>Zyxw (update parameters) |
||
| Line 10: | Line 10: | ||
== Usage == | == Usage == | ||
| + | ; Unnamed parameters | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> | ||
| + | |||
| + | ; Named parameters | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | ||
| + | |||
; Using [[Wikidata]] property {{Property|4053|id=only}} | ; Using [[Wikidata]] property {{Property|4053|id=only}} | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== Examples == | == Examples == | ||
| − | === | + | === Unnamed parameters === |
; Usage | ; Usage | ||
| − | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | szaundra-diedrich | Szaundra Diedrich }}</code> |
| − | |||
; Output | ; Output | ||
| − | :* {{{{BASEPAGENAME}} | | + | :* {{{{BASEPAGENAME}} | szaundra-diedrich | Szaundra Diedrich }} |
| − | |||
| − | ; | + | ; Current URL |
: <kbd>[https://www.teamdeutschland.de/athleten/details/szaundra-diedrich https://www.teamdeutschland.de/athleten/details/{{Hilite|szaundra-diedrich}}]</kbd> | : <kbd>[https://www.teamdeutschland.de/athleten/details/szaundra-diedrich https://www.teamdeutschland.de/athleten/details/{{Hilite|szaundra-diedrich}}]</kbd> | ||
| − | |||
| − | === | + | ; Former 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>[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> | ||
| + | |||
| + | === Named parameters === | ||
; Usage | ; Usage | ||
| − | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= julian-weber | name= Julian Weber }}</code> | |
| − | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= julian-weber | ||
; Output | ; Output | ||
| − | :* {{{{BASEPAGENAME}} | id= | + | :* {{{{BASEPAGENAME}} | id= julian-weber | name= Julian Weber }} |
| − | : | + | |
| + | ; Current URL | ||
| + | : <kbd>[https://www.teamdeutschland.de/athleten/details/julian-weber https://www.teamdeutschland.de/athleten/details/{{Hilite|julian-weber}}]</kbd> | ||
| − | ; URLs | + | ; Former URLs |
| − | |||
: <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> | ||
| − | |||
| − | |||
| − | |||
: <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 69: | Line 65: | ||
"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": { | ||
| − | " | + | "id": { |
| − | "label": "new_id", | + | "label": "id", |
| − | "description": "The \" | + | "aliases": ["1","new_id"], |
| + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the current 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", | "type": "string", | ||
"required": false, | "required": false, | ||
"default": "Wikidata property P4053" | "default": "Wikidata property P4053" | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}, | }, | ||
"name": { | "name": { | ||
| Line 93: | Line 83: | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
| − | |||
"id", | "id", | ||
"name" | "name" | ||
| Line 104: | Line 93: | ||
* {{clc|DOSB profile ID different from Wikidata}} | * {{clc|DOSB profile ID different from Wikidata}} | ||
* {{clc|DOSB profile ID not in Wikidata}} | * {{clc|DOSB profile ID not in Wikidata}} | ||
| − | |||
; ID parameter does not exist | ; ID parameter does not exist | ||
* {{clc|DOSB profile template missing ID and not in Wikidata}} | * {{clc|DOSB profile template missing ID and not in Wikidata}} | ||
Revision as of 21:00, 1 August 2020
| File:Edit-copy green.svg | 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
- Unnamed parameters
{{DOSB profile | ID }}{{DOSB profile | ID | NAME }}
- Named parameters
{{DOSB profile | id= ID }}{{DOSB profile | id= ID | name= NAME }}
- Using Wikidata property Template:Property
{{DOSB profile}}{{DOSB profile | name= NAME }}
Examples
Unnamed parameters
- Usage
* {{DOSB profile | szaundra-diedrich | Szaundra Diedrich }}
- Output
-
- Szaundra Diedrich at the Deutscher Olympischer Sportbund (in German)Script error: No such module "EditAtWikidata".Template:WikidataCheck
- Former URLs
- https://www.teamdeutschland.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/szaundra-diedrich-870.html
Named parameters
- Usage
* {{DOSB profile | id= julian-weber | name= Julian Weber }}
- Output
-
- Julian Weber at the Deutscher Olympischer Sportbund (in German)Script error: No such module "EditAtWikidata".Template:WikidataCheck
- Former URLs
- https://www.teamdeutschland.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/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 | |
|---|---|---|---|---|
| id | id 1 new_id | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the current 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 |
| 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)