Difference between revisions of "Template:DOSB profile"

From blackwiki
Jump to navigation Jump to search
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.de/de/athleten/detail/a_action/show/a_athletes/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} }}.html {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[German Olympic Sports Confederation|''Deutscher Olympischer Sportbund'']] {{in lang|de}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:DOSB profile template with deprecated parameter]]}}
+
| [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]]}}}}
  
| {{#if: {{{new_id<includeonly>|</includeonly>}}} {{#property:P4053}}
+
| <span class="error">&#123;&#123;[[Template:DOSB profile|DOSB profile]]&#125;&#125; 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]]}}
  
  | [https://www.teamdeutschland.de/athleten/details/{{#if: {{{new_id<includeonly>|</includeonly>}}} | {{{new_id}}} | {{First word|1={{#property:P4053}}|sep=,}} }} {{#if: {{{name<includeonly>|</includeonly>}}} | {{{name}}} | {{PAGENAMEBASE}} }}] at the [[German Olympic Sports Confederation|''Deutscher Olympischer Sportbund'']] {{in lang|de}}<includeonly>{{EditAtWikidata|pid=P4053|{{{new_id|}}}}}</includeonly>{{WikidataCheck|property=P4053|value={{{new_id|}}}|category=DOSB profile ID|namespaces=0|nocatsame=1}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#if:{{{new_id|}}}||[[Category:DOSB profile template using Wikidata]]}}}}
 
 
  | <span class="error">&#123;&#123;[[Template:DOSB profile|DOSB profile]]&#125;&#125; 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]}}{{Main other|[[Category:Olympic Channel template missing ID and not in Wikidata]]}}{{#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

50px Template documentation[view] [edit] [history] [purge]

Template:Template redirect

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.

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
Current URL
https://www.teamdeutschland.de/athleten/details/szaundra-diedrich
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
Current URL
https://www.teamdeutschland.de/athleten/details/julian-weber
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

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P4053
Stringoptional
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

ID parameter exists
ID parameter does not exist

Templates and modules used

See also

External links