Difference between revisions of "Test Master"

From its-wiki.no
Jump to: navigation, search
Line 5: Line 5:
 
{{#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:  {{Thesis|ThesisStatus=Planned}} | Thesis status planned | Thesis status something else }}
+
{{#if:  {{Thesis|ThesisStatus=Ongoing}} | Thesis status planned | Thesis status something else }}
  
 
{{#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.}}
 
{{#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.}}

Revision as of 22:12, 17 November 2014

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

Thesis status planned

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