Template:About parameters/doc: Difference between revisions From Online Manual

Jump to: navigation, search
(Created page with "This template exists merely to show what will happen when you attempt to pass parameters to a template in various ways. This template is not meant to be used in any articles. Th...")
 
(could be used in a help article, I suppose.)
 
Line 1: Line 1:
This template exists merely to show what will happen when you attempt to pass parameters to a template in various ways.
This template demonstrates what will happen when you attempt to pass parameters to a template in various ways.
This template is not meant to be used in any articles.


This template takes 4 parameters -- a, b, c, and d.
This template takes 4 parameters -- a, b, c, and d.

Latest revision as of 17:07, 8 March 2011

This template demonstrates what will happen when you attempt to pass parameters to a template in various ways.

This template takes 4 parameters -- a, b, c, and d. In the example below, they are used in the template call as follows:

  • a -- leave out of the call
  • b -- include, but without an =
  • c -- include, with an = but no value
  • d -- include, with an = and a value

{{About parameters|b|c=|d=value}}

name #if: {{{p}}} #if: {{{p|}}} "{{{p|subst}}}" #ifeq: {{{p|+}}}|{{{p|-}}}
a non-empty empty "subst" !=
b non-empty empty "subst" !=
c empty empty "" =
d non-empty non-empty "value" =




Advertisement: