Template:Program: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 78: Line 78:


-->{{#if:{{{Related persons|}}}
-->{{#if:{{{Related persons|}}}
     |{{#ask:  
     |{{#arraydefine: positions
        [[-Has subobject::{{PAGENAME}}]]
        |{{#ask:  
        [[Date End::>{{#time:Y/m/d}}]]
          [[-Has subobject::{{PAGENAME}}]]
        <!-- [[Person role::Staff]] -->
          [[Date End::>{{#time:Y/m/d}}]]
        |?Person
          |?Person position
        |?Person position
          |mainlabel=-
        |mainlabel=-
          |headers=hide
        |headers=hide
          |format=array
        |format=plainlist
          |sep=;
         |template=div
        }}
         |intro=
         |;
         |unique, sort=asc
      }}<!--
 
-->{{#ifexpr: {{#arraysize:positions}} > 0|
<div class="moha-infobox-section">
<div class="moha-infobox-section">
<div class="moha-infobox-section-body">
<div class="moha-infobox-section-body">
Line 94: Line 98:
<tr>
<tr>
<td>Current staff</td>
<td>Current staff</td>
<td>
<td></td>
        |outro=
</td>
</tr>
</tr>
}}<!--
-->{{#arrayprint:positions
    |;
    |@@@
    |
<tr>
<td>@@@</td>
<td>{{#ask:
      [[-Has subobject::{{PAGENAME}}]]
      [[Date End::>{{#time:Y/m/d}}]]
      [[Person position::@@@]]
      |?Person
      |format=plainlist
      |template=div
    }}</td>
</tr>
}}
{{#ifexpr: {{#arraysize:positions}} > 0|
</table>
</table>
</div>
</div>
</div>
</div>
      }}
}}<!--
  }}<!--


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

Revision as of 22:08, August 12, 2022