Diferencia entre revisiones de «If both/doc»
De La Venciclopedia
(Página creada con «{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> __NOTOC____NOEDITSECTION__ This Help:Templates/Helper templates|helper…») |
mSin resumen de edición |
||
(No se muestran 8 ediciones intermedias del mismo usuario) | |||
Línea 1: | Línea 1: | ||
{{ | {{subpagina de documentacion}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | |||
__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> | |||
=== Ejemplos === | |||
<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| | <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 === | |||
=== | |||
* {{tl|if either}} | * {{tl|if either}} | ||
* {{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}}]] | ||
<!-- INTERWIKIS GO HERE --> | <!-- INTERWIKIS GO HERE --> | ||
}}</includeonly> | }}</includeonly> | ||
<noinclude>[[Categoría:Venciclopedia:Plantillas de uso|{{PAGENAME}}]]</noinclude> |
Revisión actual - 00:28 1 oct 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}}
Ejemplos
{{if both| a | b |verdadero|falso}} → verdadero
{{if both| a | |verdadero|falso}} → falso
{{if both| | b |verdadero|falso}} → falso
{{if both| | |verdadero|falso}} → falso