7 Days to Die Wiki
(Page créée avec « {{doc/start}} {{à traduire}} == Description == Validates a boolean value and returns it in a given format == Syntax == <pre> {{Validate bool | value = | format = true/f... »)
 
 
Ligne 8 : Ligne 8 :
 
{{Validate bool
 
{{Validate bool
 
| value =
 
| value =
| format = true/false
+
| format = oui/non
 
| separator = %
 
| separator = %
 
| category =
 
| category =
Ligne 21 : Ligne 21 :
 
! Description
 
! Description
 
|-
 
|-
| value || || Value to be validated. <br /> ''Recognized Values:'' <br />1, y, yes, t, true = TRUE <br /> 0, n, no, f, false = FALSE
+
| value || || Value to be validated. <br /> ''Recognized Values:'' <br />1, y, yes, t, true, o, oui = TRUE <br /> 0, n, no, non, f, false, faux = FALSE
 
|-
 
|-
| format || true/false || format in which the output should be presented. <br /> ''Recognized Values:'' <br /> 1/0 <br /> yes/no <br /> ''Unrecognized values will result in using the true/false format''
+
| format || vrai/faux || format in which the output should be presented. <br /> ''Recognized Values:'' <br /> 1/0 <br /> yes/no <br /> oui/non <br />''Unrecognized values will result in using the true/false format''
 
|-
 
|-
 
| separator || % || Separator to used if the returned value includes a category
 
| separator || % || Separator to used if the returned value includes a category

Version actuelle datée du 8 décembre 2014 à 22:31

Template-info.png Documentation


Cet article doit être traduit. Vous pouvez aider 7 Days to Die Wiki, en le traduisant.


Description

Validates a boolean value and returns it in a given format

Syntax

{{Validate bool
| value = 
| format = oui/non
| separator = %
| category = 
}}

Parameters

Parameter Default Value Description
value Value to be validated.
Recognized Values:
1, y, yes, t, true, o, oui = TRUE
0, n, no, non, f, false, faux = FALSE
format vrai/faux format in which the output should be presented.
Recognized Values:
1/0
yes/no
oui/non
Unrecognized values will result in using the true/false format
separator % Separator to used if the returned value includes a category
category Category used for auto-categorization provided the return value is TRUE


Ceci est la page de documentation du modèle, il devrait avoir subi une transclusion en la page principale du modèle. Voir Modèle:Doc pour plus d'information.