Template:Event/upcoming: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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.
-->{{#if:{{#show:{{PAGENAME}}|?Has application deadline}}|<tr><th scope="row">Deadline</th><td>{{#time:F j, Y|{{#show:{{PAGENAME}}|?Has application deadline}}}}</td></tr>}}<!--
-->{{#ask:
-->{{#if:{{#show:{{PAGENAME}}|?Has application URL}}
[[-Has subobject::{{PAGENAME}}]]
| <tr>
[[Category:Instances]]
    <th scope="row">Application</th>
[[Has end date::>{{#time:Y-m-d}}]]
    <td>{{#ifexpr:{{#time:U|{{#show:{{PAGENAME}}|?Has application deadline}}}} > {{#time:U}}
|?Has name=name
        | [{{#show:{{PAGENAME}}|?Has application URL}} <span class="button blue outline">Apply</span>]
|?Has event type=event_type
        | <span class="button disabled outline">Closed</span>
|?Has start date=start_date
        }}
|?Has end date=end_date
    </td>
|?Has website#=website
</tr>
|?At venue=venue
|}}<!--
|?At location=location
--></includeonly>
|?Has application deadline=application_deadline
|?Has application URL=application_link
|format=plainlist
|template=Sidebox instance
|link=none
|limit=1
|named args=yes
}}</includeonly>

Latest revision as of 22:42, 20 January 2025

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