Template:Current Opportunities: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="card mb-3 border rounded-0 border-lg"  
<div class="card mb-3 border rounded-0 border-lg" data-opportunity-type="{{#replace:{{lc:{{{Opportunity type|}}}}}|;|,}}">
  data-opportunity-type="{{#replace:{{lc:{{{Opportunity type|}}}}}|;|,}}"
   <div class="row g-4 align-items-center">
>
    <div class="col-md-4 col-lg-3 p-5 my-n5 img-event">[[File:{{PAGENAME:{{#if:{{{Opportunity image|}}}|{{{Opportunity image|}}}|{{#show:{{#show:{{{Opportunity|}}}|?Associated Program|link=none}}|?Program image |link=none |default=Moha.wiki logo.png}}}}}}|class=w-100 h-auto|800px|link={{{Opportunity|}}}]]</div>
   <div class="row g-4">{{#if: {{{Opportunity image|}}}
    |<div class="col-md-4 col-lg-3 img-event">[[File:{{PAGENAME:{{{Opportunity image|}}}}}|class=w-100 h-auto|800px|link={{{Opportunity|}}}]]</div>
  }}
     <div class="col-md-8 col-lg-9 d-flex flex-column">
     <div class="col-md-8 col-lg-9 d-flex flex-column">
       <div class="card-body px-md-5 d-flex flex-column justify-content-center">
       <div class="card-body px-md-5 d-flex flex-column justify-content-center">
         <div class="card-text">
         <div class="card-text">
<div class="font-weight-bold text-uppercase text-primary-moha">{{#ifeq: {{#time: Ymd|{{{Opportunity start date|}}}}}
<div class="font-weight-bold text-uppercase text-primary-moha">{{#if:{{#ask: [[{{{Opportunity|}}}]][[Category:Rolling Opportunities]]}}
|{{#time: Ymd|{{{Opportunity end date|}}}}}
|
|{{#time: F j, Y|{{{Opportunity start date|}}}}} {{!}} <!--
|{{#ifeq: {{#time: Ymd|{{{Opportunity start date|}}}}}
  |{{#time: Ymd|{{{Opportunity end date|}}}}}
  |{{#time: M j, Y|{{{Opportunity start date|}}}}} {{!}} <!--


-->{{Event dates
-->{{Event dates
     |Date Start={{{Opportunity start date|}}}
     |Date Start={{{Opportunity start date|}}}
     |Date End={{{Opportunity end date|}}}
     |Date End={{{Opportunity end date|}}}
   }}
   }}
|{{#if: {{{Opportunity start date|}}}
  |{{#if: {{{Opportunity start date|}}}
    |{{#time: m.d.y|{{{Opportunity start date|}}}}}
    |{{#time: M j, Y|{{{Opportunity start date|}}}}}
  }}<!--
  }}<!--


-->{{#if: {{{Opportunity end date|}}}
-->{{#if: {{{Opportunity end date|}}}
     |{{#if: {{{Opportunity start date|}}}
     |{{#if: {{{Opportunity start date|}}}
         |&ndash;
         |&ndash;
       }}{{#time: m.d.y|{{{Opportunity end date|}}}}}
       }}{{#time: M j, Y|{{{Opportunity end date|}}}}}
  }}
    }}
  }}
}} {{#if:{{#ask: [[{{{Opportunity|}}}]][[Category:Rolling Opportunities]]}}|<span class="badge badge-warning fa-1x">ROLLING</span>}}
}} {{#if:{{#ask: [[{{{Opportunity|}}}]][[Category:Rolling Opportunities]]}}|<span class="badge badge-warning fa-1x">ROLLING</span>}}
</div><!--
</div><!--


--><div class="my-2"><span class="d-block">{{#arraymap: {{{Opportunity format|}}}
--><div class="my-2"><span class="d-block">{{#arraymap: {{{Opportunity format|}}}
   |;
   |,
   |@@@
   |@@@
   |@@@
   |@@@
   |\s{{!}}\s
   |\s{{!}}\s
}}</span>
}}</span> <!--
 
-->{{#if: {{{Opportunity compensation|}}}{{{Opportunity compensation type|}}}
    |&bull; Compensation: {{#if: {{{Opportunity compensation|}}}
      |{{{Opportunity compensation|}}} {{#if:{{{Opportunity compensation type|}}}|({{{Opportunity compensation type|}}})}}
      |{{{Opportunity compensation type|}}}
    }}
  }}
</div><!--
</div><!--


--><div class="h3">[[{{{Opportunity|Opportunity}}}|{{{Opportunity|Opportunity}}}]]</div><!--
--><div class="h3">[[{{{Opportunity|Opportunity}}}|{{{Opportunity|Opportunity}}}]]</div><!--


-->{{#if: {{{Opportunity compensation|}}}{{{Opportunity compensation type|}}}|<div class="my-2">Compensation: {{#if: {{{Opportunity compensation|}}}
--><div>{{#if: {{{Opportunity short description|}}}|
      |{{{Opportunity compensation|}}} {{#if:{{{Opportunity compensation type|}}}|({{{Opportunity compensation type|}}})}}
{{{Opportunity short description|}}}
      |{{{Opportunity compensation type|}}}
}}<!--
    }}
 
</div>}}<!--
### DISABLED LINK BUTTONS


--><div>
{{#if: {{{Opportunity link|}}}{{{Opportunity link text|}}}{{{Opportunity second link|}}}{{{Opportunity second link text|}}}
{{{Opportunity description|}}}
    |{{#arraymap: {{{Opportunity link|}}}*{{{Opportunity link text|}}}{{#if:{{{Opportunity second link|}}}|; {{{Opportunity second link|}}}*{{{Opportunity second link text|}}}}}
   </div>
        |;
        |@@@
        |<span class="moha-button mb-0 cta">[{{#explode: @@@|*|0}} {{#explode: @@@|*|1}}]</span>
        |\s
      }}
   }}
-->  </div>
         </div>
         </div>
       </div>
       </div>

Latest revision as of 09:47, September 13, 2024

Moha.wiki logo.png
ROLLING