« Test - LegisQuebec » : différence entre les versions

De alcolois
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
{{#get_web_data:
{{#get_web_data:
   url=http://legisquebec.gouv.qc.ca/fr/ShowDoc/cs/I-8.1#se:2
   url=https://www.legisquebec.gouv.qc.ca/fr/document/lc/I-8.1#se:2
   | format=raw
   | format=html with xpath
   | data=text1=body
   | data=text1=/html/body/div[1]/div[2]/div[2]/form/div[2]/div[2]/div[2]/div/div/div[2]/div/div/div/div[2]/div[3]/div[1]/div[36]
}}
}}
Text 1 :
Text 1 :
{{#external_value:{{{text1}}}}}
{{#external_value:text1}}
 
{{#get_web_data:
  url=https://www.legisquebec.gouv.qc.ca/fr/version/lc/I-8.1?code=se:2&historique=20250214#20250214
  | format=raw
  | data=text2=body
}}
Texte 2 :
{{#external_value:{{{text2}}}}}
 
 
'''Comparaison des textes :''' 
{{#if: {{{text1}}} | {{#if: {{{text2}}} |
  {{#ifeq: {{{text1}}} | {{{text2}}} |
    ✅ Le texte est identique.
    | ⚠️ Le texte a changé !
  }}
}}}}

Version du 15 février 2025 à 18:51

Text 1 : Erreur : aucune variable locale « text1 » n’a été définie.