Template:Program: Difference between revisions

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


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


-->{{#arrayprint:positions
-->{{#ifexpr: {{#arraysize:positions}} > 0|
<table>
{{#arrayprint:positions
     |
     |
     |@@@
     |@@@
Line 121: Line 125:
</tr>
</tr>
}}
}}
{{#ifexpr: {{#arraysize:positions}} > 0|
</table>
</table>
  }}
</div>
</div>
</div>
</div>
}}
      }}<!--
}}<!--


-->{{#ask:  
-->{{#ask:  
Line 152: Line 155:
</div>
</div>
</div>
</div>
}}
}}<!--
}}<!--



Revision as of 22:49, August 12, 2022