Difference between revisions of "Test Master"
From its-wiki.no
Josef.Noll (Talk | contribs) (→Testing if) |
Josef.Noll (Talk | contribs) |
||
Line 1: | Line 1: | ||
A thesis has the status [[ThesisStatus::Planned]] | A thesis has the status [[ThesisStatus::Planned]] | ||
+ | === testing if === | ||
+ | {{#ifeq:{{{ThesisStatus|}}}|{{{ThesisStatus|-}}}| ThesisStatus was specified (and may be empty) | ThesisStatus was not specified }} | ||
+ | |||
+ | |||
+ | === testing ifeq === | ||
This page tests the if function for selecting a template | This page tests the if function for selecting a template | ||
<pre> | <pre> |
Revision as of 22:05, 17 November 2014
Wiki for ITS | ||||||
---|---|---|---|---|---|---|
|
A thesis has the status Planned
testing if
ThesisStatus was not specified
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