Site Notice
hello, world
Difference between revisions of "Template:IsEmpty"
From Project-EPB Commons
m (// Via InPageEdit-v2) |
(// Via InPageEdit-v2) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | * '''raw''' <code>{{{1}}}</code> |
+ | * '''ifeq''' <code>{{#ifeq: {{{1}}} | {{{1|}}} | ||
| {{#if: {{{1|}}} | not empty | is empty }} | | {{#if: {{{1|}}} | not empty | is empty }} | ||
| undefined | | undefined | ||
− | }}</ | + | }}</code> |
+ | * '''switch''' <code>{{#switch: {{#if: {{{1|}}} | + | {{{1|-}}} }} | ||
+ | | - = undefined | ||
+ | | = is empty | ||
+ | | + = not empty | ||
+ | }}</code> | ||
+ | <noinclude> | ||
− | + | ---- | |
− | + | ||
− | + | {| class="wikitable" | |
+ | |- | ||
+ | ! input | ||
+ | ! output | ||
+ | |- | ||
+ | | <pre>{{IsEmpty}}</pre> | ||
+ | | {{IsEmpty}} | ||
+ | |- | ||
+ | | <pre>{{IsEmpty|}}</pre> | ||
+ | | {{IsEmpty|}} | ||
+ | |- | ||
+ | | <pre>{{IsEmpty|1}}</pre> | ||
+ | | {{IsEmpty|1}} | ||
+ | |} | ||
</noinclude> | </noinclude> |
Latest revision as of 00:44, 26 May 2023
- raw
{{{1}}}
- ifeq
undefined
- switch
undefined
input | output |
---|---|
{{IsEmpty}} |
|
{{IsEmpty|}} |
|
{{IsEmpty|1}} |
|