Template:Program: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(76 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>
Line 123: Line 123:
<div class="moha-infobox-section-body">
<div class="moha-infobox-section-body">
<table>
<table>
{{{Resources|}}}
<tr>
<td>Resources</td>
<td>{{{Resources|}}}</td>
</tr>
</table>
</table>
</div>
</div>
</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>
}}
}}
</div><!--
</div><!--
Line 132: Line 146:
### Article body
### Article body


-->
-->{{#if:{{{Related organizations|}}}|
{{#if:{{{Related organizations|}}}|
== Related organizations ==
== Related organizations ==
<table>
<table>
Line 149: Line 162:
<div class="moha-bottom-table">
<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
}}
</table>
}}<!--


### Events
### Events
Line 154: Line 221:
-->{{#ask:
-->{{#ask:
   [[Category:Events]]
   [[Category:Events]]
   [[Associated Program::{{PAGENAME}}]]
   [[Associated Program::{{#switch:{{PAGENAME}}
    |Games Y'all=~{{#sub:{{PAGENAME}}|0|7}}*
    |#default={{PAGENAME}}
  }}]]
   |?Date Start=Date
   |?Date Start=Date
  |?Total days adjusted=Days
   |?=Event
   |?=Event
   |?Type of Event=Type
   |?Event format=Event format
  |?Event medium=Event medium
   |mainlabel=-
   |mainlabel=-
   |named args=yes
   |named args=yes
Line 170: Line 240:
<tr>
<tr>
   <th>Date</th>
   <th>Date</th>
  <th>Days</th>
   <th>Event</th>
   <th>Event</th>
   <th>Type</th>
   <th>Format</th>
  <th>Medium</th>
</tr>
</tr>
   |outro=</table>
   |outro=</table>
Line 178: Line 248:
   |limit=500
   |limit=500
}}
}}
<table cellspacing="3" class="with-header">
<!--
<tr>
 
<td colspan=2>'''Similar Programs'''</td>
### Articles
</tr>
{{#arraydefine:select
    |{{#ask:
      [[Category:Programs]]
      [[Program type::{{#arrayprint: programtypes
          |{{!}}{{!}}
          |@@@
          |@@@
      }}]]
      [[!{{PAGENAME}}]]
      |format=array
      |sep=;
    }}
    |;
  }}<!--


  -->{{#ifexpr: {{#arraysize:select}} > 0
-->{{#if: {{#ask: [[Category:Published articles]][[Associated Program::{{PAGENAME}}]]}}
        |<tr><td>{{#arrayprint: select
    |<table cellspacing="3" class="with-header border-bottom-0 mt-3"><tr><td>'''Articles'''</td></tr></table>
          |&#32;&middot;&#32;
  }}
          |$$$
{{#ask: [[Category:Published articles]][[Associated Program::{{PAGENAME}}]]
          |[[$$$]]
  |format=table
        }}</td></tr>
  |limit=100
      }}
  |searchlabel=
</table>
  |class=mt-0 w-100 smwtable sortable
</div>
  |headers=plain
</includeonly>
  |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