Test-ParserFunctions-in-ExternalData: Difference between revisions

From sandbox
Jump to navigation Jump to search
Line 33: Line 33:


====ExternalData without wiki table markup====
====ExternalData without wiki table markup====
{{#for_external_table: {{ #if: {{{Role|}}} | Role  is defined and non-empty | Role is undefined or empty}}. {{ #ifeq: {{{Role|+}}} | {{{Role|-}}} | Role is defined | Role is undefined }}. Wiki User "{{{WikiUsername}}}" is {{{Role}}} "{{{Name}}}", who is a {{#ifeq: "{{{Role}}}" |  "Manager" | volunteer  | non-volunteer ({{{Role}}} != Manager).<p>}}  }}
{{#for_external_table: {{{ManagerDataNoTable}}}  }}
 


====Use Display External Table ====
====Use Display External Table ====

Revision as of 21:58, 23 May 2020

TEST

Current Roster

Test Ifeq & Ifexist Outside ExternalData call, with no variables:

  Test Ifeq: Result is....  Mharrit1 = Mharrit1
  Test IfExist: Result is.... Mharrit1 User Page Exists

Test ifexist in an ExternalData call:

Name Wiki User Page Role Test


ExternalData without wiki table markup

Use Display External Table

Name Role Wiki User Page Email WikiUsername


ManagerData Template:


|- | {{{Role}}} | {{{FirstName}}} | {{{LastName}}} | User:{{{WikiUsername}}} (Page not created)
([[special:Contributions/{{{WikiUsername}}} | {{{FirstName}}}'s Wiki Contributions]]) | send email