« 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
 
(16 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
{{#get_web_data:url=https://remixthecommons.org/wp-json/wp/v2/posts/{{{id|}}}
{{#switch: {{{subtype|}}}
| format=json with jsonpath
|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"]
| 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
}}
}}
{{Affiche Nouveautés
{{Affiche Nouveautés
|Titre={{#external_value:Titre}}
| Titre={{#external_value:Titre}}
|Description={{#external_value:Description}}
| Description={{#external_value:Description}}
|Catégorie=Texte
| Catégorie=Texte
|Type de document=Article
| Type de document=Article
|Catégorie Hess=
}}
}}

Dernière version du 17 janvier 2023 à 15:12

Rien à signaler

Article 

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

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