Template:Current Opportunities: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
(17 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|}}}}}|;|,}}"> | ||
<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"> | |||
<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]]}} | ||
| | |||
|{{#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|}}} | |||
|{{#time: M j, Y|{{{Opportunity start date|}}}}} | |||
}}<!-- | |||
-->{{#if: {{{Opportunity end date|}}} | -->{{#if: {{{Opportunity end date|}}} | ||
|{{#if: {{{Opportunity start date|}}} | |{{#if: {{{Opportunity start date|}}} | ||
|– | |– | ||
}}{{#time: | }}{{#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|}}} | |||
|• 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><!-- | ||
--> | --><div>{{#if: {{{Opportunity short description|}}}| | ||
{{{Opportunity short description|}}} | |||
}}<!-- | |||
### DISABLED LINK BUTTONS | |||
{{#if: {{{Opportunity link|}}}{{{Opportunity link text|}}}{{{Opportunity second link|}}}{{{Opportunity second link text|}}} | |||
|{{#arraymap: {{{Opportunity link|}}}*{{{Opportunity link text|}}}{{#if:{{{Opportunity second link|}}}|; {{{Opportunity second link|}}}*{{{Opportunity second link text|}}}}} | |{{#arraymap: {{{Opportunity link|}}}*{{{Opportunity link text|}}}{{#if:{{{Opportunity second link|}}}|; {{{Opportunity second link|}}}*{{{Opportunity second link text|}}}}} | ||
|; | |; | ||
Line 54: | Line 59: | ||
}} | }} | ||
}} | }} | ||
--> </div> | |||
</div> | </div> | ||
</div> | </div> |