Template:Ifeq/doc: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{Documentation subpage}} {{Commons Import}} This template is like #ifeq, but does not m:Help:Newlines_and_spaces#Trimming_on_expansion..." |
Caleb Cooper (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{Commons Import}} |
{{Commons Import}} |
||
This template is like [[ |
This template is like [[mediawikiwiki:Help:Extension:ParserFunctions|#ifeq]], but does not [[mediawikiwiki:Help:Newlines_and_spaces#Trimming_on_expansion|trim]] the "then" and "else" part. |
||
=== Usage === |
=== Usage === |
||
*<nowiki>{{ifeq|"abc"|"abc"| 1 | 0 }}</nowiki> gives "{{ifeq|"abc"|"abc"| 1 | 0 }}" |
*<nowiki>{{ifeq|"abc"|"abc"| 1 | 0 }}</nowiki> gives "{{ifeq|"abc"|"abc"| 1 | 0 }}" |
||
Latest revision as of 16:57, 2 November 2020
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
This template is like #ifeq, but does not trim the "then" and "else" part.
Usage
- {{ifeq|"abc"|"abc"| 1 | 0 }} gives " 1 "
- {{ifeq|"abc"|"def"| 1 | 0 }} gives " 0 "
- {{ifeq|{{PAGENAME}}|Ifeq| 1 | 0 }} gives " 0 "
See also
- {{If}}