Tests divers : Différence entre versions

De M@gistère
Sauter à la navigation Sauter à la recherche
(31 révisions intermédiaires par 3 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
 +
[[Catégorie:Amodifier]]
  
 +
*{{#show: Tests|?Catégorie }}
  
== ParserFunctions et Semantic ==
+
==test==
  
Test de property :
+
<div class="toccolours mw-collapsible mw-collapsed" style=""> <div style="font-weight:bold;line-height:1.6;">Lorem ipsum sample</div>
 
+
<div class="mw-collapsible-content">
* Définition de propriété : Versionmag : [[versionmag::3.0.3]]
 
 
 
* page [[Version301]] ({{#show: Version301|?version}}) : {{#ifeq: {{#show: Tests|?versionmag }} | {{#show: Version301|?version}} | meme version | pas meme version }}
 
* page [[Version303]] ({{#show: Version303|?version}}) : {{#ifeq: {{#show: Tests|?versionmag }} | {{#show: Version303|?version}} | meme version | pas meme version }}
 
  
 +
==ParserFunctions et Semantic==
  
 +
Test de property :
  
 +
*Définition de propriété : Versionmag : [[versionmag::3.0.3]]
  
* https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##if
+
*page [[Version301]] ({{#show: Version301|?version}}) : {{#ifeq: {{#show: Tests|?versionmag }} | {{#show: Version301|?version}} | ✔️ }}
* https://www.semantic-mediawiki.org/wiki/Help:Inline_queries#Parser_function_.23show
+
*page [[Version303]] ({{#show: Version303|?version}}) : {{#ifeq: {{#show: Tests|?versionmag }} | {{#show: Version303|?version}} | ✔️ }}
  
Test qui fonctionne :
+
*https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##if
* {{#ifeq: string 1 | string 2 | value if equal | value if unequal }}
+
*https://www.semantic-mediawiki.org/wiki/Help:Inline_queries#Parser_function_.23show
* ifeq Toto = Toto : {{#ifeq: Toto | Toto | YES | NO }}
 
* ifeq Toto = Lala : {{#ifeq: Toto | Lala | YES | NO }}
 
* ifeq 99 = 99 : {{#ifeq: 99 | 99 | YES | NO }}
 
* ifeq 98 = 99 : {{#ifeq: 98 | 99 | YES | NO }}
 
* version = memeversion : {{#ifeq: {{#show: Tests|?versionmag }} | {{#show: Tests|?memeversionmag}} | YES | NO }}
 
* version = autreversion : {{#ifeq: {{#show: Tests|?versionmag }} | {{#show: Tests|?autreversionmag}} | YES | NO }}
 
  
 +
<br />
 +
[[Fichier:Pandoc-codeblock-include-sample.pdf|alt=lmlm|vignette|kkl]]
 +
<br />
  
  
Test qui ne fonctionne pas :
+
</div></div>
* 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 :
+
==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 58 : 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 />

Version du 7 janvier 2020 à 10:47


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