Difference between revisions of "Template:Events"
From Earth Science Information Partners (ESIP)
Line 5: | Line 5: | ||
[[Category:Events]] | [[Category:Events]] | ||
[[News feed::{{{News feed|}}}]] | [[News feed::{{{News feed|}}}]] | ||
− | + | ||
+ | {{#vardefine: committee | ||
+ | |{{#show: {{#titleparts: {{FULLPAGENAME|}}|1}} |?Committee }} | ||
+ | }} | ||
+ | |||
+ | {{#vardefine: coordinates | ||
+ | |{{#if: {{{Event coordinates|}}} | ||
+ | |{{{Event coordinates|}}} | ||
+ | |{{#ifeq: {{#sub:{{#geocode: {{{Event location|}}}}}|0|3}} | ||
+ | |Geo | ||
+ | | | ||
+ | |{{#geocode: {{{Event location|}}} }} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | {{#set: | ||
+ | |Start date={{{Start date|}}} {{{Start hour|}}}:{{{Start minute|}}} | ||
+ | |End date={{{End date|}}} {{{End hour|}}}:{{{End minute|}}} | ||
+ | |Committee={{#var: committee}} | ||
+ | |Event tag={{{Event tag|}}}|+sep=; | ||
+ | |Event location={{{Event location|}}} | ||
+ | |Event coordinates={{#var: coordinates}} | ||
+ | |Event participant={{{Event participant|}}}|+sep=; | ||
+ | }} | ||
</div><!-- | </div><!-- | ||
Line 11: | Line 35: | ||
--><div class="d-block d-md-flex"> | --><div class="d-block d-md-flex"> | ||
− | <div class="text-muted d-block d-md-flex" style="width:100px">Committee:</div>'''{{ | + | <div class="text-muted d-block d-md-flex" style="width:100px">Committee:</div>'''{{#var: committee}}''' |
</div> <!-- | </div> <!-- | ||
Line 23: | Line 47: | ||
|<span class="text-nowrap"><i class="fa fa-hashtag small"></i> '''@@@'''</span> | |<span class="text-nowrap"><i class="fa fa-hashtag small"></i> '''@@@'''</span> | ||
|  | |  | ||
− | }}</div> | + | }}</div> |
− | |||
− | |||
− | |||
− | |||
}} <!-- | }} <!-- | ||