Tests divers : Différence entre versions

De M@gistère
Sauter à la navigation Sauter à la recherche
(45 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==
 +
 
 +
<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">
 +
 
 +
==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 }}
 
 
 
  
* 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
* Toto = Toto : {{#ifeq: Toto | Toto | YES | NO }}
 
* Toto = Lala : {{#ifeq: Toto | Lala | YES | NO }}
 
* {{#if: 99==99 | YES | NO }}
 
  
Test qui ne fonctionne pas :
+
<br />
* mavariable : [[mavariable::Toto]]
+
[[Fichier:Pandoc-codeblock-include-sample.pdf|alt=lmlm|vignette|kkl]]
* {{#show:Tests|?mavariable}} = Toto : {{#ifeq: {{#show:Tests|?mavariable}} | Toto | YES | NO }}
+
<br />
* {{#show:Tests|?mavariable}} = Lala : {{#ifeq: {{#show:Tests|?mavariable}} | Lala | YES | NO }}
 
  
Test qui ne fonctionne pas :
 
* 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 :
+
</div></div>
* {{#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 ==
+
==Fontawesome==
  
* {{#fab:wikipedia-w}} wikipedia-w
+
*{{#fab:wikipedia-w}} wikipedia-w
* {{#fab:500px}} 500px
+
*{{#fab:500px}} 500px
* {{#fas:bullseye}} bullseye
+
*{{#fas:bullseye}} bullseye
* <i class="fas fa-3x fa-arrow-alt-circle-right"></i> une icône fontawesome méthode html
+
*une icône fontawesome méthode html
  
== Blocs custom ==
+
==Blocs custom==
  
 
{{Info|    Pour obtenir ce bloc, écrire : <nowiki>{{Info|texte}}</nowiki>  }}
 
{{Info|    Pour obtenir ce bloc, écrire : <nowiki>{{Info|texte}}</nowiki>  }}
Ligne 54 : 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