courseProfessor macro

courseProfessor macro

  • inline
    • yes
  • content
    • mandatory
      • “Course” reference
  • parameters
    • linked — professors are displayed with a link to their profile
      • admissible values: true ( true | yes | y | vero | v | 1 ) / false ( false | no | n | falso | 0 )
      • default: true 
    • output — the way in which names are going to be displayed
      • admissible values:  comma / list / lines / dash / bar 
        • comma displays a comma-separated list of names
        • list displays an actual list of names
        • lines displays names in different lines
        • dash displays a dashed list of name
        • bar displays a bar-separated list of names
      • default: comma 

Examples

{{courseProfessor}} Course.Ia9697M2.WebHome {{/courseProfessor}}
{{courseProfessor linked=false}} Sd2122 {{/courseProfessor}}

Document “Courses.Sd2122” does not exist

{{courseProfessor linked='yes'}} PsiLs0708 {{/courseProfessor}}

Document “Courses.PsiLs0708” does not exist

{{courseProfessor output='dash'}} PsiLs0708 {{/courseProfessor}}

Document “Courses.PsiLs0708” does not exist

{{courseProfessor output='list'}} PsiLs0708 {{/courseProfessor}}

Document “Courses.PsiLs0708” does not exist

{{courseProfessor output='list'}} SeDtm2122M1 {{/courseProfessor}}

Document “Courses.SeDtm2122M1” does not exist

Counterexamples

{{courseProfessor/}}

Macro courseProfessor needs a “Course” document as its content

{{courseProfessor}}{{/courseProfessor}}

Macro courseProfessor needs a “Course” document as its content

{{courseProfessor}}pippo{{/courseProfessor}}

Document “Courses.pippo” does not exist

{{courseProfessor}} Courses.pippo  {{/courseProfessor}}

Document “Courses.pippo” does not exist

{{courseProfessor}} Publications.2pktJelia2021 {{/courseProfessor}}

Document “Publications.2pktJelia2021” does not exist