Tests divers : Différence entre versions

De M@gistère
Sauter à la navigation Sauter à la recherche
Ligne 1 : Ligne 1 :
 +
 +
== Fontawesome ==
 +
 +
* {{#fab:wikipedia-w}} wikipedia-w
 +
* {{#fab:500px}} 500px
 +
* {{#fas:bullseye}} bullseye
 +
* <i class="fas fa-3x fa-arrow-alt-circle-right"></i> une icône fontawesome méthode html
 +
 +
== Blocs custom ==
 +
 +
{{Info|TITRE 1|  Pour obtenir ce bloc, écrire : <nowiki>{{Info|TITRE 1|texte}}</nowiki>  }}
 +
 +
{{Warning|TITRE 1|  Pour obtenir ce bloc, écrire : <nowiki>{{Warning|TITRE 1|texte}}</nowiki>  }}
 +
 +
{{Error|TITRE 1|  Pour obtenir ce bloc, écrire : <nowiki>{{Error|TITRE 1|texte}}</nowiki>  }}
 +
 +
{{Présentation|  Pour obtenir ce bloc, écrire : <nowiki>{{Présentation|Texte}}</nowiki>  }}
 +
 +
{{Important|  Pour obtenir ce bloc, écrire : <nowiki>{{Important|Texte}}</nowiki>  }}
 +
 +
{{Note| Pour obtenir ce bloc, écrire :  <nowiki>{{Note|Texte}}</nowiki>  }}
 +
 +
les modifications du code de ces blocs custom sont à effectuer sur : [[Modèle:Note]], [[Modèle:Important]], etc.
 +
 +
 +
 +
== ParserFunctions et Semantic ==
  
 
Test de property :
 
Test de property :
Ligne 27 : Ligne 54 :
 
* {{#show: Tests|?versionmag }} = 3.0.1 : {{#ifeq: {{#show: Tests|?versionmag }} | "3.0.1" | YES | NO }}
 
* {{#show: Tests|?versionmag }} = 3.0.1 : {{#ifeq: {{#show: Tests|?versionmag }} | "3.0.1" | YES | NO }}
 
* {{#show: Tests|?versionmag }} = 3.0.3 : {{#ifeq: {{#show: Tests|?versionmag }} | "3.0.3" | YES | NO }}
 
* {{#show: Tests|?versionmag }} = 3.0.3 : {{#ifeq: {{#show: Tests|?versionmag }} | "3.0.3" | YES | NO }}
 
 
Fontawesome
 
* {{#fab:wikipedia-w}} wikipedia-w
 
* {{#fab:500px}} 500px
 
* {{#fas:bullseye}} bullseye
 
* <i class="fas fa-3x fa-arrow-alt-circle-right"></i> une icône fontawesome méthode html
 
 
== Blocs custom ==
 
 
{{Info|TITRE 1|  Pour obtenir ce bloc, écrire : <nowiki>{{Info|TITRE 1|texte}}</nowiki>  }}
 
 
{{Warning|TITRE 1|  Pour obtenir ce bloc, écrire : <nowiki>{{Warning|TITRE 1|texte}}</nowiki>  }}
 
 
{{Error|TITRE 1|  Pour obtenir ce bloc, écrire : <nowiki>{{Error|TITRE 1|texte}}</nowiki>  }}
 
 
{{Présentation|  Pour obtenir ce bloc, écrire : <nowiki>{{Présentation|Texte}}</nowiki>  }}
 
 
{{Important|  Pour obtenir ce bloc, écrire : <nowiki>{{Important|Texte}}</nowiki>  }}
 
 
{{Note| Pour obtenir ce bloc, écrire :  <nowiki>{{Note|Texte}}</nowiki>  }}
 
 
les modifications du code de ces blocs custom sont à effectuer sur : [[Modèle:Note]], [[Modèle:Important]], etc.
 

Version du 6 novembre 2019 à 13:22

Fontawesome

  • wikipedia-w
  • 500px
  • bullseye
  • une icône fontawesome méthode html

Blocs custom

    TITRE 1

    TITRE 1

    TITRE 1

Présentation

Pour obtenir ce bloc, écrire : {{Présentation|Texte}}

Important

Pour obtenir ce bloc, écrire : {{Important|Texte}}

Pour obtenir ce bloc, écrire : {{Note|Texte}}

les modifications du code de ces blocs custom sont à effectuer sur : Modèle:Note, Modèle:Important, etc.


ParserFunctions et Semantic

Test de property :

  • Définition de propriété : Version : 3.0.3
  • Affichage de propriété :


Test qui fonctionne

  • value if unequal
  • Test de Toto = Toto... Résultat : YES
  • Test de Toto = Lala... Résultat : NO

Test qui ne fonctionne pas

  • mavariable : Toto
  • Test de = Toto... Résultat : NO
  • Test de = Lala... Résultat : NO

Test qui ne fonctionne pas

  • myvariable = 42
  • Test de = 42... Résultat : YES
  • Test de = 99... Résultat : YES

Test qui ne fonctionne pas

  • = 3.0.1 : NO
  • = 3.0.3 : NO