Template:Rotten Tomatoes: Difference between revisions
From The Goon Show Depository
No edit summary |
en>Terasail (Add wikidata target parameter, wikidata tracking categories and change the way the prefix is detected) |
||
Line 1: | Line 1: | ||
{{#if: {{{1|{{{id< | {{#if:{{{1|{{{id|<noinclude>1</noinclude>}}}}}} | ||
|[https://www.rottentomatoes.com/{{#ifeq:{{#invoke:String|find|source=m/tv/franchise/celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{{id|{{{1}}}}}}}}}}|0|m/}}{{Trim|{{{1|{{{id}}}}}}}} {{#ifeq: | |||
| [https://www.rottentomatoes.com/{{#ifeq: | {{#invoke:String|find|source=celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{{id|{{{1}}}}}}}}}}|0|''}}{{#if:{{{title|{{{name|{{{2|<noinclude>1</noinclude>}}}}}}}}} | ||
|{{{title|{{{name|{{{2|<noinclude>{{{title}}}</noinclude>}}}}}}}}} | |||
|{{PAGENAMEBASE}} | |||
}}{{#ifeq:{{#invoke:String|find|source=celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{{id|{{{1}}}}}}}}}}|0|''}}] at [[Rotten Tomatoes]]{{WikidataCheck|property=P1258|value={{#ifeq:{{#invoke:String|find|source=m/tv/franchise/celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{{id|{{{1}}}}}}}}}}|0|m/}}{{Trim|{{{1|{{{id}}}}}}}}|category=Rotten Tomatoes ID|qid={{{qid|}}}}} | |||
|{{#if:{{#property:P1258|from={{{qid|}}}}} | |||
|[https://www.rottentomatoes.com/{{First word|1={{#property:P1258|from={{{qid|}}}}}|sep=,}} {{#ifeq: | |||
{{#invoke:String|find|source=celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{#property:P1258|from={{{qid|}}}}}}}}}|0|''}}{{#if:{{{title|{{{name|{{{2|}}}}}}}}} | |||
|{{{title|{{{name|{{{2}}}}}}}}} | |||
|{{PAGENAMEBASE}} | |||
}}{{#ifeq: | |||
{{#invoke:String|find|source=celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{#property:P1258|from={{{qid|}}}}}}}}}|0|''}}] at [[Rotten Tomatoes]]{{EditAtWikidata|pid=P1258}} | |||
|<span class="error">{{[[Template:Rotten Tomatoes|Rotten Tomatoes]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:Rotten Tomatoes template missing ID and not in Wikidata]]}} | |||
}} | |||
| {{#if: {{#property:P1258}} | |||
}}{{Main other|{{#if: {{{2|{{{name|{{{title|}}}}}}}}} | [[Category:Rotten Tomatoes template using name parameter]] }}}}<noinclude> | }}{{Main other|{{#if: {{{2|{{{name|{{{title|}}}}}}}}} | [[Category:Rotten Tomatoes template using name parameter]] }}}}<noinclude> | ||
{{Documentation}} <!-- Add categories to the /doc subpage. Add interwiki links to Wikidata. --> | {{Documentation}} <!-- Add categories to the /doc subpage. Add interwiki links to Wikidata. --> | ||
</noinclude> | </noinclude> |