Template:Program: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 106: Line 106:
       }}
       }}
     |
     |
}}<!--
-->{{#arraydefine: positions
  |{{#ask:
    [[-Has subobject::{{PAGENAME}}]]
    [[Person role::@]]
    [[Date End::>{{#time:Y/m/d}}]]
    |?Person position
    |mainlabel=-
    |headers=hide
    |format=array
    |sep=;
  }}
  |;
  |unique, sort=asc
}}<!--
-->{{#ifexpr: {{#arraysize:positions}} > 0|
<table>
{{#arrayprint:positions
    |
    |@@@
    |
<tr>
<td>@@@</td>
<td>{{#ask:
      [[-Has subobject::{{PAGENAME}}]]
      [[Date End::>{{#time:Y/m/d}}]]
      [[Person role::Staff||Intern]]
      [[Person position::@@@]]
      |?Person
      |sort=Person
      |order=asc
      |mainlabel=-
      |link=none
      |format=plainlist
      |template=div link to person form
    }}</td>
</tr>
}}
</table>
   }}
   }}
</div>
</div>
</div>
</div><!--
      }}<!--
 
-->{{#ask:
      [[-Has subobject::{{PAGENAME}}]]
      [[Date End::>{{#time:Y/m/d}}]]
      [[Person role::Board Member]]
      |?Person
      |sort=Person
      |order=asc
      |mainlabel=-
      |link=none
      |format=plainlist
      |template=div link to person form
      |intro=
<div class="moha-infobox-section">
<div class="moha-infobox-section-body">
<table>
<tr>
<td>Current leadership</td>
<td>
      |outro=
</td>
</tr>
</table>
</div>
</div>
}}<!--
 
-->{{#ask:
      [[-Has subobject::{{PAGENAME}}]]
      [[Date End::>{{#time:Y/m/d}}]]
      [[Person role::Collaborator]]
      |?Person
      |sort=Person
      |order=asc
      |mainlabel=-
      |link=none
      |format=plainlist
      |template=div link to person form
      |intro=
<div class="moha-infobox-section">
<div class="moha-infobox-section-body">
<table>
<tr>
<td>Current collaborators</td>
<td>
      |outro=
</td>
</tr>
</table>
</div>
</div>
}}<!--


### Past roles
### Past roles
Line 215: Line 121:
<div class="moha-infobox-section-body"><!--
<div class="moha-infobox-section-body"><!--


-->{{#arraydefine: positions
-->{{#arraymap: {{#show: Property:Person role |?Allows value}}
  |{{#ask:  
     |,
    [[-Has subobject::{{PAGENAME}}]]
    [[Person role::Staff||Intern]]
    [[Date End::<{{#time:Y/m/d}}]]
     |?Person position
    |mainlabel=-
    |headers=hide
    |format=array
    |sep=;
  }}
  |;
  |unique, sort=asc
}}<!--
 
-->{{#ifexpr: {{#arraysize:positions}} > 0|
<table>
{{#arrayprint:positions
    |
     |@@@
     |@@@
     |
     |{{#ask:  
<tr>
        [[-Has subobject::{{PAGENAME}}]]
<td>@@@</td>
        [[Person role::@@@]]
<td>{{#ask:  
        [[Date End::<{{#time:Y/m/d}}]]
      [[-Has subobject::{{PAGENAME}}]]
        |?Person
      [[Date End::<{{#time:Y/m/d}}]]
        |?Person position
      [[Person role::Staff||Intern]]
        |mainlabel=-
      [[Person position::@@@]]
        |format=plainlist
      |?Person
        |template=div staff
      |sort=Person
        |intro=<table><tr><td>{{#ifeq:@@@|Board Member|Leadership|@@@}}</td><td>
      |order=asc
        |outro=</td></tr></table>
      |mainlabel=-
      }}
      |link=none
    |
      |format=plainlist
      |template=div link to person form
    }}</td>
</tr>
}}
</table>
   }}
   }}
</div>
</div>
</div>
</div><!--
      }}<!--
 
-->{{#ask:
      [[-Has subobject::{{PAGENAME}}]]
      [[Date End::<{{#time:Y/m/d}}]]
      [[Person role::Board Member]]
      |?Person
      |sort=Person
      |order=asc
      |mainlabel=-
      |link=none
      |format=plainlist
      |template=div link to person form
      |intro=
<div class="moha-infobox-section">
<div class="moha-infobox-section-body">
<table>
<tr>
<td>Past leadership</td>
<td>
      |outro=
</td>
</tr>
</table>
</div>
</div>
}}<!--
 
-->{{#ask:
      [[-Has subobject::{{PAGENAME}}]]
      [[Date End::<{{#time:Y/m/d}}]]
      [[Person role::Collaborator]]
      |?Person
      |sort=Person
      |order=asc
      |mainlabel=-
      |link=none
      |format=plainlist
      |template=div link to person form
      |intro=
<div class="moha-infobox-section">
<div class="moha-infobox-section-body">
<table>
<tr>
<td>Past collaborators</td>
<td>
      |outro=
</td>
</tr>
</table>
</div>
</div>
}}
}}<!--


-->{{#if: {{{Resources|}}}|
-->{{#if: {{{Resources|}}}|

Revision as of 12:33, August 15, 2022