Template:Opportunity: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Tag: Manual revert
 
(37 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 type={{{Opportunity type|}}}
|Opportunity wiki link={{FULLPAGENAME}}
|Opportunity type={{{Opportunity type|}}}|+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|}}}
|Date Start={{{Opportunity start date|}}}
|Opportunity link text={{{Opportunity link text|}}}
|Date End={{{Opportunity end date|}}}
|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|}}}
|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]]
[[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 display name|}}}|{{DISPLAYTITLE: {{{Opportunity display name|}}}}}}}
{{#if: {{{Opportunity display name|}}}|{{DISPLAYTITLE: {{{Opportunity display name|}}}}}}}
__NOTOC__
__NOTOC__
Line 18: Line 35:
</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-header">Opportunity</div>
</div>
<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>
{{#switch: {{{Opportunity end date|}}}
{{#ifeq: {{{Has application window|}}}
   |{{{Opportunity start date|}}} =
  |Yes
<tr>
   |{{#if: {{{Opportunity start date|}}}
<td>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>Date</td>
 
<td>{{#time: M j, Y|{{{Opportunity start date|}}}}} &ndash; rolling</td>
-->{{#if: {{{Opportunity end date|}}}
</tr>
    |<tr>
  |#default={{#if: {{{Opportunity start date|}}}|
      <td>Deadline</td>
<tr>
      <td>{{#time: M j, Y|{{{Opportunity end date|}}}}}</td>
<td>Date</td>
      </tr>
<td>{{#time: M j, Y|{{{Opportunity start date|}}}}} &ndash; {{#time: M j, Y|{{{Opportunity end date|}}}}}</td>
  }}
</tr>
  |<tr>
}}
  <td>Deadline</td>
  <td>Rolling</td>
  </tr>
}}<!--
}}<!--


Line 65: Line 89:
<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 102:
--></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">Environment</div>
<div class="moha-infobox-section-header">Details</div>
<div class="moha-infobox-section-body">
<div class="moha-infobox-section-body">
<table>
<table>
Line 167: Line 200:
</div>
</div>
}}
}}
</div><!--
-->
</div>
<!--


### Article body
### Article body


-->
-->
{{#if: {{{Opportunity description|}}}|
{{#if: {{{Opportunity description|}}}|
== Description ==
{{{Opportunity description|}}}
{{{Opportunity description|}}}
}}
}}
</includeonly>

Latest revision as of 20:02, January 14, 2024