Template:YesnoTNT
Jump to navigation
Jump to search
Lua error in Module:TNT at line 157: attempt to index field 'data' (a nil value).
![]() | This template uses Lua: |
Return true (1) or false (0) according to the value parameter.
Parameters[edit source]
{{YesnoTNT|Val|Default}}
Where Val can be:
- True: Lua error in Module:TNT at line 157: attempt to index field 'data' (a nil value).
- False: Lua error in Module:TNT at line 157: attempt to index field 'data' (a nil value).
Where Default, optional, must be 1 or 0.
Examples[edit source]
{{#ifexpr:{{YesnoTNT|yes}}=1|true|false}}
-> Expression error: Unexpected < operator.{{#ifexpr:{{YesnoTNT|1}}=1|true|false}}
-> Expression error: Unexpected < operator.{{#ifexpr:{{YesnoTNT|false}}=1|true|false}}
-> Expression error: Unexpected < operator.{{#switch:{{YesnoTNT|verdad}}=1|1=true|0=false|#default=not found}}
-> not found{{#switch:{{YesnoTNT|}}=1|1=true|0=false|#default=not found}}
-> not found{{#switch:{{YesnoTNT||1}}=1|1=true|0=false|#default=not found}}
-> not found
External links[edit source]
- Template:YesnoTNT at Wikipedia, the free Terran-based encyclopedia that anyone can edit.
The above documentation is transcluded from Template:YesnoTNT/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |