Template:Ifequal/doc: Difference between revisions
From XMS Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
! style="width:60%"| Change Description | ! style="width:60%"| Change Description | ||
|- | |- | ||
|<small> <b>[[User:Fabartus|Fra]]</b><font color="green"> | |<small> <b>[[User:Fabartus|Fra]]</b><font color="green">User talk:Fabartus|nkB]]</font> 05:40, 22 May 2007 (UTC) </small>||Ver: 0<sub>c</sub>||Wikipedia||(Finish WPTSP version table.) | ||
|- | |- | ||
|<small> <b>[[User:Fabartus|Fra]]</b><font color="green"> | |<small> <b>[[User:Fabartus|Fra]]</b><font color="green">User talk:Fabartus|nkB]]</font> 05:16, 22 May 2007 </small>||Ver: 0<sub>b</sub>||Wikipedia|| (2,674 bytes) ({subst:WPTSP version} + restore interwiki cat logic from the commons copy.) | ||
|- | |- | ||
|<small> Kevinkor2 00:55, 2 April 2007 </small>||Ver: 0<sub>a</sub>||Wikipedia|| (m) (recat deleted --category:Miscellaneous templates) | |<small> Kevinkor2 00:55, 2 April 2007 </small>||Ver: 0<sub>a</sub>||Wikipedia|| (m) (recat deleted --category:Miscellaneous templates) | ||
|- | |- | ||
|<small> <b>[[User:Fabartus|Fra]]</b><font color="green"> | |<small> <b>[[User:Fabartus|Fra]]</b><font color="green">User talk:Fabartus|nkB]]</font> 20:56, 27 March 2007 </small>||Ver: 0<sub></sub>||Wikipedia|| (m) (typo fix -- Completed and working version en.wp and the commons.) | ||
|- | |- | ||
|colspan=4|<hr> | |colspan=4|<hr> | ||
|- | |- | ||
|<small> <b>[[User:Fabartus|Fra]]</b><font color="green"> | |<small> <b>[[User:Fabartus|Fra]]</b><font color="green">User talk:Fabartus|nkB]]</font> 20:56, 27 March 2007 </small>||Ver: _<sub>e</sub>||Wikipedia|| (Think this will do it--culmination of multistep construction, grooming, and testing.) | ||
|- | |- | ||
|<small> <b>[[User:Fabartus|Fra]]</b><font color="green"> | |<small> <b>[[User:Fabartus|Fra]]</b><font color="green">User talk:Fabartus|nkB]]</font> 20:10, 27 March 2007 </small>||Ver:_<sub> </sub>||Wikipedia|| (Genesis for multicriteria tests) | ||
|- | |- | ||
Line 49: | Line 49: | ||
:* Applications are generally to display selective text for a set of pages, as in for example, a common usage page for templates, selected by specific page name cases. | :* Applications are generally to display selective text for a set of pages, as in for example, a common usage page for templates, selected by specific page name cases. | ||
:*This template takes upto eight pairs of arguments (i.e 16 | :*This template takes upto eight pairs of arguments (i.e 16 m:Help:Template|numbered parameters]]), tests the odd verus the even, and returns true if any pair matches using the parser function''' '#ifeq:'. ''' | ||
Line 59: | Line 59: | ||
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --> | ++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --> | ||
</includeonly> | </includeonly> | ||
<noprint> | |||
[[Category:Ifequal]] | |||
</noprint> |
Latest revision as of 14:29, 4 June 2014
- Note page has hidden operative code when viewed directly.
- This template is used to extend the parser function '#ifeq:' to multiple tests.
- The returned string is defined TRUE if any test pair of input parameters satisfies as if presented in any single #ifeq: test.
- The returned value is essentially TRUE OR FALSE— garbage characters OR a null (computer) string, respectively. Thus it is suitable for testing by a simple #if:-then-else conditional on the calling page.
- Applications are generally to display selective text for a set of pages, as in for example, a common usage page for templates, selected by specific page name cases.
- This template takes upto eight pairs of arguments (i.e 16 m:Help:Template|numbered parameters]]), tests the odd verus the even, and returns true if any pair matches using the parser function '#ifeq:'.
- This can be used to test for criteria which may be satisfied by some combination of mulitple magic words, such as {{SITENAME}} or {{PAGENAME}}.
- ifexist:Category:Miscellaneous templates|Category:Miscellaneous templates|Ifequal/doc
- ifexist:Category:if-then-else templates|Category:if-then-else templates|Ifequal/doc
<noprint> </noprint>