Template:Program: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(37 intermediate revisions by 2 users not shown)
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">
<table class="w-100">
<tr>
<tr>
Line 136: Line 141:
</tr>
</tr>
</table>
</table>
}}
</div><!--
</div><!--


Line 159: Line 165:
### Opportunities
### Opportunities


-->{{#ask: [[Category:Opportunities]][[Associated Program::{{#switch:{{PAGENAME}}
-->{{#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}}*
     |Games Y'all=~{{#sub:{{PAGENAME}}|0|7}}*
     |#default={{PAGENAME}}
     |#default={{PAGENAME}}
   }}]]
   }}]]
   |mainlabel=Opportunity
   |mainlabel=Opportunity
   |?Opportunity type=Opportunity type
   |?Opportunity format=Opportunity format
   |?Opportunity short description
   |?Opportunity short description
   |named args=yes
   |named args=yes
Line 173: Line 213:
   |link=none
   |link=none
   |template=Opportunity list row
   |template=Opportunity list row
  |intro=<table cellspacing="3" class="with-header border-bottom-0"><tr><td>'''Opportunities'''</td></tr></table>
<table cellspacing="3" class="sortable mb-3 border-top-0">
<tr>
  <th>Opportunity</th>
  <th>Description</th>
  <th>Type</th>
</tr>
  |outro=</table>
}}
}}
<!--
</table>
}}<!--


### Events
### Events
Line 193: Line 226:
   }}]]
   }}]]
   |?Date Start=Date
   |?Date Start=Date
  |?Total days adjusted=Days
   |?=Event
   |?=Event
   |?Type of Event=Event type
   |?Event format=Event format
  |?Event medium=Event medium
   |mainlabel=-
   |mainlabel=-
   |named args=yes
   |named args=yes
Line 208: Line 241:
   <th>Date</th>
   <th>Date</th>
   <th>Event</th>
   <th>Event</th>
   <th>Type</th>
   <th>Format</th>
  <th>Medium</th>
</tr>
</tr>
   |outro=</table>
   |outro=</table>
Line 214: 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></div></includeonly>
  |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