Difference between revisions of "Template:Undef"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#switch:{{{param|0}}}
<includeonly>{{#switch:{{{param|0}}}
|0 = Instant
|0 = Instant
|#default = {{{param}}}s
|#default = {{{param}}}s}}
}}
</includeonly><noinclude>
<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.


== Example ==
== Examples ==
<pre>{{Undef}}</pre>
<pre>{{Undef}}</pre>
{{Undef}}
{{Undef}}
Line 15: Line 14:


<pre>{{Undef|param=LOL}}</pre>
<pre>{{Undef|param=LOL}}</pre>
{{Undef|param=1}}
{{Undef|param=LOL}}


<pre>{{Undef|5}}</pre>
{{Undef|5}}
{{Undef|5}}


<pre>{{Undef|Instant}}</pre>
{{Undef|Instant}}
{{Undef|Instant}}


<pre>{{Undef|1}}</pre>
{{Undef|1}}
{{Undef|1}}


<pre>{{Undef|param=5}}</pre>
{{Undef|param=5}}
{{Undef|param=5}}


<pre>{{Undef|param=5s}}</pre>
{{Undef|param=5s}}
{{Undef|param=5s}}
<pre>{{Undef|param=0}}</pre>
{{Undef|param=0}}
</noinclude>
</noinclude>

Revision as of 20:39, 30 June 2017

Description

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

Examples

{{Undef}}

Instant


{{Undef|param=}}

s


{{Undef|param=LOL}}

LOLs


{{Undef|5}}

Instant


{{Undef|Instant}}

Instant


{{Undef|1}}

Instant


{{Undef|param=5}}

5s


{{Undef|param=5s}}

5ss


{{Undef|param=0}}

Instant