« 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
 
(15 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
{{{id|}}} - {{{subtype|}}}
{{#switch: {{{subtype|}}}
{{#ifeq: {{{subtype|}}}|post|
|post=
{{#get_web_data:url=https://remixthecommons.org/wp-json/wp/v2/posts/{{{id|}}}
{{#get_web_data: url=https://remixthecommons.org/wp-json/wp/v2/posts/{{{id|}}}  
| format=json with jsonpath
| 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.