« 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=
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"]}}
{{#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=
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"]}}
{{#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
}}
}}
{{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=
| Catégorie Hess=1
| Enjeu=2
| Résultat=3
| Action du type=4
}}
}}

Version du 16 janvier 2023 à 22:15

Rien à signaler

Article 

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

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