Template:Program: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(132 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="d-none">
<includeonly><div class="d-none">
{{#set:
{{#set:
|Program name={{FULLPAGENAME}}
|Parent program={{{Parent program|}}}
|Parent program={{{Parent program|}}}
|Program type={{{Program type|}}}|+sep=;
|Program type={{{Program type|}}}|+sep=;
|Program short description={{{Program short description|}}}
|Program image={{#if:{{{Program image|}}}|File:{{PAGENAME:{{{Program image|}}}}}}}
|Program image={{#if:{{{Program image|}}}|File:{{PAGENAME:{{{Program image|}}}}}}}
|Program image caption={{{Program image caption|}}}
|Program image caption={{{Program image caption|}}}
|Program purpose={{{Program purpose|}}}
|Program history={{{Program history|}}}
|Date Start={{{Program start date|}}}
|Date Start={{{Program start date|}}}
|Date End={{{Program end date|}}}
|Date End={{{Program end date|}}}
}}
}}
[[Category:Programs]]
[[Category:Programs]]
{{#if:{{{Program end date|}}}|[[Category:Past Programs]]|[[Category:Current Programs]]}}
__NOTOC__
__NOTOC__
__NOEDITSECTION__
__NOEDITSECTION__
</div>
</div><div id="moha-infobox" class="col-12 col-md-5 col-lg-4 col-xl-3 mb-4 ml-0 ml-md-3 ml-lg-4">
<div id="moha-infobox" class="col-12 col-md-5 col-lg-4 col-xl-3 mb-4 ml-0 ml-md-3 ml-lg-4">
<div class="moha-infobox-section">
<div class="moha-infobox-section">
<div class="moha-infobox-section-header">{{PAGENAME}}</div>
<div class="moha-infobox-section-header">{{PAGENAME}}</div>
<div class="moha-infobox-section-body">
<div class="moha-infobox-section-body">
<div class="moha-infobox-image">
{{#if:{{{Program image|}}}
{{#if:{{{Program image|}}}
   |[[File:{{PAGENAME:{{{Program image|}}}}}|class=img-fluid|540px]]
   |<div class="moha-infobox-image">
  |[[File:Moha.wiki logo.png|class=img-fluid|540px]]
[[File:{{PAGENAME:{{{Program image|}}}}}|class=img-fluid|540px]]
}}
<div class="moha-infobox-image-caption">
<div class="moha-infobox-image-caption">
{{{Program image caption|}}}
{{{Program image caption|}}}
</div>
</div>
</div>
</div>
}}
</div>
</div>
</div>
</div>
<div class="moha-infobox-section">
<div class="moha-infobox-section">
<div class="moha-infobox-section-header">Program Data</div>
<div class="moha-infobox-section-header">Program Info</div>
<div class="moha-infobox-section-body">
<div class="moha-infobox-section-body">
<table>
<table>
Line 48: Line 47:


--><tr>
--><tr>
<td>Program type</td>
<td>Type of Program</td>
<td>{{#arraymap:{{{Program type|}}}
<td>{{#arraymap:{{{Program type|}}}
       |;
       |;
       |@
       |@
       |@
       |{{#queryformlink: form=Program types     
        |link text=@
        |Program types[Program type]=@
        |_run=1
      }}
       |&#32;&middot;&#32;
       |&#32;&middot;&#32;
     }}</td>
     }}</td>
Line 88: Line 91:
   }}|
   }}|
<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 Roles</div>
<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]]
    [[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]]
        |?Person role
      [[Person position::@@@]]
        |mainlabel=-
      |?Person
        |format=plainlist
      |sort=Person
        |template=div staff
      |order=asc
        |link=none
      |mainlabel=-
        |intro=<table><tr><td>{{#ifeq:@@@|Board Member|Leadership|@@@}}</td><td>
      |link=none
        |outro=</td></tr></table>
      |format=plainlist
      }}
      |template=div link to person form
    |
    }}</td>
</tr>
}}
</table>
   }}
   }}
</div>
</div>
</div>
</div>
      }}<!--
}}
}}<!--


-->{{#ask:
-->{{#if: {{{Resources|}}}|
      [[-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">
<div class="moha-infobox-section-header" style="text-align:center">Follow &middot; Contact</div>
<div class="moha-infobox-section-body">
<div class="moha-infobox-section-body">
<table>
<table>
<tr>
<tr>
<td>Current leadership</td>
<td>Resources</td>
<td>
<td>{{{Resources|}}}</td>
      |outro=
</td>
</tr>
</tr>
</table>
</table>
Line 161: Line 132:
}}<!--
}}<!--


-->{{#ask:  
-->{{#ifanon:|
      [[-Has subobject::{{PAGENAME}}]]
<table class="w-100">
      [[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>
<tr>
<td>Current collaborators</td>
<th class="py-2 px-3">{{#formlink: form=Opportunity
<td>
      |link text=+ Add opportunity
       |outro=
       |Opportunity[Associated Program]={{FULLPAGENAME}}
</td>
    }}</th>
</tr>
</tr>
</table>
</table>
</div>
}}
</div>
</div><!--
}}<!--
 
### Article body


### Past staff
-->{{#if:{{{Related organizations|}}}|
== Related organizations ==
<table>
{{{Related organizations|}}}
</table>
}}
<!--


-->{{#if: {{#ask:
### Bottom table
        [[-Has subobject::{{PAGENAME}}]]
        [[Person role::+]]
        [[Date End::<{{#time:Y/m/d}}]]
      }}|
<div class="moha-infobox-section">
<div class="moha-infobox-section-header">Past staff</div>
<div class="moha-infobox-section-body"><!--


-->{{#arraydefine: positions
-->{{#arraydefine: programtypes
  |{{#ask:
    |{{{Program type|}}}
    [[-Has subobject::{{PAGENAME}}]]
     |;
    [[Person role::Staff]]
    [[Date End::<{{#time:Y/m/d}}]]
    |?Person position
    |mainlabel=-
    |headers=hide
    |format=array
     |sep=;
   }}
   }}
  |;
<div class="moha-bottom-table">
  |unique, sort=asc
<!--
}}<!--
 
### Opportunities
 
-->{{#if: {{#ask: [[Category:Current Opportunities]][[Associated Program::{{#switch:{{PAGENAME}}
            |Games Y'all=~{{#sub:{{PAGENAME}}|0|7}}*
            |#default={{PAGENAME}}
          }}]][[Opportunity end date::>>{{#time:Y/m/d|now}}]][[Opportunity start date::<{{#time:Y/m/d|now}}]]
        }}<!-- -->{{#ask: [[Category:Rolling Opportunities]][[Associated Program::{{#switch:{{PAGENAME}}
            |Games Y'all=~{{#sub:{{PAGENAME}}|0|7}}*
            |#default={{PAGENAME}}
          }}]]
        }}|<!--


-->{{#ifexpr: {{#arraysize:positions}} > 0|
--><table cellspacing="3" class="with-header border-bottom-0"><tr><td>'''Current Opportunities'''</td></tr></table>
<table>
<table cellspacing="3" class="sortable bg-white mb-3 border-top-0">
{{#arrayprint:positions
    |
    |@@@
    |
<tr>
<tr>
<td>@@@</td>
  <th>Opportunity</th>
<td>{{#ask:  
  <th>Description</th>
      [[-Has subobject::{{PAGENAME}}]]
  <th>Type</th>
      [[Date End::<{{#time:Y/m/d}}]]
</tr><!--
      [[Person role::Staff]]
 
      [[Person position::@@@]]
-->{{#ask: [[Category:Current Opportunities]][[Associated Program::{{#switch:{{PAGENAME}}
      |?Person
    |Games Y'all=~{{#sub:{{PAGENAME}}|0|7}}*
      |sort=Person
    |#default={{PAGENAME}}
      |order=asc
  }}]][[Opportunity end date::>>{{#time:Y/m/d|now}}]][[Opportunity start date::<{{#time:Y/m/d|now}}]]
      |mainlabel=-
  |mainlabel=Opportunity
      |link=none
  |?Opportunity format=Opportunity format
      |format=plainlist
  |?Opportunity short description
      |template=div link to person form
  |sort=Opportunity end date
     }}</td>
  |order=asc
</tr>
  |named args=yes
  |format=plainlist
  |headers=plain
  |limit=500
  |searchlabel=
  |link=none
  |template=Opportunity list row
}}<!-- -->{{#ask: [[Category:Rolling Opportunities]][[Associated Program::{{#switch:{{PAGENAME}}
    |Games Y'all=~{{#sub:{{PAGENAME}}|0|7}}*
     |#default={{PAGENAME}}
  }}]]
  |mainlabel=Opportunity
  |?Opportunity format=Opportunity format
  |?Opportunity short description
  |named args=yes
  |format=plainlist
  |headers=plain
  |limit=500
  |searchlabel=
  |link=none
  |template=Opportunity list row
}}
}}
</table>
</table>
  }}
}}<!--
</div>
</div>
      }}<!--


-->{{#ask:
### Events
      [[-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:  
-->{{#ask:
      [[-Has subobject::{{PAGENAME}}]]
  [[Category:Events]]
      [[Date End::<{{#time:Y/m/d}}]]
  [[Associated Program::{{#switch:{{PAGENAME}}
      [[Person role::Collaborator]]
    |Games Y'all=~{{#sub:{{PAGENAME}}|0|7}}*
      |?Person
    |#default={{PAGENAME}}
      |sort=Person
  }}]]
      |order=asc
  |?Date Start=Date
      |mainlabel=-
  |?=Event
      |link=none
  |?Event format=Event format
      |format=plainlist
  |?Event medium=Event medium
      |template=div link to person form
  |mainlabel=-
      |intro=
  |named args=yes
<div class="moha-infobox-section">
  |sort=Date Start
<div class="moha-infobox-section-body">
  |order=desc
<table>
  |format=plainlist
  |template=Event list row
  |link=none
  |intro=<table cellspacing="3" class="with-header border-bottom-0"><tr><td>'''Events'''</td></tr></table>
<table cellspacing="3" class="sortable mb-3 border-top-0">
<tr>
<tr>
<td>Past collaborators</td>
  <th>Date</th>
<td>
  <th>Event</th>
      |outro=
  <th>Format</th>
</td>
  <th>Medium</th>
</tr>
</tr>
</table>
  |outro=</table>
</div>
  |headers=plain
</div>
  |limit=500
}}
}}
}}<!--
<!--


-->{{#if: {{{Resources|}}}|
### Articles
<div class="moha-infobox-section">
<div class="moha-infobox-section-header" style="text-align:center">Follow &middot; Contact</div>
<div class="moha-infobox-section-body">
<table>
{{{Resources|}}}
</table>
</div>
</div>
}}
</div><!--


### Article body
-->{{#if: {{#ask: [[Category:Published articles]][[Associated Program::{{PAGENAME}}]]}}
 
    |<table cellspacing="3" class="with-header border-bottom-0 mt-3"><tr><td>'''Articles'''</td></tr></table>
-->
  }}
{{#if:{{{Program purpose|}}}|
{{#ask: [[Category:Published articles]][[Associated Program::{{PAGENAME}}]]
== Program purpose ==
  |format=table
{{{Program purpose|}}}
  |limit=100
}}<!--
  |searchlabel=
 
  |class=mt-0 w-100 smwtable sortable
-->
  |headers=plain
{{#if:{{{Program history|}}}|
  |mainlabel=-
== Program history ==
  |?Date Published#-F[m.d.y]=Date
{{{Program history|}}}
  |?=Title
}}<!--
  |?Article author=Author(s)
 
  |?Additional category=Category
-->
}}</div></includeonly>
{{#if:{{{Related persons|}}}|
== Related persons ==
<table>
{{{Related persons|}}}
</table>
}}<!--
 
-->
{{#if:{{{Related organizations|}}}|
== Related organizations ==
<table>
{{{Related organizations|}}}
</table>
}}
</includeonly>

Latest revision as of 19:45, September 13, 2024