Template:Event/upcoming: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>{{Semantic display template|Event/instance}}</noinclude><includeonly><!-- NEED TO IMPLEMENT A CHECK FOR IF THERE IS AN UPCOMING EVENT, THEN THE HEADER, DATES, AND APPLICATION INFO.
<noinclude>{{Semantic display template|Event/instance}}</noinclude><includeonly><!-- NEED TO IMPLEMENT A CHECK FOR IF THERE IS AN UPCOMING EVENT, THEN THE HEADER, DATES, AND APPLICATION INFO.


<tr><td colspan="2">
-->{{#if:{{#show:{{PAGENAME}}|?Has application deadline}}|<tr><th scope="row">Deadline</th><td>{{#time:F j, Y|{{#show:{{PAGENAME}}|?Has application deadline}}}}</td></tr>}}<!--
-->{{#if:{{#show:{{PAGENAME}}|?Has application URL}}
| <tr>
    <th scope="row">Application</th>
    <td>{{#ifexpr:{{#time:U|{{#show:{{PAGENAME}}|?Has application deadline}}}} > {{#time:U}}
        | [{{#show:{{PAGENAME}}|?Has application URL#}} <span class="button blue outline">Apply</span>]
        | <span class="button disabled outline">Closed</span>
        }}
    </td>
</tr>
|}}<!--
--><tr><td>
TEST ROW
TEST ROW
{{#ask:
{{#ask:
Line 18: Line 29:
  |sort=Has start date
  |sort=Has start date
}}
}}
</td></tr>
</td></tr><!--
 
-->{{#if:{{#show:{{PAGENAME}}|?Has application deadline}}|<tr><th scope="row">Deadline</th><td>{{#time:F j, Y|{{#show:{{PAGENAME}}|?Has application deadline}}}}</td></tr>}}<!--
-->{{#if:{{#show:{{PAGENAME}}|?Has application URL}}
| <tr>
    <th scope="row">Application</th>
    <td>{{#ifexpr:{{#time:U|{{#show:{{PAGENAME}}|?Has application deadline}}}} > {{#time:U}}
        | [{{#show:{{PAGENAME}}|?Has application URL#}} <span class="button blue outline">Apply</span>]
        | <span class="button disabled outline">Closed</span>
        }}
    </td>
</tr>
|}}<!--
--></includeonly>
--></includeonly>

Revision as of 04:48, 20 December 2024

This is a semantic display template, it takes no properties of its own. The annotations it uses are made in Template:Event/instance.