Test-ParserFunctions-in-ExternalData: Difference between revisions

From sandbox
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
=== Current Roster ===
=== Current Roster ===


Test IfExist: {{#ifexist: User:Mharrit1 | Mharrit1 User Page Exists | No User Page]]}}
Test IfExist Outside ExternalData call: {{#ifexist: User:Mharrit1 | Mharrit1 User Page Exists | No User Page]]}}


{{#get_web_data:
{{#get_web_data:
Line 12: Line 12:


{| class="wikitable"
{| class="wikitable"
! Name
! Wiki User Page
! Wiki User Page
! Role
! Test
! Test
{{#for_external_table:<nowiki/>
{{#for_external_table:<nowiki/>
{{!}}-
{{!}}-
{{!}} {{{Name}}}
{{!}}[[User:{{{WikiUsername}}}| {{{WikiUsername}}} Userpage ]]
{{!}}[[User:{{{WikiUsername}}}| {{{WikiUsername}}} Userpage ]]
{{!}} {{#ifexist:User:{{{WikiUsername}}} | YES User Page | NO User Page}}
{{!}} {{{Role}}}
{{!}} {{#ifexist:User:{{{WikiUsername}}} | YES User:{{{WikiUsername}}} | NO User Page}}
}}
}}
|}
|}


{| class="wikitable sortable"
! Role
! First Name
! Last Name
!class=unsortable| Wiki User Page<br> (& Recent Contributions)
!class=unsortable| Email   
{{#for_external_table:<nowiki/>
{{!}}-
{{!}} {{{Role}}}
{{!}} {{{FirstName}}}
{{!}} {{{LastName}}}
{{!}} [[User:{{{WikiUsername}}} |  User Page for {{{WikiUsername}}}]] <br> ([[special:Contributions/{{{WikiUsername}}} | {{{FirstName}}}'s Wiki Contributions ]])
{{!}} [mailto:{{{Email}}} send email ]
}}
|}


====ExternalData without wiki table markup====
====ExternalData without wiki table markup====
{{#for_external_table: Wiki User "{{{WikiUsername}}}" is person "{{{Name}}}" ["{{{Role}}}" "Staff"]  {{#ifeq: "{{{Role}}}" |  "Staff" | "Test True" | "TEST FAILS"}} ({{{Role}}}).<p>}}
{{#for_external_table: Wiki User "{{{WikiUsername}}}" is {{{Role}}} "{{{Name}}}", who is a {{#ifeq: "{{{Role}}}" |  "Manager" | volunteer | non-volunteer ({{{Role}}} != Manager).<p>}}  }}




Line 51: Line 40:
|}
|}


 
ManagerData Template:
{{ManagerData}}
{{ManagerData}}

Revision as of 18:03, 22 May 2020

TEST

Current Roster

Test IfExist Outside ExternalData call: Mharrit1 User Page Exists


Name Wiki User Page Role Test


ExternalData without wiki table markup

Use Display External Table

Name Role BestEmail WikiUsername


ManagerData Template:


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