Template:Opportunity: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 90: Line 90:
</tr>
</tr>
}}
}}
{{#if: {{{Associated Event|}}}|<tr>
{{#if: {{{Associated Event|}}}
<td>Associated Event</td>
  |<tr>
<td><ul>{{#arraymap: {{{Associated Event|}}}
  <td>Associated Event</td>
  <td><ul>{{#arraymap: {{{Associated Event|}}}
   |;
   |;
   |@
   |@
Line 101: Line 102:
       }}</li>{{#vardefine: prog|{{#var: prog}};{{#show:@|?Associated Program}}}}
       }}</li>{{#vardefine: prog|{{#var: prog}};{{#show:@|?Associated Program}}}}
   |
   |
}}</ul>{{#arraydefine: progs|{{#var:prog}};{{{Associated Program|}}}|;|sort=asc,unique}}</td>
}}</ul>
  </td>
</tr>{{#ifexpr: 0{{#arraysize: progs}} > 0
</tr>{{#ifexpr: 0{{#arraysize: progs}} > 0
      |<tr>
  |<tr>
<td>Associated Program</td>
  <td>Associated Program</td>
<td><ul>
  <td><ul>
{{#arrayprint: progs
{{#arrayprint: progs
   |
   |
Line 121: Line 123:
       }}</li>  
       }}</li>  
}}
}}
</ul></td></tr>
  </ul>
    }}
  </td>
   |{{#if: {{{Associated Program|}}}|<tr>
</tr>
}}
   |{{#if: {{{Associated Program|}}}|
<tr>
<td>Associated Program</td>
<td>Associated Program</td>
<td><ul>{{#arraymap: {{{Associated Program|}}}
<td><ul>{{#arraymap: {{{Associated Program|}}}
Line 132: Line 137:
         |existing page link text=@
         |existing page link text=@
         |target=@
         |target=@
      }}<br>{{#show: @|?Date Start#-F[M Y]}}{{#if:{{#show: @|?Date End#-F[M Y]}}
        |{{#switch: {{#show: @|?Date End#-F[Y-m-d]}}
            |{{#show: @|?Date Start#-F[Y-m-d]}} =
            |= &ndash; rolling
            |#default= &ndash; {{#show: @|?Date End#-F[M Y]}}
          }}
       }}</li>  
       }}</li>  
   |
   |
}}</ul></td>
}}</ul>
  </td>
</tr>
</tr>
}}
}}

Revision as of 00:28, November 18, 2022