Difference between revisions of "Template:JudoInside"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:JudoInside": semi-protection of high-usage templates to combat systematic vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite)))
imported>Zyxw
m (If Wikidata property has multiple values, only use first one. Remove {{Trim|}} since {{#if:}} does same.)
Line 1: Line 1:
 
{{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#property:P2767}}
 
{{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#property:P2767}}
|[http://www.judoinside.com/judoka/{{Trim|{{{1|{{{id<includeonly>|{{#property:P2767}}</includeonly>}}}}}}}} {{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}}|{{{2|{{{name}}}}}}|{{PAGENAMEBASE}}}}] at JudoInside.com<includeonly>{{EditAtWikidata|pid=P2767|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P2767|value={{{1|{{{id|}}}}}}|category=JudoInside.com ID}}</includeonly>
+
| [http://www.judoinside.com/judoka/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2767}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at JudoInside.com<includeonly>{{EditAtWikidata|pid=P2767|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P2767|value={{{1|{{{id|}}}}}}|category=JudoInside.com ID}}</includeonly>
|<span class="error">&#123;&#123;[[Template:JudoInside|JudoInside]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{Main other|[[Category:JudoInside template missing ID]]}}
+
| <span class="error">&#123;&#123;[[Template:JudoInside|JudoInside]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{Main other|[[Category:JudoInside template missing ID]]}}
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:54, 31 October 2018

{{{name}}} at JudoInside.com

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

Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

Template:JudoInside displays an external link to a judoka's profile at the JudoInside.com website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{JudoInside | ID }}
{{JudoInside | ID | NAME }}

Named parameters:

{{JudoInside | id= ID }}
{{JudoInside | id= ID | name= NAME }}

Using Wikidata property Template:Property:

{{JudoInside}}
{{JudoInside | name= NAME }}

Examples

Unnamed parameters

Usage:

* {{JudoInside | 1003 | Kōsei Inoue }}

Output:

URL generated by template:

https://www.judoinside.com/judoka/1003

URL from website search:

https://www.judoinside.com/judoka/1003/Kosei_Inoue/judo-career

Named parameters

Usage:

* {{JudoInside | id= 2970 |name= Ryōko Tani }}

Output:

URL generated by template:

https://www.judoinside.com/judoka/2970

URL from website search:

https://www.judoinside.com/judoka/2970/Ryoko_Tani/judo-career

No parameters and Wikidata property not defined

Usage:

* {{JudoInside}}

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 JudoInside

This template displays an external link to a judoka's profile at the JudoInside.com website. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 1003 is the ID portion of https://www.judoinside.com/judoka/1003 or https://www.judoinside.com/judoka/1003/Kosei_Inoue/judo-career. This parameter is optional if Wikidata property P2767 exists, but required if not.

Default
Wikidata property P2767
Numberoptional
Namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the judoka. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(judoka)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

ID parameter exists
ID parameter does not exist

External links