Template:Program: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(187 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="d-none">
<includeonly><div class="d-none">
{{#set:
{{#set:
|Type of Program={{{Type of Program|}}}
|Program name={{FULLPAGENAME}}
|Program description={{{Program description|}}}
|Parent program={{{Parent program|}}}
|Parent program={{{Parent program|}}}
|Program board member={{{Program board members|}}}|+sep=;
|Program type={{{Program type|}}}|+sep=;
|Program staff={{{Program staff|}}}|+sep=;
|Program short description={{{Program short description|}}}
|Program sponsor={{{Program sponsors|}}}|+sep=;
|Program image={{#if:{{{Program image|}}}|File:{{PAGENAME:{{{Program image|}}}}}}}
|Program image caption={{{Program image caption|}}}
|Date Start={{{Program start 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 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-header">{{PAGENAME}}</div>
<div class="moha-infobox-section-body">
{{#if:{{{Program image|}}}
  |<div class="moha-infobox-image">
[[File:{{PAGENAME:{{{Program image|}}}}}|class=img-fluid|540px]]
<div class="moha-infobox-image-caption">
{{{Program image caption|}}}
</div>
</div>
== Description ==
</div>
'''Type: {{{Type of Program|}}}'''
}}
{{#if:{{{Program description|}}}|
</div>
:{{{Program description|}}}
</div>
<div class="moha-infobox-section">
<div class="moha-infobox-section-header">Program Info</div>
<div class="moha-infobox-section-body">
<table>
{{#if: {{{Program start date|}}}|
<tr>
<td>Date start</td>
<td>{{#time: M Y|{{{Program start date|}}}}}</td>
</tr>
}}<!--
 
-->{{#if: {{{Program end date|}}}|
<tr>
<td>Date end</td>
<td>{{#time: M Y|{{{Program end date|}}}}}</td>
</tr>
}}<!--
}}<!--
--><tr>
<td>Type of Program</td>
<td>{{#arraymap:{{{Program type|}}}
      |;
      |@
      |{{#queryformlink: form=Program types     
        |link text=@
        |Program types[Program type]=@
        |_run=1
      }}
      |&#32;&middot;&#32;
    }}</td>
</tr><!--


-->{{#if: {{{Parent program|}}}|
-->{{#if: {{{Parent program|}}}|
'''Parent program''': [[{{{Parent program|}}}]]
<tr>
<td>Parent program</td>
<td>[[{{{Parent program|}}}]]</td>
</tr>
}}<!--
 
-->{{#ask:
    [[Category:Programs]]
    [[Parent program::{{PAGENAME}}]]
    |format=plainlist
    |template=div
    |intro=<tr><td>Sub-programs</td><td>
    |outro=</td></tr>
  }}<!--
 
--></table>
</div>
</div><!--
 
-->{{#if:{{{Related persons|}}}
    |<!--
 
### Current staff
 
-->{{#if: {{#ask:
    [[-Has subobject::{{PAGENAME}}]]
    [[Person role::+]]
    [[Date End::>{{#time:Y/m/d}}]]
  }}|
<div class="moha-infobox-section">
<div class="moha-infobox-section-header">Current Roles</div>
<div class="moha-infobox-section-body"><!--
 
-->{{#arraymap: {{#show: Property:Person role |?Allows value}}
    |,
    |@@@
    |{{#ask:
        [[-Has subobject::{{PAGENAME}}]]
        [[Person role::@@@]]
        [[Date End::>{{#time:Y/m/d}}]]
        |?Person
        |?Person position
        |?Person role
        |mainlabel=-
        |format=plainlist
        |template=div staff
        |link=none
        |intro=<table><tr><td>{{#ifeq:@@@|Board Member|Leadership|@@@}}</td><td>
        |outro=</td></tr></table>
      }}
    |
  }}
</div>
</div>
}}
}}<!--
 
-->{{#if: {{{Resources|}}}|
<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>
<tr>
<td>Resources</td>
<td>{{{Resources|}}}</td>
</tr>
</table>
</div>
</div>
}}<!--
 
-->{{#ifanon:|
<table class="w-100">
<tr>
<th class="py-2 px-3">{{#formlink: form=Opportunity
      |link text=+ Add opportunity
      |Opportunity[Associated Program]={{FULLPAGENAME}}
    }}</th>
</tr>
</table>
}}
}}
{{#arraymap: Program board members, Program staff, Program sponsors
</div><!--
  |,
 
  |@
### Article body
  |{{#if: {{{@|}}}
 
    |
-->{{#if:{{{Related organizations|}}}|
== @ ==
== Related organizations ==
{{#arraydefine: x|{{{@|}}}|;|unique}}{{#arrayprint: x
<table>
  |,&#32;
{{{Related organizations|}}}
  |$$
</table>
  |[[$$]]
}}
}}
<!--
### Bottom table
-->{{#arraydefine: programtypes
    |{{{Program type|}}}
    |;
   }}
   }}
   |\n
<div class="moha-bottom-table">
<!--
 
### 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}}
          }}]]
        }}|<!--
 
--><table cellspacing="3" class="with-header border-bottom-0"><tr><td>'''Current Opportunities'''</td></tr></table>
<table cellspacing="3" class="sortable bg-white mb-3 border-top-0">
<tr>
  <th>Opportunity</th>
  <th>Description</th>
  <th>Type</th>
</tr><!--
 
-->{{#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}}]]
  |mainlabel=Opportunity
  |?Opportunity format=Opportunity format
  |?Opportunity short description
  |sort=Opportunity end date
  |order=asc
  |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
}}
}}
{{#if:{{{Resources|}}}
</table>
    |
}}<!--
== Resources ==
 
<ul>
### Events
{{{Resources|}}}
 
</ul>
-->{{#ask:
  [[Category:Events]]
  [[Associated Program::{{#switch:{{PAGENAME}}
    |Games Y'all=~{{#sub:{{PAGENAME}}|0|7}}*
    |#default={{PAGENAME}}
  }}]]
  |?Date Start=Date
  |?=Event
  |?Event format=Event format
  |?Event medium=Event medium
  |mainlabel=-
  |named args=yes
  |sort=Date Start
  |order=desc
  |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>
  <th>Date</th>
  <th>Event</th>
  <th>Format</th>
  <th>Medium</th>
</tr>
  |outro=</table>
  |headers=plain
  |limit=500
}}
}}
</includeonly>
<!--
 
### Articles
 
-->{{#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>
  }}
{{#ask: [[Category:Published articles]][[Associated Program::{{PAGENAME}}]]
  |format=table
  |limit=100
  |searchlabel=
  |class=mt-0 w-100 smwtable sortable
  |headers=plain
  |mainlabel=-
  |?Date Published#-F[m.d.y]=Date
  |?=Title
  |?Article author=Author(s)
  |?Additional category=Category
}}</div></includeonly>

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