Diferencia entre revisiones de «If both/doc»
De La Venciclopedia
m (Texto reemplazado: «Categoría:Venciclopedia:Indicaciones para el uso de plantillas» por «Categoría:Venciclopedia:Plantillas de uso») |
mSin resumen de edición |
||
Línea 3: | Línea 3: | ||
__NOTOC____NOEDITSECTION__ | __NOTOC____NOEDITSECTION__ | ||
Esta plantilla incluye un texto o código si dos parametros son verdaderos. | |||
=== | === Uso === | ||
SI '''a''' y '''b''' entonces VERDADERO. | |||
SI '''a''' ni '''b''' entonces FALSO. | |||
SI '''a''' o '''b''' entonces FALSO. | |||
Puede usarse para reemplazar el código: <code><nowiki>{{#if:a|{{#if:b|verdadero|falso}}|falso}}</nowiki></code> | |||
=== Examples === | === Examples === | ||
<code><nowiki>{{if both| a | b | | <code><nowiki>{{if both| a | b |verdadero|falso}}</nowiki> → {{if both| a | b |verdadero|falso}}</code> | ||
<code><nowiki>{{if both| a | | | <code><nowiki>{{if both| a | |verdadero|falso}}</nowiki> → {{if both| | b |verdadero|falso}}</code> | ||
<code><nowiki>{{if both| | b | | <code><nowiki>{{if both| | b |verdadero|falso}}</nowiki> → {{if both| | b |verdadero|falso}}</code> | ||
<code><nowiki>{{if both| | | | <code><nowiki>{{if both| | |verdadero|falso}}</nowiki> → {{if both| | |verdadero|falso}}</code> | ||
=== Ver también === | === Ver también === | ||
Línea 28: | Línea 28: | ||
* {{tl|if empty}} | * {{tl|if empty}} | ||
* {{tl|if all}} | * {{tl|if all}} | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- CATEGORIES GO HERE --> | <!-- CATEGORIES GO HERE --> | ||
[[Categoría:Venciclopedia:Plantillas If-then-else|{{PAGENAME}}]] | [[Categoría:Venciclopedia:Plantillas If-then-else|{{PAGENAME}}]] | ||
<!-- INTERWIKIS GO HERE --> | <!-- INTERWIKIS GO HERE --> | ||
}}</includeonly> | }}</includeonly> | ||
<noinclude>[[Categoría:Venciclopedia:Plantillas de uso|{{PAGENAME}}]]</noinclude> | <noinclude>[[Categoría:Venciclopedia:Plantillas de uso|{{PAGENAME}}]]</noinclude> |
Revisión del 11:12 29 sep 2020
Esta plantilla incluye un texto o código si dos parametros son verdaderos.
Uso
SI a y b entonces VERDADERO.
SI a ni b entonces FALSO.
SI a o b entonces FALSO.
Puede usarse para reemplazar el código: {{#if:a|{{#if:b|verdadero|falso}}|falso}}
Examples
{{if both| a | b |verdadero|falso}} → verdadero
{{if both| a | |verdadero|falso}} → falso
{{if both| | b |verdadero|falso}} → falso
{{if both| | |verdadero|falso}} → falso