Site Notice

hello, world

Difference between revisions of "Template:IsEmpty"

From Project-EPB Commons
(// Via InPageEdit-v2)
 
(// Via InPageEdit-v2)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{1}}} | {{{1|}}}
+
* '''raw''' <code>{{{1}}}</code>
   | {{#if : {{{1|}}} | not empty | is empty }}
+
* '''ifeq''' <code>{{#ifeq: {{{1}}} | {{{1|}}}
 +
   | {{#if: {{{1|}}} | not empty | is empty }}
 
   | undefined
 
   | undefined
}}</includeonly><noinclude>
+
}}</code>
 +
* '''switch''' <code>{{#switch: {{#if: {{{1|}}} | + | {{{1|-}}} }}
 +
  | - = undefined
 +
  |  = is empty
 +
  | + = not empty
 +
}}</code>
 +
<noinclude>
  
* undefined: {{IsEmpty}}
+
----
* is empty: {{IsEmpty|}}
+
 
* not empty: {{IsEmpty|foo}}
+
{| 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}}
  • raw {{{1}}}
  • ifeq undefined
  • switch undefined
{{IsEmpty|}}
  • raw
  • ifeq is empty
  • switch is empty
{{IsEmpty|1}}
  • raw 1
  • ifeq not empty
  • switch not empty