Template:Ifdataparadef

{{#ifexpr:{{exists|Template:Data {{{1}}}}}and{{#ifeq:{{padleft:|1|{{Data {{{1}}}|pst2|{{{2}}}}}}}|{|0|1}} }} If data template  exists and has the parameter   defined, return  ; otherwise, return   (if provided).
 * {{{3|}}}
 * {{{4|}}}


 * Note
 * Because this template retrieves data directly from data templates, using this within data retrieval templates should be done with care. Ensure that this template will never be exposed if the parent template a data template parameter (that is, ). For example, Template:Ifdataparadef/demo1 contains an exposed call to Template:ifdataparadef with 2 possible uses for data retrieval.
 * "" gives ""
 * "" gives ""

Truth tables

 * A =
 * B =
 * C1 =
 * C2 =