Site Notice

hello, world

Difference between revisions of "Template:IsEmpty"

From Project-EPB Commons
(// Via InPageEdit-v2)
(// Via InPageEdit-v2)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{1}}} | {{{1|}}}
+
* '''raw''' <code>{{{1}}}</code>
 +
* '''ifeq''' <code>{{#ifeq: {{{1}}} | {{{1|}}}
 
   | {{#if: {{{1|}}} | not empty | is empty }}
 
   | {{#if: {{{1|}}} | not empty | is empty }}
 
   | undefined
 
   | undefined
}}</includeonly><noinclude>
+
}}</code>
 +
* '''switch''' <code>{{#switch: {{#if: {{{1|}}} | + | {{{1|-}}} }}
 +
  | - = undefined
 +
  |  = is empty
 +
  | + = not empty
 +
}}</code>
 +
<noinclude>
 +
 
 +
----
  
 
{| class="wikitable"
 
{| class="wikitable"

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