« Modèle:RechercheWP » : différence entre les versions

De Remix Biens Communs
Aller à :navigation, rechercher
Aucun résumé des modifications
Balise : wikieditor
Aucun résumé des modifications
Balise : wikieditor
Ligne 1 : Ligne 1 :
{{#switch: {{{subtype|}}}
{{#switch: {{{subtype|}}}
|post=
|post=
{{#get_web_data:url=https://remixthecommons.org/wp-json/wp/v2/posts/{{{id|}}} | format=json with jsonpath | data=Titre=$["title"]["rendered"],Description=$["excerpt"]["rendered"]}}
Article {{#get_web_data:url=https://remixthecommons.org/wp-json/wp/v2/posts/{{{id|}}} | format=json with jsonpath | data=Titre=$["title"]["rendered"],Description=$["excerpt"]["rendered"]}}
|page=
|page=
{{#get_web_data:url=https://remixthecommons.org/wp-json/wp/v2/pages/{{{id|}}} | format=json with jsonpath | data=Titre=$["title"]["rendered"],Description=$["excerpt"]["rendered"]}}
Page {{#get_web_data:url=https://remixthecommons.org/wp-json/wp/v2/pages/{{{id|}}} | format=json with jsonpath | data=Titre=$["title"]["rendered"],Description=$["excerpt"]["rendered"]}}
| Rien à signaler
| Rien à signaler
}}
}}
{{#get_web_data:url=https://remixthecommons.org/wp-json/wp/v2/posts/{{{id|}}}
| format=json with jsonpath
| data=Titre=$["title"]["rendered"],Description=$["excerpt"]["rendered"]
}}
{{Affiche Nouveautés
{{Affiche Nouveautés
|Titre={{#external_value:Titre}}
|Titre={{#external_value:Titre}}

Version du 16 janvier 2023 à 22:11

Rien à signaler

Article 

[[Erreur : aucune variable locale « Titre » n’a été définie.]]

Erreur : aucune variable locale « Description » n’a été définie.