WikiIndex:Parser functions: Difference between revisions

Jump to navigation Jump to search
m
Text replacement - "IfExample" to "If example"
(Interwiki template)
m (Text replacement - "IfExample" to "If example")
Line 22: Line 22:
;Example:
;Example:
<pre>{{ #if: {{{1|}}} | The name of this site is {{{1}}}. | This site has an unknown name. }}</pre>
<pre>{{ #if: {{{1|}}} | The name of this site is {{{1}}}. | This site has an unknown name. }}</pre>
Let's say this is included in the template ''[[Template:IfExample|ifExample]]''.  If <nowiki>{{ifExample|WikiIndex}}</nowiki> is entered, '{{ifExample|WikiIndex}}' will show up because value was specified, as 'WikiIndex'.  <nowiki>{{ifExample|not WikiIndex}}</nowiki> makes '{{ifExample|not WikiIndex}}', because value is specified, as 'not WikiIndex'.  <nowiki>{{ifExample}}</nowiki> makes just '{{ifExample}}' because it was left blank.
Let's say this is included in the template ''[[Template:If example|ifExample]]''.  If <nowiki>{{ifExample|WikiIndex}}</nowiki> is entered, '{{ifExample|WikiIndex}}' will show up because value was specified, as 'WikiIndex'.  <nowiki>{{ifExample|not WikiIndex}}</nowiki> makes '{{ifExample|not WikiIndex}}', because value is specified, as 'not WikiIndex'.  <nowiki>{{ifExample}}</nowiki> makes just '{{ifExample}}' because it was left blank.


==ifeq==
==ifeq==

Navigation menu