Difference between revisions of "Template:Undef"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m (Reverted edits by Throwaway1234 (talk) to last revision by Valento)
Line 1: Line 1:
<includeonly>{{#switch:{{{param|0}}}
{{#ifeq:{{{param|0}}}|0|It's zero somehow.|It's not zero ({{{param}}})}}<noinclude>
|0 = Instant
|#default = {{{param}}}s}}
</includeonly><noinclude>
== Description ==
== Description ==
Checks if undefined, if not tries to default. Use empty otherwise.
Checks if undefined, if not tries to default. Use empty otherwise.


== Examples ==
== Example ==
<pre>{{Undef}}</pre>
<pre>{{Undef}}</pre>
{{Undef}}
{{Undef}}
Line 15: Line 12:
<pre>{{Undef|param=LOL}}</pre>
<pre>{{Undef|param=LOL}}</pre>
{{Undef|param=LOL}}
{{Undef|param=LOL}}
<pre>{{Undef|5}}</pre>
{{Undef|5}}
<pre>{{Undef|Instant}}</pre>
{{Undef|Instant}}
<pre>{{Undef|1}}</pre>
{{Undef|1}}
<pre>{{Undef|param=5}}</pre>
{{Undef|param=5}}
<pre>{{Undef|param=5s}}</pre>
{{Undef|param=5s}}
<pre>{{Undef|param=0}}</pre>
{{Undef|param=0}}
<pre>{{Undef|boogey=5}}</pre>
{{Undef|boogey=5}}
</noinclude>
</noinclude>

Revision as of 21:03, 30 June 2017

It's zero somehow.

Description

Checks if undefined, if not tries to default. Use empty otherwise.

Example

{{Undef}}

It's zero somehow.

{{Undef|param=}}

It's not zero ()

{{Undef|param=LOL}}

It's not zero (LOL)