Template talk:If defined call

From ThinkWiki
Jump to: navigation, search

Template:Tdeprecated

Documentation

Purpose

{{if defined call}}, call a template if a variable or parameter is defined (is not empty), this template will be evaluated last.


Usage

Abstract usage of the template, one variable per row.
{{if defined call
  |VARIABLE_OR_PARAMETER_TO_TEST
  |TEMPLATE_TO_CALL
  |PARAMETER_1
  |...
  |PARAMETER_8
}}

Example

Code Result
{{if defined call|foo|show1|bar}}
bar

See also

History

Created 
→AzaToth 15:07, 3 December 2005 (UTC)

Copied from Wikipedia: http://en.wikipedia.org/wiki/Template:If_defined_call


Discussion