User:Ferretwings/Parametertesting

From Terraria Wiki
Jump to navigation Jump to search

Simple parameter test:

{{#if:{{{1}}}
  | {{#if:{{{1|}}}
      | unnamed 1 has a value
      | unnamed 1 not sent}}
  | unnamed 1 is empty}}
{{#if:{{{p}}}
  | {{#if:{{{p|}}}
      | named p has a value
      | named p not sent}}
  | named p is empty}}
call parameter result {{#if:<param>|True|False}} {{#switch:|<parameter>=empty|not empty}} {{#ifeq:<parameter>||True|False}}
{{template}} {{{1}}} {{{1}}} {{#if:{{{1}}}|True|False}} True {{#switch:|{{{1}}}=empty|not empty}} not empty {{#ifeq:{{{1}}}||True|False}} False
{{{1|}}} {{#if:{{{1|}}}|True|False}} False {{#switch:|{{{1|}}}=empty|not empty}} empty {{#ifeq:{{{1|}}}||True|False}} True
{{{1|alt}}} alt {{#if:{{{1|alt}}}|True|False}} True {{#switch:|{{{1|alt}}}=empty|not empty}} not empty {{#ifeq:{{{1|alt}}}||True|False}} False
{{{p}}} {{{p}}} {{#if:{{{p}}}|True|False}} True {{#switch:|{{{p}}}=empty|not empty}} not empty {{#ifeq:{{{p}}}||True|False}} False
{{{p|}}} {{#if:{{{p|}}}|True|False}} False {{#switch:|{{{p|}}}=empty|not empty}} empty {{#ifeq:{{{p|}}}||True|False}} True
{{{p|alt}}} alt {{#if:{{{p|alt}}}|True|False}} True {{#switch:|{{{p|alt}}}=empty|not empty}} not empty {{#ifeq:{{{p|alt}}}||True|False}} False
{{template|}} {{{1}}} {{#if:{{{1}}}|True|False}} False {{#switch:|{{{1}}}=empty|not empty}} empty {{#ifeq:{{{1}}}||True|False}} True
{{{1|}}} {{#if:{{{1|}}}|True|False}} False {{#switch:|{{{1|}}}=empty|not empty}} empty {{#ifeq:{{{1|}}}||True|False}} True
{{{1|alt}}} {{#if:{{{1|alt}}}|True|False}} False {{#switch:|{{{1|alt}}}=empty|not empty}} empty {{#ifeq:{{{1|alt}}}||True|False}} True
{{{p}}} {{{p}}} {{#if:{{{p}}}|True|False}} True {{#switch:|{{{p}}}=empty|not empty}} not empty {{#ifeq:{{{p}}}||True|False}} False
{{{p|}}} {{#if:{{{p|}}}|True|False}} False {{#switch:|{{{p|}}}=empty|not empty}} empty {{#ifeq:{{{p|}}}||True|False}} True
{{{p|alt}}} alt {{#if:{{{p|alt}}}|True|False}} True {{#switch:|{{{p|alt}}}=empty|not empty}} not empty {{#ifeq:{{{p|alt}}}||True|False}} False
{{template| }} {{{1}}} {{#if:{{{1}}}|True|False}} False {{#switch:|{{{1}}}=empty|not empty}} empty {{#ifeq:{{{1}}}||True|False}} True
{{{1|}}} {{#if:{{{1|}}}|True|False}} False {{#switch:|{{{1|}}}=empty|not empty}} empty {{#ifeq:{{{1|}}}||True|False}} True
{{{1|alt}}} {{#if:{{{1|alt}}}|True|False}} False {{#switch:|{{{1|alt}}}=empty|not empty}} empty {{#ifeq:{{{1|alt}}}||True|False}} True
{{{p}}} {{{p}}} {{#if:{{{p}}}|True|False}} True {{#switch:|{{{p}}}=empty|not empty}} not empty {{#ifeq:{{{p}}}||True|False}} False
{{{p|}}} {{#if:{{{p|}}}|True|False}} False {{#switch:|{{{p|}}}=empty|not empty}} empty {{#ifeq:{{{p|}}}||True|False}} True
{{{p|alt}}} alt {{#if:{{{p|alt}}}|True|False}} True {{#switch:|{{{p|alt}}}=empty|not empty}} not empty {{#ifeq:{{{p|alt}}}||True|False}} False
{{template| |}} {{{1}}} {{#if:{{{1}}}|True|False}} False {{#switch:|{{{1}}}=empty|not empty}} empty {{#ifeq:{{{1}}}||True|False}} True
{{{1|}}} {{#if:{{{1|}}}|True|False}} False {{#switch:|{{{1|}}}=empty|not empty}} empty {{#ifeq:{{{1|}}}||True|False}} True
{{{1|alt}}} {{#if:{{{1|alt}}}|True|False}} False {{#switch:|{{{1|alt}}}=empty|not empty}} empty {{#ifeq:{{{1|alt}}}||True|False}} True
{{{p}}} {{{p}}} {{#if:{{{p}}}|True|False}} True {{#switch:|{{{p}}}=empty|not empty}} not empty {{#ifeq:{{{p}}}||True|False}} False
{{{p|}}} {{#if:{{{p|}}}|True|False}} False {{#switch:|{{{p|}}}=empty|not empty}} empty {{#ifeq:{{{p|}}}||True|False}} True
{{{p|alt}}} alt {{#if:{{{p|alt}}}|True|False}} True {{#switch:|{{{p|alt}}}=empty|not empty}} not empty {{#ifeq:{{{p|alt}}}||True|False}} False
{{template|&nbsp;}} {{{1}}}   {{#if:{{{1}}}|True|False}} True {{#switch:|{{{1}}}=empty|not empty}} not empty {{#ifeq:{{{1}}}||True|False}} False
{{{1|}}}   {{#if:{{{1|}}}|True|False}} True {{#switch:|{{{1|}}}=empty|not empty}} not empty {{#ifeq:{{{1|}}}||True|False}} False
{{{1|alt}}}   {{#if:{{{1|alt}}}|True|False}} True {{#switch:|{{{1|alt}}}=empty|not empty}} not empty {{#ifeq:{{{1|alt}}}||True|False}} False
{{{p}}} {{{p}}} {{#if:{{{p}}}|True|False}} True {{#switch:|{{{p}}}=empty|not empty}} not empty {{#ifeq:{{{p}}}||True|False}} False
{{{p|}}} {{#if:{{{p|}}}|True|False}} False {{#switch:|{{{p|}}}=empty|not empty}} empty {{#ifeq:{{{p|}}}||True|False}} True
{{{p|alt}}} alt {{#if:{{{p|alt}}}|True|False}} True {{#switch:|{{{p|alt}}}=empty|not empty}} not empty {{#ifeq:{{{p|alt}}}||True|False}} False
{{template|p1}} {{{1}}} p1 {{#if:{{{1}}}|True|False}} True {{#switch:|{{{1}}}=empty|not empty}} not empty {{#ifeq:{{{1}}}||True|False}} False
{{{1|}}} p1 {{#if:{{{1|}}}|True|False}} True {{#switch:|{{{1|}}}=empty|not empty}} not empty {{#ifeq:{{{1|}}}||True|False}} False
{{{1|alt}}} p1 {{#if:{{{1|alt}}}|True|False}} True {{#switch:|{{{1|alt}}}=empty|not empty}} not empty {{#ifeq:{{{1|alt}}}||True|False}} False
{{{p}}} {{{p}}} {{#if:{{{p}}}|True|False}} True {{#switch:|{{{p}}}=empty|not empty}} not empty {{#ifeq:{{{p}}}||True|False}} False
{{{p|}}} {{#if:{{{p|}}}|True|False}} False {{#switch:|{{{p|}}}=empty|not empty}} empty {{#ifeq:{{{p|}}}||True|False}} True
{{{p|alt}}} alt {{#if:{{{p|alt}}}|True|False}} True {{#switch:|{{{p|alt}}}=empty|not empty}} not empty {{#ifeq:{{{p|alt}}}||True|False}} False
{{template||p2}} {{{1}}} {{#if:{{{1}}}|True|False}} False {{#switch:|{{{1}}}=empty|not empty}} empty {{#ifeq:{{{1}}}||True|False}} True
{{{1|}}} {{#if:{{{1|}}}|True|False}} False {{#switch:|{{{1|}}}=empty|not empty}} empty {{#ifeq:{{{1|}}}||True|False}} True
{{{1|alt}}} {{#if:{{{1|alt}}}|True|False}} False {{#switch:|{{{1|alt}}}=empty|not empty}} empty {{#ifeq:{{{1|alt}}}||True|False}} True
{{{p}}} {{{p}}} {{#if:{{{p}}}|True|False}} True {{#switch:|{{{p}}}=empty|not empty}} not empty {{#ifeq:{{{p}}}||True|False}} False
{{{p|}}} {{#if:{{{p|}}}|True|False}} False {{#switch:|{{{p|}}}=empty|not empty}} empty {{#ifeq:{{{p|}}}||True|False}} True
{{{p|alt}}} alt {{#if:{{{p|alt}}}|True|False}} True {{#switch:|{{{p|alt}}}=empty|not empty}} not empty {{#ifeq:{{{p|alt}}}||True|False}} False
{{template|p=}} {{{1}}} {{{1}}} {{#if:{{{1}}}|True|False}} True {{#switch:|{{{1}}}=empty|not empty}} not empty {{#ifeq:{{{1}}}||True|False}} False
{{{1|}}} {{#if:{{{1|}}}|True|False}} False {{#switch:|{{{1|}}}=empty|not empty}} empty {{#ifeq:{{{1|}}}||True|False}} True
{{{1|alt}}} alt {{#if:{{{1|alt}}}|True|False}} True {{#switch:|{{{1|alt}}}=empty|not empty}} not empty {{#ifeq:{{{1|alt}}}||True|False}} False
{{{p}}} {{#if:{{{p}}}|True|False}} False {{#switch:|{{{p}}}=empty|not empty}} empty {{#ifeq:{{{p}}}||True|False}} True
{{{p|}}} {{#if:{{{p|}}}|True|False}} False {{#switch:|{{{p|}}}=empty|not empty}} empty {{#ifeq:{{{p|}}}||True|False}} True
{{{p|alt}}} {{#if:{{{p|alt}}}|True|False}} False {{#switch:|{{{p|alt}}}=empty|not empty}} empty {{#ifeq:{{{p|alt}}}||True|False}} True
{{template|p= }} {{{1}}} {{{1}}} {{#if:{{{1}}}|True|False}} True {{#switch:|{{{1}}}=empty|not empty}} not empty {{#ifeq:{{{1}}}||True|False}} False
{{{1|}}} {{#if:{{{1|}}}|True|False}} False {{#switch:|{{{1|}}}=empty|not empty}} empty {{#ifeq:{{{1|}}}||True|False}} True
{{{1|alt}}} alt {{#if:{{{1|alt}}}|True|False}} True {{#switch:|{{{1|alt}}}=empty|not empty}} not empty {{#ifeq:{{{1|alt}}}||True|False}} False
{{{p}}} {{#if:{{{p}}}|True|False}} False {{#switch:|{{{p}}}=empty|not empty}} empty {{#ifeq:{{{p}}}||True|False}} True
{{{p|}}} {{#if:{{{p|}}}|True|False}} False {{#switch:|{{{p|}}}=empty|not empty}} empty {{#ifeq:{{{p|}}}||True|False}} True
{{{p|alt}}} {{#if:{{{p|alt}}}|True|False}} False {{#switch:|{{{p|alt}}}=empty|not empty}} empty {{#ifeq:{{{p|alt}}}||True|False}} True
{{template|p=&nbsp;}} {{{1}}} {{{1}}} {{#if:{{{1}}}|True|False}} True {{#switch:|{{{1}}}=empty|not empty}} not empty {{#ifeq:{{{1}}}||True|False}} False
{{{1|}}} {{#if:{{{1|}}}|True|False}} False {{#switch:|{{{1|}}}=empty|not empty}} empty {{#ifeq:{{{1|}}}||True|False}} True
{{{1|alt}}} alt {{#if:{{{1|alt}}}|True|False}} True {{#switch:|{{{1|alt}}}=empty|not empty}} not empty {{#ifeq:{{{1|alt}}}||True|False}} False
{{{p}}}   {{#if:{{{p}}}|True|False}} True {{#switch:|{{{p}}}=empty|not empty}} not empty {{#ifeq:{{{p}}}||True|False}} False
{{{p|}}}   {{#if:{{{p|}}}|True|False}} True {{#switch:|{{{p|}}}=empty|not empty}} not empty {{#ifeq:{{{p|}}}||True|False}} False
{{{p|alt}}}   {{#if:{{{p|alt}}}|True|False}} True {{#switch:|{{{p|alt}}}=empty|not empty}} not empty {{#ifeq:{{{p|alt}}}||True|False}} False
{{template|p=value}} {{{1}}} {{{1}}} {{#if:{{{1}}}|True|False}} True {{#switch:|{{{1}}}=empty|not empty}} not empty {{#ifeq:{{{1}}}||True|False}} False
{{{1|}}} {{#if:{{{1|}}}|True|False}} False {{#switch:|{{{1|}}}=empty|not empty}} empty {{#ifeq:{{{1|}}}||True|False}} True
{{{1|alt}}} alt {{#if:{{{1|alt}}}|True|False}} True {{#switch:|{{{1|alt}}}=empty|not empty}} not empty {{#ifeq:{{{1|alt}}}||True|False}} False
{{{p}}} value {{#if:{{{p}}}|True|False}} True {{#switch:|{{{p}}}=empty|not empty}} not empty {{#ifeq:{{{p}}}||True|False}} False
{{{p|}}} value {{#if:{{{p|}}}|True|False}} True {{#switch:|{{{p|}}}=empty|not empty}} not empty {{#ifeq:{{{p|}}}||True|False}} False
{{{p|alt}}} value {{#if:{{{p|alt}}}|True|False}} True {{#switch:|{{{p|alt}}}=empty|not empty}} not empty {{#ifeq:{{{p|alt}}}||True|False}} False