Difference between revisions of "Template:DOSB profile"
imported>Zyxw (add tracking category) |
imported>Zyxw (former ID and URL no longer needed, all templates updated to use new ID) |
||
| Line 1: | Line 1: | ||
| − | {{#if: {{{1|}}} {{{id|}}} | + | {{#if: {{{1|}}} {{{id<includeonly>|</includeonly>}}} {{{new_id|}}} {{#property:P4053}} |
| − | | [https://www.teamdeutschland. | + | | [https://www.teamdeutschland.de/athleten/details/{{#if: {{{1|{{{new_id|{{{id<includeonly>|</includeonly>}}}}}}}}} | {{{1|{{{new_id|{{{id}}}}}}}}} | {{First word|1={{#property:P4053}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[German Olympic Sports Confederation|''Deutscher Olympischer Sportbund'']] {{in lang|de}}<includeonly>{{EditAtWikidata|pid=P4053|{{{1|{{{new_id|{{{id|}}}}}}}}}}}</includeonly>{{WikidataCheck|property=P4053|value={{{1|{{{new_id|{{{id|}}}}}}}}}|category=DOSB profile ID|namespaces=0|nocatsame=1}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#if:{{{1|{{{new_id|{{{id|}}}}}}}}}||[[Category:DOSB profile template using Wikidata]]}}}} |
| − | | {{# | + | | <span class="error">{{[[Template:DOSB profile|DOSB profile]]}} template missing ID and not present in Wikidata.</span>{{#invoke:Preview warning|main|1=to find the ID, see the [https://www.teamdeutschland.de/athleten Team Deutschland athlete search page] or this [https://www.google.com/search?q={{urlencode:{{PAGENAMEBASE}}}}+site%3Awww.teamdeutschland.de%2Fathleten%2Fdetails%2F Google search]}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:DOSB profile template missing ID and not in Wikidata]]}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | {{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:47, 1 August 2020
{{{name}}} at the Deutscher Olympischer Sportbund (in German)Template:WikidataCheck
Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
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
- {{OKS profile}} for links to profiles from the Olimpijski Komitet Srbije
- {{PKOl profile}} for links to profiles from the Polski Komitet Olimpijski
- {{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)
| The above documentation is transcluded from Template:DOSB profile/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |