Difference between revisions of "Test Master"
From its-wiki.no
Josef.Noll (Talk | contribs) |
Josef.Noll (Talk | contribs) (→testing if) |
||
Line 2: | Line 2: | ||
=== testing if === | === testing if === | ||
+ | <pre>{{#ifeq:{{{ThesisStatus|}}}|{{{ThesisStatus|-}}}| ThesisStatus was specified (and may be empty) | ThesisStatus was not specified }}</pre> | ||
{{#ifeq:{{{ThesisStatus|}}}|{{{ThesisStatus|-}}}| ThesisStatus was specified (and may be empty) | ThesisStatus was not specified }} | {{#ifeq:{{{ThesisStatus|}}}|{{{ThesisStatus|-}}}| ThesisStatus was specified (and may be empty) | ThesisStatus was not specified }} | ||
+ | |||
+ | {{#if: {{{1|}}} | Parameter 1 - {{{1}}} is defined and non-null/non-empty | Parameter 1 {{{1}}} is not defined, or is defined but null. It contains only empty string(s) or breaking space(s) etc.}} | ||
=== testing ifeq === | === testing ifeq === |
Revision as of 22:07, 17 November 2014
Wiki for ITS | ||||||
---|---|---|---|---|---|---|
|
![]() |
A thesis has the status Planned
testing if
{{#ifeq:{{{ThesisStatus|}}}|{{{ThesisStatus|-}}}| ThesisStatus was specified (and may be empty) | ThesisStatus was not specified }}
ThesisStatus was not specified
Parameter 1 {{{1}}} is not defined, or is defined but null. It contains only empty string(s) or breaking space(s) etc.
testing ifeq
This page tests the if function for selecting a template
{{#ifeq:{{NAMESPACE}}|UNIKUM|Form:UNIKUM_Kollokvie{{!}}Add UNIKUM Kollokvie}}
What is ThesisStatus: Planned -
- {{{ThesisStatus}}} is not executed
- {{ThesisStatus}} points to template Template:ThesisStatus
{{#ifeq:{{{Choose|}}}|true|this is true|this is false}} creates false...
this is false
Testing if
{{#if: {{{ThesisStatus}}}=Planned | yes | no}} - does not work, always yes
yes