Tests divers : Différence entre versions

De M@gistère
Sauter à la navigation Sauter à la recherche
(58 révisions intermédiaires par 5 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
 +
[[Catégorie:Amodifier]]
  
 +
*{{#show: Tests|?Catégorie }}
  
== test ==
+
==test==
  
[[myprop::Foo]]
+
<div class="toccolours mw-collapsible mw-collapsed" style=""> <div style="font-weight:bold;line-height:1.6;">Lorem ipsum sample</div>
[[myprop::Bar]]
+
<div class="mw-collapsible-content">
  
 
+
==ParserFunctions et Semantic==
* [[prop::Foo]]
 
* {{#ifeq: {{#show:Tests|?prop}} | Foo | YES | NO }} (should be YES)
 
* {{#ifeq: {{#show:Tests|?prop}} | Bar | YES | NO }} (should be NO)
 
 
 
* [[prop::Foo]]
 
* {{#ifeq: {{#show:Tests|?prop}} | {{#show:Tests|?myprop}} | YES | NO }} (should be YES)
 
* {{#ifeq: {{#show:Tests|?prop}} | {{#show:Tests|?mypropp}} | YES | NO }} (should be NO)
 
 
 
* [[int::42]]
 
* {{#if: {{#show:Tests|?int}}==42 | YES | NO }} (should be YES)
 
* {{#if: {{#show:Tests|?int}}==99 | YES | NO }} (should be NO)
 
 
 
== ParserFunctions et Semantic ==
 
  
 
Test de property :
 
Test de property :
  
* Définition de propriété : Version : [[versionmag::3.0.3]]
+
*Définition de propriété : Versionmag : [[versionmag::3.0.3]]
* Affichage de propriété : {{#show: Tests|?versionmag }}
 
  
 +
*page [[Version301]] ({{#show: Version301|?version}}) : {{#ifeq: {{#show: Tests|?versionmag }} | {{#show: Version301|?version}} | ✔️ }}
 +
*page [[Version303]] ({{#show: Version303|?version}}) : {{#ifeq: {{#show: Tests|?versionmag }} | {{#show: Version303|?version}} | ✔️ }}
  
* https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##if
+
*https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##if
* https://www.semantic-mediawiki.org/wiki/Help:Inline_queries#Parser_function_.23show
+
*https://www.semantic-mediawiki.org/wiki/Help:Inline_queries#Parser_function_.23show
  
Test qui fonctionne :
+
<br />
* {{#ifeq: string 1 | string 2 | value if equal | value if unequal }}
+
[[Fichier:Pandoc-codeblock-include-sample.pdf|alt=lmlm|vignette|kkl]]
* Toto = Toto : {{#ifeq: Toto | Toto | YES | NO }}
+
<br />
* Toto = Lala : {{#ifeq: Toto | Lala | YES | NO }}
 
  
Test qui ne fonctionne pas :
 
* mavariable : [[mavariable::Toto]]
 
* {{#show:Tests|?mavariable}} = Toto : {{#ifeq: {{#show:Tests|?mavariable}} | Toto | YES | NO }}
 
* {{#show:Tests|?mavariable}} = Lala : {{#ifeq: {{#show:Tests|?mavariable}} | Lala | YES | NO }}
 
  
Test qui ne fonctionne pas :
+
</div></div>
* myvariable = [[myvariable::42]]
 
* {{#show:Tests|?myvariable}} = 42 : {{#if: {{#show:Tests|?myvariable}}==42 | YES | NO }}
 
* {{#show:Tests|?myvariable}} = 99 : {{#if: {{#show:Tests|?myvariable}}==99 | YES | NO }}
 
  
Test qui ne fonctionne pas :
+
==Fontawesome==
* {{#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 }}
 
  
== Fontawesome ==
+
*{{#fab:wikipedia-w}} wikipedia-w
 +
*{{#fab:500px}} 500px
 +
*{{#fas:bullseye}} bullseye
 +
*une icône fontawesome méthode html
  
* {{#fab:wikipedia-w}} wikipedia-w
+
==Blocs custom==
* {{#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|    Pour obtenir ce bloc, écrire : <nowiki>{{Info|texte}}</nowiki>  }}
 
{{Info|    Pour obtenir ce bloc, écrire : <nowiki>{{Info|texte}}</nowiki>  }}
Ligne 71 : Ligne 49 :
  
 
les modifications du code de ces blocs custom sont à effectuer sur : [[Modèle:Note]], [[Modèle:Important]], etc.
 
les modifications du code de ces blocs custom sont à effectuer sur : [[Modèle:Note]], [[Modèle:Important]], etc.
 +
 +
[[Modèle:DisplayInfos]]
 +
[[Fichier:Bleu Bulles-de-texte.png|alt=Des bulles bleues|vignette]]
 +
<br />
 +
 +
 +
==publication vidéos==
 +
 +
https://podeduc.apps.education.fr/video/0093-harry-pottermp4/4ac4f346e89038622dfc78f0ff5900388cbf4bb7660d58ae965cc0e2cb71a85e/
 +
 +
<iframe src="https://podeduc.apps.education.fr/video/0093-harry-pottermp4/4ac4f346e89038622dfc78f0ff5900388cbf4bb7660d58ae965cc0e2cb71a85e/?is_iframe=true" width="640" height="360" style="padding: 0; margin: 0; border:0" allowfullscreen ></iframe>
 +
 +
https://podeduc.apps.education.fr/media/videos/bacae77270b42c981d304a22a668900640f693b15f08969a228a15ae9e8c0fbc/0093/360p.mp4

Version du 10 mars 2022 à 14:15


test

Fontawesome

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

Blocs custom

    Pour obtenir ce bloc, écrire : {{Info|texte}}

    Pour obtenir ce bloc, écrire : {{Warning|texte}}

    Pour obtenir ce bloc, écrire : {{Error|texte}}

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.

Modèle:DisplayInfos

Des bulles bleues



publication vidéos

https://podeduc.apps.education.fr/video/0093-harry-pottermp4/4ac4f346e89038622dfc78f0ff5900388cbf4bb7660d58ae965cc0e2cb71a85e/

<iframe src="https://podeduc.apps.education.fr/video/0093-harry-pottermp4/4ac4f346e89038622dfc78f0ff5900388cbf4bb7660d58ae965cc0e2cb71a85e/?is_iframe=true" width="640" height="360" style="padding: 0; margin: 0; border:0" allowfullscreen ></iframe>

https://podeduc.apps.education.fr/media/videos/bacae77270b42c981d304a22a668900640f693b15f08969a228a15ae9e8c0fbc/0093/360p.mp4