Widget:If

De Centre de Ressources Numériques - Labomedia
Aller à : navigation, rechercher

Usage:

{{#Widget:if|value1 equals|value2|then=do this|else=do this}}

<script type="text/javascript"> if ( .replace('<'+"script","script").toLowerCase() == .replace('<'+"script","script").toLowerCase() ) { document.write(.replace('<'+"script","_script")); } else { document.write(.replace('<'+"script","_script")); } </script>