« Modèle:Réponse » : différence entre les versions

Contenu supprimé Contenu ajouté
imported>RockMFR
fix error message, wrap in error class, hex code, etc
imported>Edokter
simplyfy error logic
Ligne 1 :
<!--
 
// Check for {{{1}}} parameter
// Place a display:none DIV around the talkback template if no parameter was given
 
-->{{#if:{{{1|<noinclude>Example</noinclude>}}}|<!--then: (continue) else:<!--
-->|<span class="error">ERROR: Please enter the ''username'' parameter when using the {{tl|Talkback}} template.</span><!--
--><div style="display: none;">}}<!--
 
// Image
Ligne 46 ⟶ 44 :
--></div><!--
 
// Display an error message if no parameter given
// Closing DIV
 
-->|<!--else:
-->{{#if:{{{1|<noinclude>Example</noinclude>}}}||</div>}}<noinclude>
-->|<span class="error">ERROR: Please enter the ''username'' parameter when using the {{tl|Talkback}} template.</span>}}<!--noinclude>
 
{{Documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->