Template:WikipediaExtract: Difference between revisions

From Morrissey-solo Wiki
(Undo revision 12754 by Davidt (talk))
Tag: Undo
(Add image)
Line 7: Line 7:
  |use stale cache
  |use stale cache
}}
}}
{{#get_web_data:
url=https://en.wikipedia.org/w/api.php?format=json&action=query&prop=pageimages&pilimit=1&pithumbsize=300&titles={{trim| {{{1}}} }}
|format=JSON
|use jsonpath
|data=image=$.query.pages.*.thumbnail.source
|cache seconds=3600
|use stale cache
}}
{| class="wikitable" style="float:right; margin-left: 10px;"
| {{#external_value:image}}
|}
{{#external_value:extract}}
{{#external_value:extract}}
* https://en.wikipedia.org/wiki/{{trim| {{{1}}} }}
* https://en.wikipedia.org/wiki/{{trim| {{{1}}} }}

Revision as of 06:57, 30 September 2021