Template:Current Opportunities: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="card mb-3 border rounded-0 border-lg" data-opportunity-type="{{#replace:{{lc:{{{Opportunity type|}}}}}|;|,}}"> | <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="row g-4 align-items-center"> | ||
<div class="col-md-4 col-lg-3 p-5 my-n5 img-event">[[File:{{PAGENAME:{{{Opportunity image|{{#show:{{#show:{{{Opportunity|}}}|?Associated Program|link=none}}|?Program image |link=none |default=Moha.wiki logo.png | <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="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"> | ||
Line 9: | Line 9: | ||
|{{#ifeq: {{#time: Ymd|{{{Opportunity start date|}}}}} | |{{#ifeq: {{#time: Ymd|{{{Opportunity start date|}}}}} | ||
|{{#time: Ymd|{{{Opportunity end date|}}}}} | |{{#time: Ymd|{{{Opportunity end date|}}}}} | ||
|{{#time: | |{{#time: M j, Y|{{{Opportunity start date|}}}}} {{!}} <!-- | ||
-->{{Event dates | -->{{Event dates | ||
Line 16: | Line 16: | ||
}} | }} | ||
|{{#if: {{{Opportunity start date|}}} | |{{#if: {{{Opportunity start date|}}} | ||
|{{#time: | |{{#time: M j, Y|{{{Opportunity start date|}}}}} | ||
}}<!-- | }}<!-- | ||
Line 22: | Line 22: | ||
|{{#if: {{{Opportunity start date|}}} | |{{#if: {{{Opportunity start date|}}} | ||
|– | |– | ||
}}{{#time: | }}{{#time: M j, Y|{{{Opportunity end date|}}}}} | ||
}} | }} | ||
}} | }} | ||
Line 45: | Line 45: | ||
--><div class="h3">[[{{{Opportunity|Opportunity}}}|{{{Opportunity|Opportunity}}}]]</div><!-- | --><div class="h3">[[{{{Opportunity|Opportunity}}}|{{{Opportunity|Opportunity}}}]]</div><!-- | ||
--><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 55: | Line 59: | ||
}} | }} | ||
}} | }} | ||
--> </div> | |||
</div> | </div> | ||
</div> | </div> |