Template:ProCyclingStats and Template:ProCyclingStats/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
m add preview only message if no ID in template or Wikidata |
update tracking categories |
||
Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P1663}} |
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P1663}} |
||
| [https://www.procyclingstats.com/rider/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P1663}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at ''ProCyclingStats''{{#if: |
| [https://www.procyclingstats.com/rider/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P1663}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at ''ProCyclingStats''{{#if: {{{accessdate|}}} |. Retrieved {{{accessdate}}}.}}<includeonly>{{EditAtWikidata|pid=P1663|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P1663|value={{{1|{{{id|}}}}}}|category=ProCyclingStats template with ID|namespaces=0}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#if:{{{1|{{{id|}}}}}} |
||
| {{#if: {{Isnumeric|{{{1|{{{id}}}}}}}}||{{#ifeq:{{{1|{{{id}}}}}}|{{#invoke:string|match|{{{1|{{{id}}}}}}|[a-z-]+%d*}}||[[Category:ProCyclingStats template using ID not matching pattern]]}}}} |
| {{#if: {{Isnumeric|{{{1|{{{id}}}}}}}}||{{#ifeq:{{{1|{{{id}}}}}}|{{#invoke:string|match|{{{1|{{{id}}}}}}|[a-z-]+%d*}}||[[Category:ProCyclingStats template using ID not matching pattern]]}}}} |
||
| [[Category:ProCyclingStats template using Wikidata]] |
|||
}}}} |
}}}} |
||
| <span class="error">{{[[Template:ProCyclingStats|ProCyclingStats]]}} template missing ID and not present in Wikidata.</span> |
| <span class="error">{{[[Template:ProCyclingStats|ProCyclingStats]]}} template missing ID and not present in Wikidata.</span>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:ProCyclingStats template missing ID and not in Wikidata]]}} |
||
}}<noinclude> |
}}<noinclude> |