Changes

Jump to: navigation, search

Template:Soccerway

1,559 bytes added, 13:37, 30 September 2018
m
Fix for empty id parameter. Remove {{Trim|}} since {{#if:}} does same. If Wikidata property has multiple values, only use first one.
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2369}}

| {{#if: {{Isnumeric|{{{1|{{{id|}}}}}}}}

| [https://int.soccerway.com/players/-/{{Trim|{{{1|{{{id}}}}}}}}/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at Soccerway{{#if:{{{accessdate|}}}|. Retrieved {{{accessdate}}}.}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Soccerway template using numeric ID]]}}

| [https://int.soccerway.com/players/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2369}}|sep=,}} }}/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at Soccerway{{#if:{{{accessdate|}}}|. Retrieved {{{accessdate}}}.}}<includeonly>{{EditAtWikidata|pid=P2369|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P2369|value={{{1|{{{id|}}}}}}|category=Soccerway template with ID|namespaces=0}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#if:{{{1|{{{id|}}}}}}
| {{#ifeq:{{{1|{{{id}}}}}}|{{#invoke:string|match|{{{1|{{{id}}}}}}|[a-z-]+/%d+}}||[[Category:Soccerway template with ID not matching pattern]]}}
| [[Category:Soccerway template using Wikidata]]
}}}}

}}

| <span class="error">&#123;&#123;[[Template:Soccerway|Soccerway]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Soccerway template missing ID and not in Wikidata]]}}

}}<noinclude>
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
</noinclude>
Anonymous user

Navigation menu