Template:Infobox event: Difference between revisions

From AnOtherWiki, the free encyclopedia written by, for, and about the Otherkin community.
(found the source of the problem with the url shortener)
(Removing SMW)
 
(27 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 16: Line 33:
|header2 =
|header2 =
|label2 = Status
|label2 = Status
|data2 = [[Status::{{{status|<noinclude>Active</noinclude>}}}]]
|data2 = {{{status|<noinclude>Active</noinclude>}}}
|header3 =
|header3 =
|label3 = Location
|label3 = Location
|data3 = {{#if:{{{country|}}}|{{{city|}}}, {{{state|}}} {{{country|}}} {{#set:city={{{city|}}}|state={{{state|}}}|country={{{country|}}}}} [[Location::{{#geocode:{{{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:{{{nextdate|}}}|{{#set:Eventstartdate={{#time: F j, Y | {{{nextdate}}}}}}}{{#time: F j, Y | {{{nextdate|}}}}}|[[Eventstartdate::{{#time: F j, Y | {{{nextdate|}}}}}]]}} {{#if:{{{nextends|}}}|to [[Eventends::{{#time: F j, Y | {{{nextends|}}}}}]]|}}
|{{#time: F j, Y | {{{nextdate|}}}}} |}} {{#if:{{{nextends|}}}|to {{#time: F j, Y | {{{nextends|}}}}}|}}
{{#switch: {{{nextdate|}}}
| TBD = {{#set:Eventnotscheduled=TRUE}}
| {{#set:Eventnotscheduled=FALSE}}
}}
|header6 =
|header6 =
|label6 = First held on
|label6 = First held on
Line 41: Line 55:
|header9 =
|header9 =
|label9 = Website
|label9 = Website
|data9 = <div class="plainlinks" style="overflow:auto;width:100%;padding:2px;margin;0">[[eventwebsite::{{{url|<noinclude>http://ww.example.com</noinclude>}}}]]</div>
|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 = {{#ask:
|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=rss
|format=feed
|feed type=rss
|sort=Eventstartdate
|link text=RSS
|order=ASC
|feed title=Upcoming {{FULLPAGENAME}} Events
|searchlabel= RSS
|rsstitle=Upcoming {{FULLPAGENAME}}
|feed description=A feed of upcoming {{FULLPAGENAME}} events.
}} {{b|·}} {{#cargo_query:
|rssdescription=Upcoming {{FULLPAGENAME}}
tables=CommunityEvents
}} '''·''' {{#get_web_data:url=https://dreamhart.org/lilliputian.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
|? Eventenddate = end
|filename=calendar.ics
|format=iCalendar
|icalendar name=Upcoming {{FULLPAGENAME}} Events
|sort=eventstartdate
|icalendar description=A calendar of upcoming {{FULLPAGENAME}} events
|order=ASC
}}
|searchlabel=iCal
|default=No results found
|title={{FULLPAGENAME}}}}
|belowstyle = background:#ddf;
|belowstyle = background:#ddf;
|below =
|below =
}}
}}
|format=csv|data=theurl=1|suppress error}}<span class="plainlinks">[{{#external_value:theurl}} iCal]</span>
<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:{{{eventtype|}}}s]]}}
<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:{{{eventtype|}}}s]]}}
{{#switch: {{{status|}}}
{{#switch: {{{status|}}}
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.

Infobox event
{{#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.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
imageimage

no description

Unknownoptional
urlurl

no description

Unknownoptional
captioncaption

no description

Unknownoptional
organizerorganizer

no description

Unknownoptional
statusstatus

no description

Unknownoptional
countrycountry

no description

Unknownoptional
citycity

no description

Unknownoptional
statestate

no description

Unknownoptional
attendeesattendees

no description

Unknownoptional
nextdatenextdate

no description

Unknownoptional
nextendsnextends

no description

Unknownoptional
beganbegan

no description

Unknownoptional
lastheldlastheld

no description

Unknownoptional
settingsetting

no description

Unknownoptional
eventtypeeventtype

no description

Unknownoptional