Template:Opportunity: Difference between revisions
From MoHA Wiki
No edit summary |
mNo edit summary |
||
(56 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
{{#set: | {{#set: | ||
|Opportunity name={{#if:{{{Opportunity display name|}}}|{{{Opportunity display name|}}}|{{FULLPAGENAME}}}} | |Opportunity name={{#if:{{{Opportunity display name|}}}|{{{Opportunity display name|}}}|{{FULLPAGENAME}}}} | ||
|Opportunity | |Opportunity wiki link={{FULLPAGENAME}} | ||
|Opportunity format={{{Opportunity format|}}}|+sep=; | |||
|Opportunity short description={{{Opportunity short description|}}} | |||
|Opportunity description={{{Opportunity description|}}} | |Opportunity description={{{Opportunity description|}}} | ||
|Opportunity image={{#if:{{{Opportunity image|}}}|File:{{PAGENAME:{{{Opportunity image|}}}}}}} | |||
|Opportunity image caption={{{Opportunity image caption|}}} | |||
|Opportunity link={{{Opportunity link|}}} | |Opportunity link={{{Opportunity link|}}} | ||
| | |Opportunity link text={{{Opportunity link text|}}} | ||
| | |Opportunity second link={{{Opportunity second link|}}} | ||
|Opportunity second link text={{{Opportunity second link text|}}} | |||
|Opportunity display order={{{Opportunity display order|}}} | |||
|Opportunity start date={{{Opportunity start date|}}} | |||
|Opportunity end date={{{Opportunity end date|}}} | |||
|Opportunity compensation={{{Opportunity compensation|}}} | |||
|Opportunity compensation type={{{Opportunity compensation type|}}} | |||
|Juror={{{Jurors|}}}|+sep=; | |Juror={{{Jurors|}}}|+sep=; | ||
|Associated Program={{{Associated Program|}}}|+sep=; | |Associated Program={{{Associated Program|}}}|+sep=; | ||
|Opportunity scope={{{Opportunity scope|}}} | |||
|Associated Event={{{Associated Event|}}}|+sep=; | |Associated Event={{{Associated Event|}}}|+sep=; | ||
|Presented by={{{Presented by|}}}|+sep=; | |Presented by={{{Presented by|}}}|+sep=; | ||
}} | }} | ||
[[Category:Opportunities]] | {{#arraymap:{{{Opportunity format|}}} | ||
|; | |||
|@@@ | |||
|{{#arraymap: Communication, Support, Application | |||
|, | |||
|^^^ | |||
|{{#arraymap:{{:Project:Opportunity type/^^^}}|\n|$$$|{{#ifeq:@@@|$$$|{{#set: Opportunity type=^^^}}}}|}} | |||
| | |||
}} | |||
| | |||
}} | |||
[[Category:Opportunities]]{{#ifeq:{{{Opportunity scope|}}}|Cross-event|[[Category:Cross-event opportunities]]}} | |||
{{#ifexpr: 0{{#time: Ymd|{{{Opportunity start date|}}}}}<={{#time: Ymd|now}} and 0{{#time: Ymd|{{{Opportunity end date|}}}}}>={{#time: Ymd|now}} | |||
| [[Category:Current Opportunities]] | |||
| {{#ifexpr: {{#time: Ymd|{{{Opportunity start date|}}}}}>{{#time: Ymd|now}} | |||
| [[Category:Upcoming Opportunities]] | |||
}} {{#ifexpr: {{#time: Ymd|{{{Opportunity end date|}}}}}<{{#time: Ymd|now}} | |||
| [[Category:Past Opportunities]] | |||
}} | |||
}} | |||
{{#if: {{{Opportunity end date|}}}||[[Category:Rolling Opportunities]]}} | |||
{{#if: {{{Opportunity display name|}}}|{{DISPLAYTITLE: {{{Opportunity display name|}}}}}}} | {{#if: {{{Opportunity display name|}}}|{{DISPLAYTITLE: {{{Opportunity display name|}}}}}}} | ||
__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">Opportunity Info</div> | <div class="moha-infobox-section-header">Opportunity Info</div> | ||
<div class="moha-infobox-section-body"> | <div class="moha-infobox-section-body"> | ||
<table> | {{#if:{{{Opportunity image|}}} | ||
|<div class="moha-infobox-image"> | |||
[[File:{{PAGENAME:{{{Opportunity image|}}}}}|class=img-fluid|540px]] | |||
<div class="moha-infobox-image-caption"> | |||
{{{Opportunity image caption|}}} | |||
</div> | |||
</div> | |||
}} | |||
<table class="border-0"> | |||
<tr> | <tr> | ||
<td>Name</td> | <td>Name</td> | ||
<td>{{#if:{{{Opportunity display name|}}}|{{{Opportunity display name|}}}|{{FULLPAGENAME}}}}</td> | <td>{{#if:{{{Opportunity display name|}}}|{{{Opportunity display name|}}}|{{FULLPAGENAME}}}}</td> | ||
</tr> | </tr> | ||
{{# | {{#ifeq: {{{Has application window|}}} | ||
|{{{Opportunity start date|}}} | |Yes | ||
<tr> | |{{#if: {{{Opportunity start date|}}} | ||
<td> | |<tr> | ||
<td>{{#time: M j, Y|{{{Opportunity start date|}}}}}</td> | <td>Application Opens</td> | ||
</tr> | <td>{{#time: M j, Y|{{{Opportunity start date|}}}}}</td> | ||
</tr> | |||
<tr> | }}<!-- | ||
<td> | |||
<td>{{#time: M j, Y|{{{Opportunity | -->{{#if: {{{Opportunity end date|}}} | ||
</tr> | |<tr> | ||
<td>Deadline</td> | |||
<tr> | <td>{{#time: M j, Y|{{{Opportunity end date|}}}}}</td> | ||
<td> | </tr> | ||
<td> | }} | ||
</tr> | |<tr> | ||
<td>Deadline</td> | |||
<td>Rolling</td> | |||
</tr> | |||
}}<!-- | }}<!-- | ||
--><tr> | --><tr> | ||
<td>Type</td> | <td>Type</td> | ||
<td>{{#arraymap:{{{Opportunity | <td>{{#arraymap:{{{Opportunity format|}}} | ||
|; | |; | ||
|@ | |@ | ||
|{{#queryformlink: form=Opportunity | |{{#queryformlink: form=Opportunity formats | ||
|link text=@ | |link text=@ | ||
|Opportunity | |Opportunity formats[Opportunity format]=@ | ||
|_run=1 | |_run=1 | ||
}} | }} | ||
Line 61: | Line 98: | ||
}}</td> | }}</td> | ||
</tr><!-- | </tr><!-- | ||
-->{{#if: {{{Opportunity compensation type|}}}{{{Opportunity compensation|}}} | |||
|<tr> | |||
<td>Compensation</td> | |||
<td>{{#if: {{{Opportunity compensation|}}} | |||
|{{{Opportunity compensation|}}} {{#if:{{{Opportunity compensation type|}}}|({{{Opportunity compensation type|}}})}} | |||
|{{{Opportunity compensation type|}}} | |||
}} | |||
</td> | |||
</tr> | |||
}}<!-- | |||
-->{{#if: {{{Opportunity link|}}}| | -->{{#if: {{{Opportunity link|}}}| | ||
<tr> | <tr> | ||
<td>Link</td> | <td>Link</td> | ||
<td>{{#if: {{{Opportunity link text|}}}|[{{{Opportunity link|}}} {{{Opportunity link text|}}}]|{{{Opportunity link|}}}}}</td> | <td>{{#if: {{{Opportunity link text|}}}|<span class="moha-button">[{{{Opportunity link|}}} {{{Opportunity link text|}}}]</span>|{{{Opportunity link|}}}}}</td> | ||
</tr> | |||
}}<!-- | |||
-->{{#if: {{{Opportunity second link|}}}| | |||
<tr> | |||
<td>Link</td> | |||
<td>{{#if: {{{Opportunity second link text|}}}|<span class="moha-button">[{{{Opportunity second link|}}} {{{Opportunity second link text|}}}]</span>|{{{Opportunity second link|}}}}}</td> | |||
</tr> | </tr> | ||
}}<!-- | }}<!-- | ||
Line 71: | Line 126: | ||
--></table> | --></table> | ||
</div> | </div> | ||
</div>{{#if: {{{Jurors|}}}{{{Associated Program|}}}{{{Associated Event|}}}{{{Presented by|}}}| | </div> | ||
<!-- | |||
{{#if: {{{Jurors|}}}{{{Associated Program|}}}{{{Associated Event|}}}{{{Presented by|}}}| | |||
<div class="moha-infobox-section"> | <div class="moha-infobox-section"> | ||
<div class="moha-infobox-section-header"> | <div class="moha-infobox-section-header">Details</div> | ||
<div class="moha-infobox-section-body"> | <div class="moha-infobox-section-body"> | ||
<table> | <table> | ||
Line 92: | Line 149: | ||
{{#if: {{{Associated Event|}}} | {{#if: {{{Associated Event|}}} | ||
|<tr> | |<tr> | ||
<td>Associated Event</td> | |||
<td><ul>{{#arraymap: {{{Associated Event|}}} | |||
|; | |; | ||
|@ | |@ | ||
Line 100: | Line 157: | ||
|existing page link text=@ | |existing page link text=@ | ||
|target=@ | |target=@ | ||
}}</li>{{#vardefine: prog|{{#var: prog}};{{#show:@|?Associated Program}}}} | }}<br>{{#show: @|?Date Start#-F[M j, Y]}}{{#switch: {{#show: @|?Date End#-F[Y-m-d]}} | ||
|{{#show: @|?Date Start#-F[Y-m-d]}} = | |||
|= – rolling | |||
|#default= – {{#show: @|?Date End#-F[M j, Y]}} | |||
}}</li>{{#vardefine: prog|{{#var: prog}};{{#show:@|?Associated Program}}}}{{#arraydefine:progs|{{#var: prog}}|;|unique}} | |||
| | | | ||
}}</ul> | }}</ul> | ||
</td> | |||
</tr>{{#ifexpr: 0{{#arraysize: progs}} > 0 | </tr>{{#ifexpr: 0{{#arraysize: progs}} > 0 | ||
|<tr> | |<tr> | ||
<td>Associated Program</td> | |||
<td><ul> | |||
{{#arrayprint: progs | {{#arrayprint: progs | ||
| | | | ||
|@ | |@ | ||
|<li>{{# | |<li>{{#if: {{#show: @|?Modification date}} | ||
| | |[[@]] | ||
| | |{{#formlink: form=Program | ||
|link text=@ | |||
}}{{#set: Associated Program=@}}<br>{{#show: @|?Date Start#-F[M Y]}} | |target=@ | ||
}} | |||
|{{#show: @|?Date Start#-F[Y-m-d]}} = | }}{{#set: Associated Program=@}}<br>{{#show: @|?Date Start#-F[M Y]}}{{#switch: {{#show: @|?Date End#-F[Y-m-d]}} | ||
|{{#show: @|?Date Start#-F[Y-m-d]}} = | |||
|= – rolling | |= – rolling | ||
|#default= – {{#show: @|?Date End#-F[M Y]}} | |#default= – {{#show: @|?Date End#-F[M Y]}} | ||
}}</li> | |||
}} | }} | ||
</ul></td> | |||
</tr> | </tr> | ||
}} | }} | ||
Line 133: | Line 193: | ||
|; | |; | ||
|@ | |@ | ||
|<li>{{# | |<li>{{#if: {{#show: @|?Modification date}} | ||
| | |[[@]] | ||
| | |{{#formlink: form=Program | ||
|link text=@ | |||
}}<br>{{#show: @|?Date Start#-F[M Y]}} | |target=@ | ||
}} | |||
}}<br>{{#show: @|?Date Start#-F[M Y]}}{{#switch: {{#show: @|?Date End#-F[Y-m-d]}} | |||
|{{#show: @|?Date Start#-F[Y-m-d]}} = | |{{#show: @|?Date Start#-F[Y-m-d]}} = | ||
|= – rolling | |= – rolling | ||
|#default= – {{#show: @|?Date End#-F[M Y]}} | |#default= – {{#show: @|?Date End#-F[M Y]}} | ||
}}</li> | |||
| | | | ||
}}</ul> | }}</ul> | ||
Line 164: | Line 224: | ||
</div> | </div> | ||
}} | }} | ||
</div><!-- | --> | ||
</div> | |||
<!-- | |||
### Article body | ### Article body | ||
--> | --> | ||
{{#if: {{{Opportunity description|}}}| | {{#if: {{{Opportunity description|}}}| | ||
{{{Opportunity description|}}} | {{{Opportunity description|}}} | ||
}} | }} | ||
</includeonly> |