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>{{#ask:
-->{{#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 colspan=2>
{{#ask:
  [[-Has subobject::{{PAGENAME}}]]
  [[-Has subobject::{{PAGENAME}}]]
  [[Category:Instances]]
  [[Category:Instances]]
Line 27: Line 14:
  |limit=1
  |limit=1
  |sort=Has start date
  |sort=Has start date
}}
}}</td></tr><!--
</td></tr><!--
--></includeonly>
--></includeonly>

Revision as of 05:02, 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.