« 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 3 : Ligne 3 :
{{#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"],objet0=$["objets"]["0"],objet1=$["objets"]["1"],objet1=$["objets"]["2"],objet1=$["objets"]["3"],objet1=$["objets"]["4"],
| data=Titre=$["title"]["rendered"],Description=$["excerpt"]["rendered"]
enjeu0=$["enjeux"]["0"],enjeu1=$["enjeux"]["1"],enjeu1=$["enjeux"]["2"],enjeu1=$["enjeux"]["3"],enjeu1=$["enjeux"]["4"],
resultat0=$["resultat"]["0"],resultat1=$["resultat"]["1"],resultat1=$["resultat"]["2"],resultat1=$["resultat"]["3"],resultat1=$["resultat"]["4"],
action0=$["actions"]["0"],action1=$["actions"]["1"],action1=$["actions"]["2"],action1=$["actions"]["3"],action1=$["actions"]["4"],
cat0=$["categories"],cat1=$["categories"]["1"],cat2=$["categories"]["2"],cat3=$["categories"]["3"],cat4=$["categories"]["4"]
}}
}}
|page=
|page=
{{#get_web_data:url=https://remixthecommons.org/wp-json/wp/v2/pages/{{{id|}}}  
{{#get_web_data:url=https://remixthecommons.org/wp-json/wp/v2/pages/{{{id|}}}  
| format=json with jsonpath  
| format=json with jsonpath  
| data=Titre=$["title"]["rendered"],Description=$["excerpt"]["rendered"],objet0=$["objets"]["0"],objet1=$["objets"]["1"],objet1=$["objets"]["2"],objet1=$["objets"]["3"],objet1=$["objets"]["4"],
| data=Titre=$["title"]["rendered"],Description=$["excerpt"]["rendered"]
enjeu0=$["enjeux"]["0"],enjeu1=$["enjeux"]["1"],enjeu1=$["enjeux"]["2"],enjeu1=$["enjeux"]["3"],enjeu1=$["enjeux"]["4"],
resultat0=$["resultat"]["0"],resultat1=$["resultat"]["1"],resultat1=$["resultat"]["2"],resultat1=$["resultat"]["3"],resultat1=$["resultat"]["4"],
action0=$["actions"]["0"],action1=$["actions"]["1"],action1=$["actions"]["2"],action1=$["actions"]["3"],action1=$["actions"]["4"],
cat0=$["categories"],cat1=$["categories"]["1"],cat2=$["categories"]["2"],cat3=$["categories"]["3"],cat4=$["categories"]["4"]
}}
}}
| Rien à signaler
| Rien à signaler
Ligne 25 : Ligne 17 :
| Catégorie=Texte
| Catégorie=Texte
| Type de document=Article
| Type de document=Article
| Catégorie Hess=1
| Catégorie Hess= {{GetTaxo|Taxo=objets|id={{{id|}}}}}
| Enjeu=2
| Enjeu={{GetTaxo|Taxo=enjeux|id={{{id|}}}}}
| Résultat=3
| Action du type={{GetTaxo|Taxo=enjeux|id={{{id|}}}}}
| Action du type=4
| Résultat={{GetTaxo|Taxo=resultats|id={{{id|}}}}}
}}
}}

Version du 17 janvier 2023 à 14:42

Rien à signaler

Article 

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

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