Template:Infobox event: Difference between revisions
No edit summary |
m (Text replacement - "(['][']['])(.*)(['][']['])" to "{{b|$2}}") |
||
(33 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox |
|||
{| class="infobox bordered" border="1" cellpadding="3" style="border-collapse:collapse;width: 22em; font-size: smaller; text-align: left; float:right;margin-left:5px;" |
|||
|name = {{FULLPAGENAME}} |
|||
! colspan="2" style="background-color: #ddddff; font-size: larger; text-align: center;" | ''{{{title}}}'' |
|||
|bodystyle = |
|||
|- |
|||
|title = {{PAGENAME}} |
|||
{{#if:{{{image|}}}| |
|||
|titlestyle = background:#ccf; |
|||
{{!}} colspan="2" style="font-size: 6; text-align: center;" {{!}} {{{image|}}}<br />{{{caption|}}} {{#set:hasimage=True}} |
|||
|image ={{#if:{{{image|<noinclude>File:Example.png</noinclude>}}}|[[{{{image|<noinclude>File:Example.png</noinclude>}}}|200px|link={{{url|<noinclude>http://www.example.com</noinclude>}}}]]{{#set:hasimage=True}}}} |
|||
|imagestyle = |
|||
|caption = {{{caption|<noinclude>Caption goes here</noinclude>}}} |
|||
|captionstyle = |
|||
|headerstyle = background:#ccf; |
|||
|labelstyle = background:#ddf; |
|||
|datastyle = background:#f9f9f9; |
|||
|header1 = |
|||
|label1 = Organizer(s) |
|||
|data1 = {{{organizer|<noinclude>Organizer(s)</noinclude>}}} |
|||
|header2 = |
|||
|label2 = Status |
|||
|data2 = [[Status::{{{status|<noinclude>Active</noinclude>}}}]] |
|||
|header3 = |
|||
|label3 = Location |
|||
|data3 = {{#if:{{{country|}}}|{{{city|}}}, {{{state|}}} {{{country|}}} {{#set:city={{{city|}}}|state={{{state|}}}|country={{{country|}}}}} [[Location::{{#geocode:{{{city|}}}, {{{state|}}} {{{country|}}}}}{{!}} ]]|}} |
|||
|header4 = |
|||
|label4 = Average Attendees |
|||
|data4 = {{#if:{{{attendees|}}}|{{{attendees|<noinclude>100</noinclude>}}}|}} |
|||
|header5 = |
|||
|label5 = Next held on |
|||
|data5 = {{#if:{{{nextdate|}}} |
|||
|{{#set:Eventstartdate={{#time: F j, Y | {{{nextdate}}} }} }}{{#time: F j, Y | {{{nextdate|}}}}} |}} {{#if:{{{nextends|}}}|to [[Eventends::{{#time: F j, Y | {{{nextends|}}}}}]]|}} |
|||
{{#if:{{{nextdate|}}}|{{#switch: {{{nextdate|}}}| TBD = {{#set:Eventnotscheduled=TRUE}}| {{#set:Eventnotscheduled=FALSE}} |
|||
}} |
}} |
||
|{{#set:Eventnotscheduled=TRUE}} |
|||
|- |
|||
! style="background-color: #ddddff;" | Organizer(s) |
|||
| {{{organizer}}} |
|||
|- |
|||
! style="background-color: #ddddff;" | Website |
|||
| style="padding:0" cellpadding="0" | <div class="plainlinks" style="overflow:auto;width:100%;padding:2px;margin;0">[[eventwebsite::{{{url}}}]]</div> |
|||
|- |
|||
{{#if:{{{country|}}}| |
|||
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Location |
|||
{{!}} {{{city|}}}, {{{state|}}} {{{country|}}} {{#set:city={{{city}}}|state={{{state}}}|country={{{country}}}}} [[Location::{{#geocode:{{{city|}}}, {{{state|}}} {{{country|}}}}}| ]] |
|||
}} |
}} |
||
|header6 = |
|||
|- |
|||
|label6 = First held on |
|||
{{#if:{{{status|}}}| |
|||
|data6 = {{#if:{{{began|<noinclude>February 2, 2008</noinclude>}}}|{{#time: F j, Y |{{{began|<noinclude>February 2, 2008</noinclude>}}}}}}} |
|||
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Status |
|||
|header7 = |
|||
{{!}} [[Status::{{{status|}}}]] |
|||
|label7 = Last held on |
|||
}} |
|||
|data7 = {{#if:{{{lastheld|<noinclude>February 28, 2008</noinclude>}}}|{{#time: F d, Y |{{{lastheld|<noinclude>February 28, 2008</noinclude>}}}}}}} |
|||
|header8 = |
|||
|- |
|||
|label8 = Setting |
|||
{{#if:{{{attendees|}}}| |
|||
|data8 = {{{setting|<noinclude>Camping</noinclude>}}} |
|||
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Average attendees |
|||
|header9 = |
|||
{{!}} {{{attendees|}}} |
|||
|label9 = Website |
|||
}} |
|||
|data9 = <div class="plainlinks" style="overflow:auto;width:100%;padding:2px;margin;0">[[eventwebsite::{{{url|<noinclude>http://ww.example.com</noinclude>}}}]]</div> |
|||
|- |
|||
|header10 = |
|||
{{#if:{{{nextdate|}}}| |
|||
|label10 = Subscribe |
|||
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}}{{#set:Eventstartdate={{#time: F j, Y | {{{nextdate}}}}}}} Next held on |
|||
|data10 = {{#ask: |
|||
{{!}} {{#if:{{{nextends|}}}|{{#time: F j, Y | {{{nextdate|}}}}}|[[Eventdate::{{#time: F j, Y | {{{nextdate|}}}}}]]}} {{#if:{{{nextends|}}}|to [[Eventends::{{#time: F j, Y | {{{nextends|}}}}}]]}} |
|||
[[Eventstartdate::+]] |
|||
}} |
|||
{{#switch: {{{nextdate|}}} |
|||
|TBD = {{#set:Eventnotscheduled=TRUE}} |
|||
| {{#set:Eventnotscheduled=FALSE}} |
|||
}} |
|||
|- |
|||
{{#if:{{{began|}}}| |
|||
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} First held on |
|||
{{!}} [[Begandate::{{#time: F j, Y |{{{began|}}}}}]] |
|||
}} |
|||
|- |
|||
{{#if:{{{lastheld|}}}| |
|||
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Last held on |
|||
{{!}} [[Lastdate::{{#time: F j, Y |{{{lastheld|}}}}}]] |
|||
}} |
|||
|- |
|||
{{#if:{{{setting|}}}| |
|||
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Setting |
|||
{{!}} {{{setting|}}} |
|||
}} |
|||
|- |
|||
! style="font-weight:bold;background-color: #ddddff; white-space:nowrap;" {{!}} Subscribe |
|||
{{!}} |
|||
{{#ask: |
|||
[[:+]] |
|||
[[Eventstartdate::>{{#time: Y-m-d | -1 days }}]] |
|||
[[Eventstartdate::<{{#time: Y-m-d | +60 days}}]] |
|||
[[{{FULLPAGENAME}}]] |
[[{{FULLPAGENAME}}]] |
||
[[Status::Active]] |
[[Status::Active]] |
||
Line 67: | Line 56: | ||
|rsstitle=Upcoming {{FULLPAGENAME}} |
|rsstitle=Upcoming {{FULLPAGENAME}} |
||
|rssdescription=Upcoming {{FULLPAGENAME}} |
|rssdescription=Upcoming {{FULLPAGENAME}} |
||
}} |
}} {{b|·}} {{#get_web_data:url=https://dreamhart.org/lilliputian.php?url={{#ask: |
||
[[Eventstartdate::+]] |
|||
url=http://dreamhart.org/tiny.php?url={{#ask: |
|||
[[:+]] |
|||
[[Eventstartdate::>{{#time: Y-m-d | -1 days }}]] |
|||
[[Eventstartdate::<{{#time: Y-m-d | +60 days}}]] |
|||
[[{{FULLPAGENAME}}]] |
[[{{FULLPAGENAME}}]] |
||
[[Status::Active]] |
[[Status::Active]] |
||
|? Eventstartdate = start |
|||
|? Eventenddate = end |
|||
|format=iCalendar |
|||
|sort=eventstartdate |
|||
|order=ASC |
|||
|searchlabel=iCal |
|||
|default=No results found |
|||
|title=Upcoming {{FULLPAGENAME}} |
|||
|title={{FULLPAGENAME}} |
|||
}} |
}} |
||
|format=csv|data=theurl=1}} |
|format=csv|data=theurl=1|suppress error}}<span class="plainlinks">[{{#external_value:theurl}} iCal]</span> |
||
|belowstyle = background:#ddf; |
|||
<span class="plainlinks">[{{#external_value:theurl}} iCal]</span> |
|||
|below = |
|||
|} |
|||
{{#if:{{{nextends|}}}|{{#set_internal_recurring_event:Is instance of |
|||
|property=Eventdate |
|||
|start={{{nextdate}}} |
|||
|end={{{nextends}}} |
|||
|unit=day |
|||
|period=1}} |
|||
}} |
}} |
||
<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:{{{eventtype|}}}s]]}} |
<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:{{{eventtype|}}}s]]}} |
||
Line 101: | Line 81: | ||
}} |
}} |
||
</includeonly> |
</includeonly> |
||
<noinclude>[[Category:Infobox templates|{{PAGENAME}}]]</noinclude> |
|||
<noinclude> |
|||
==Usage== |
|||
{| style="background: transparent;" |
|||
|<pre>{{Infobox event |
|||
| title = |
|||
| image = |
|||
| caption = |
|||
| organizer = |
|||
| url = |
|||
| country = |
|||
| state = |
|||
| city = |
|||
| status = |
|||
| attendees = |
|||
| nextdate = |
|||
| nextends = |
|||
| began = |
|||
| lastheld = |
|||
| setting = |
|||
}} |
|||
</pre> |
|||
|} |
|||
[[Category:Infobox templates|{{PAGENAME}}]] |
|||
</noinclude> |
Latest revision as of 21:30, 13 September 2023
![]() Caption goes here | |
Organizer(s) | Organizer(s) |
---|---|
Status | Active |
First held on | February 2, 2008 |
Last held on | February 28, 2008 |
Setting | Camping |
Website | |
Subscribe | RSS · [there iCal] |