(Created page with "<includeonly>{|class="wikitable" |- !name !#if, no bar !#if, with bar !subst ! +, -, = |- !a |{{#if: {{{a}}}| non-empty | empty}} |{{#if: {{{a|}}}| non-empty | empty}} |{{{a|subs...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
|- | |- | ||
!name | !name | ||
!#if | !<nowiki>#if: {{{p}}}</nowiki> | ||
!#if | !<nowiki>#if: {{{p|}}}</nowiki> | ||
!subst | !<nowiki>"{{{p|subst}}}"</nowiki> | ||
! + | !<nowiki>#ifeq: {{{p|+}}}|{{{p|-}}}</nowiki> | ||
|- | |- | ||
!a | !a | ||
|{{#if: {{{a}}}| non-empty | empty}} | |{{#if: {{{a}}}| non-empty | empty}} | ||
|{{#if: {{{a|}}}| non-empty | empty}} | |{{#if: {{{a|}}}| non-empty | empty}} | ||
|{{{a|subst}}} | |"{{{a|subst}}}" | ||
|{{#ifeq: {{{a|+}}}|{{{a|-}}}|=|!=}} | |{{#ifeq: {{{a|+}}}|{{{a|-}}}|=|!=}} | ||
|- | |- | ||
Line 16: | Line 16: | ||
|{{#if: {{{b}}}| non-empty | empty}} | |{{#if: {{{b}}}| non-empty | empty}} | ||
|{{#if: {{{b|}}}| non-empty | empty}} | |{{#if: {{{b|}}}| non-empty | empty}} | ||
|{{{b|subst}}} | |"{{{b|subst}}}" | ||
|{{#ifeq: {{{b|+}}}|{{{b|-}}}|=|!=}} | |{{#ifeq: {{{b|+}}}|{{{b|-}}}|=|!=}} | ||
|- | |- | ||
Line 22: | Line 22: | ||
|{{#if: {{{c}}}| non-empty | empty}} | |{{#if: {{{c}}}| non-empty | empty}} | ||
|{{#if: {{{c|}}}| non-empty | empty}} | |{{#if: {{{c|}}}| non-empty | empty}} | ||
|{{{c|subst}}} | |"{{{c|subst}}}" | ||
|{{#ifeq: {{{c|+}}}|{{{c|-}}}|=|!=}} | |{{#ifeq: {{{c|+}}}|{{{c|-}}}|=|!=}} | ||
|- | |- | ||
Line 28: | Line 28: | ||
|{{#if: {{{d}}}| non-empty | empty}} | |{{#if: {{{d}}}| non-empty | empty}} | ||
|{{#if: {{{d|}}}| non-empty | empty}} | |{{#if: {{{d|}}}| non-empty | empty}} | ||
|{{{d|subst}}} | |"{{{d|subst}}}" | ||
|{{#ifeq: {{{d|+}}}|{{{d|-}}}|=|!=}} | |{{#ifeq: {{{d|+}}}|{{{d|-}}}|=|!=}} | ||
|} | |} | ||
</includeonly> | </includeonly> | ||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> |
Latest revision as of 17:08, 8 March 2011
[edit] [ ] Template documentation
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" | = |
The above documentation is transcluded from Template:About parameters/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |