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 | ||
|{{#ask: | |||
[[-Has subobject::{{PAGENAME}}]] | |||
[[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-body"> | <div class="moha-infobox-section-body"> | ||
Line 94: | Line 98: | ||
<tr> | <tr> | ||
<td>Current staff</td> | <td>Current staff</td> | ||
<td> | <td></td> | ||
</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|}}}| |