Template:Infobox event: Difference between revisions
No edit summary |
(Removing SMW) |
||
| (46 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{#cargo_declare: _table = CommunityEvents |
|||
{{Infobox |
|||
| Organizers = Wikitext |
|||
| Status = String (allowed values=Active,On Hiatus,Defunct,TBD) |
|||
| FirstDate = Date |
|||
| LastDate = Date |
|||
| NextDateStart = Date |
|||
| NextDateEnd = Date |
|||
| Eventnotscheduled = Boolean |
|||
| Setting = Wikitext |
|||
| Attendees = Integer |
|||
| Website = URL |
|||
| Country = String |
|||
| City = String |
|||
| State = String |
|||
| EventType = String (allowed values=Gather,Minigather,Meetup) |
|||
}} |
|||
[[Category:Infobox templates|{{PAGENAME}}]] |
|||
</noinclude>{{Infobox |
|||
|name = {{FULLPAGENAME}} |
|name = {{FULLPAGENAME}} |
||
|bodystyle = |
|bodystyle = |
||
| Line 19: | Line 36: | ||
|header3 = |
|header3 = |
||
|label3 = Location |
|label3 = Location |
||
|data3 = {{#if:{{{country|}}}|{{{city|}}}, {{{state|}}} {{{country|}}} |
|data3 = {{#if:{{{country|}}}|{{{city|}}}, {{{state|}}} {{{country|}}}|}} |
||
|header4 = |
|header4 = |
||
|label4 = Average Attendees |
|label4 = Average Attendees |
||
| Line 25: | Line 42: | ||
|header5 = |
|header5 = |
||
|label5 = Next held on |
|label5 = Next held on |
||
|data5 = {{#if:{{{nextdate|}}} |
|||
|data5 = {{#if:{{{nextheldon|}}}|{{#set:Eventstartdate={{#time: F j, Y | {{{nextdate}}}}}}}{{#time: F j, Y | {{{nextdate|}}}}}|[[Eventdate::{{#time: F j, Y | {{{nextdate|}}}}}]]}} {{#if:{{{nextends|}}}|to [[Eventends::{{#time: F j, Y | {{{nextends|}}}}}]]{{#switch: {{{nextdate|}}} |
|||
|{{#time: F j, Y | {{{nextdate|}}}}} |}} {{#if:{{{nextends|}}}|to {{#time: F j, Y | {{{nextends|}}}}}|}} |
|||
{{!}}TBD = {{#set:Eventnotscheduled=TRUE}} |
|||
{{!}}{{#set:Eventnotscheduled=FALSE}} |
|||
}}|}} |
|||
|header6 = |
|header6 = |
||
|label6 = First held on |
|label6 = First held on |
||
| Line 40: | Line 55: | ||
|header9 = |
|header9 = |
||
|label9 = Website |
|label9 = Website |
||
|data9 = <div class="plainlinks" style="overflow:auto;width:100%;padding:2px;margin;0"> |
|data9 = <div class="plainlinks" style="overflow:auto;width:100%;padding:2px;margin;0">{{{url|<noinclude>http://ww.example.com</noinclude>}}}</div> |
||
|header10 = |
|header10 = |
||
|label10 = Subscribe |
|label10 = Subscribe |
||
|data10 = {{# |
|data10 = {{#cargo_query: |
||
tables=CommunityEvents |
|||
[[Eventstartdate::+]] |
|||
|fields=CommunityEvents._pageName, CommunityEvents.NextDateStart |
|||
[[{{FULLPAGENAME}}]] |
|||
|where=COALESCE(NextDateEnd,NextDateStart) > DATE_ADD(NOW(), INTERVAL -2 DAY) and _pageName = '{{FULLPAGENAME}}' |
|||
[[Status::Active]] |
|||
|order by=CommunityEvents.NextDateStart ASC |
|||
|? Eventstartdate#ISO = date |
|||
|format=feed |
|||
|feed type=rss |
|||
|sort=Eventstartdate |
|||
|link text=RSS |
|||
|order=ASC |
|||
|feed title=Upcoming {{FULLPAGENAME}} Events |
|||
|searchlabel= RSS |
|||
|feed description=A feed of upcoming {{FULLPAGENAME}} events. |
|||
}} {{b|·}} {{#cargo_query: |
|||
|rssdescription=Upcoming {{FULLPAGENAME}} |
|||
tables=CommunityEvents |
|||
}} '''·''' {{#get_web_data:url=http://dreamhart.org/tiny.php?url={{#ask: |
|||
|fields=CommunityEvents._pageName, CommunityEvents.NextDateStart, CommunityEvents.NextDateEnd |
|||
[[Eventstartdate::+]] |
|||
|where=COALESCE(NextDateEnd,NextDateStart) > DATE_ADD(NOW(), INTERVAL -2 DAY) and _pageName = '{{FULLPAGENAME}}' |
|||
[[{{FULLPAGENAME}}]] |
|||
|order by=CommunityEvents.NextDateStart ASC |
|||
[[Status::Active]] |
|||
|format=icalendar |
|||
|? Eventstartdate = start |
|||
|link text=iCal |
|||
|? Eventends = end |
|||
|filename=calendar.ics |
|||
|format=icalendar |
|||
|icalendar name=Upcoming {{FULLPAGENAME}} Events |
|||
|sort=Eventstartdate |
|||
|icalendar description=A calendar of upcoming {{FULLPAGENAME}} events |
|||
|order=ASC |
|||
|searchlabel= |
|||
|title=Upcoming {{FULLPAGENAME}} |
|||
|description=Upcoming {{FULLPAGENAME}} |
|||
}} |
}} |
||
|format=csv|data=theurl=1}}<span class="plainlinks">[{{#external_value:theurl}} iCal]</span> |
|||
|belowstyle = background:#ddf; |
|belowstyle = background:#ddf; |
||
|below = |
|below = |
||
| Line 77: | Line 88: | ||
|TBD = [[Category:{{{eventtype}}}s of Indeterminate Status]] |
|TBD = [[Category:{{{eventtype}}}s of Indeterminate Status]] |
||
| |
| |
||
}} |
|||
{{#cargo_store:_table=CommunityEvents |
|||
| Organizers = {{{organizer|}}} |
|||
| Status = {{{status|TBD}}} |
|||
| FirstDate = {{{began|}}} |
|||
| LastDate = {{{lastheld|}}} |
|||
| NextDateStart = {{{nextdate|}}} |
|||
| NextDateEnd = {{{nextends|}}} |
|||
| Eventnotscheduled = {{#if:{{{nextdate|}}}|{{#switch: {{{nextdate|}}}| TBD = 1| 0}}|1}} |
|||
| Setting = {{{setting|}}} |
|||
| Attendees = {{{attendees|}}} |
|||
| Website = {{{url|}}} |
|||
| Country = {{{country|}}} |
|||
| City = {{{city|}}} |
|||
| State = {{{state|}}} |
|||
| EventType = {{{eventtype|}}}s |
|||
}} |
}} |
||
</includeonly> |
</includeonly> |
||
<noinclude> |
|||
<noinclude>[[Category:Infobox templates|{{PAGENAME}}]]</noinclude> |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"image": {}, |
|||
"url": {}, |
|||
"caption": {}, |
|||
"organizer": {}, |
|||
"status": {}, |
|||
"country": {}, |
|||
"city": {}, |
|||
"state": {}, |
|||
"attendees": {}, |
|||
"nextdate": {}, |
|||
"nextends": {}, |
|||
"began": {}, |
|||
"lastheld": {}, |
|||
"setting": {}, |
|||
"eventtype": {} |
|||
} |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
|||
Latest revision as of 20:34, 17 April 2026
This template defines the table "CommunityEvents". View table.
{{#set:hasimage=True}}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 · iCal |
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| image | image | no description | Unknown | optional |
| url | url | no description | Unknown | optional |
| caption | caption | no description | Unknown | optional |
| organizer | organizer | no description | Unknown | optional |
| status | status | no description | Unknown | optional |
| country | country | no description | Unknown | optional |
| city | city | no description | Unknown | optional |
| state | state | no description | Unknown | optional |
| attendees | attendees | no description | Unknown | optional |
| nextdate | nextdate | no description | Unknown | optional |
| nextends | nextends | no description | Unknown | optional |
| began | began | no description | Unknown | optional |
| lastheld | lastheld | no description | Unknown | optional |
| setting | setting | no description | Unknown | optional |
| eventtype | eventtype | no description | Unknown | optional |
