Template:Program: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
Line 78: | Line 78: | ||
-->{{#if:{{{Related persons|}}} | -->{{#if:{{{Related persons|}}} | ||
|{{# | |{{#if: {{#ask: | ||
[[-Has subobject::{{PAGENAME}}]] | |||
[[Person role::+]] | |||
[[Date End::>{{#time:Y/m/d}}]] | |||
}}| | |||
}} | |||
<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"><!-- | ||
-->{{#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> | ||
}} | }} | ||
</table> | </table> | ||
}} | |||
</div> | </div> | ||
</div> | </div> | ||
}}<!-- | |||
}}<!-- | |||
-->{{#ask: | -->{{#ask: | ||
Line 152: | Line 155: | ||
</div> | </div> | ||
</div> | </div> | ||
}} | |||
}}<!-- | }}<!-- | ||