Anonymous user
Template:Boolean: Difference between revisions
m
no edit summary
imported>Ttv pedro270707 m (Added string parameter in case a string should be returned when the passed value is not a "boolean") |
imported>Ttv pedro270707 mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:string|{{#ifeq: {{{string|}}} | 1 | {{{ | <includeonly>{{#vardefine:string|{{#ifeq: {{{string|}}} | 1 | {{{1|}}} | {{#ifeq: {{{string|}}} | true | {{{1|}}} | {{#ifeq: {{{1|}}} | yes | {{{1|}}} | {{#ifeq: {{{string|}}} | y | {{{1|}}} | n }} }} }} }}}}<!-- | ||
-->{{#ifeq: {{{1|}}} | 1 | y | {{#ifeq: {{{1|}}} | true | y | {{#ifeq: {{{1|}}} | yes | y | {{#ifeq: {{{1|}}} | y | y | {{#ifeq: {{{1|}}} | 0 | n | {{#ifeq: {{{1|}}} | false | n | {{#ifeq: {{{1|}}} | no | n | {{#ifeq: {{{1|}}} | n | n | {{#var:string}} }} }} }} }} }} }} }} }}</includeonly><noinclude> | -->{{#ifeq: {{{1|}}} | 1 | y | {{#ifeq: {{{1|}}} | true | y | {{#ifeq: {{{1|}}} | yes | y | {{#ifeq: {{{1|}}} | y | y | {{#ifeq: {{{1|}}} | 0 | n | {{#ifeq: {{{1|}}} | false | n | {{#ifeq: {{{1|}}} | no | n | {{#ifeq: {{{1|}}} | n | n | {{#var:string}} }} }} }} }} }} }} }} }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Put categories on the documentation page --> | <!-- Put categories on the documentation page --> | ||
</noinclude> | </noinclude> |