Site Notice

hello, world

Difference between revisions of "Template:IsEmpty"

From Project-EPB Commons
(// Via InPageEdit-v2)
(// Via InPageEdit-v2)
Line 5: Line 5:
 
}}</code>
 
}}</code>
 
* '''switch''' <code>{{#switch: {{{1}}}
 
* '''switch''' <code>{{#switch: {{{1}}}
   | {{{1|placeholder}}} = not empty
+
   | {{#if: {{{1|}}} | {{{1}}} | @ }} = not empty
 
   |                    = is empty
 
   |                    = is empty
 
   | #default            = undefined
 
   | #default            = undefined

Revision as of 00:37, 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