Template:Infobox event: Difference between revisions

From AnOtherWiki, the free encyclopedia written by, for, and about the Otherkin community.
No edit summary
(Trying to fix the ical link still.)
 
(36 intermediate revisions by the same user not shown)
Line 4: Line 4:
|title = {{PAGENAME}}
|title = {{PAGENAME}}
|titlestyle = background:#ccf;
|titlestyle = background:#ccf;
|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}}{{!}}}}
|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 =
|imagestyle =
|caption = {{{caption|<noinclude>Caption goes here</noinclude>}}}
|caption = {{{caption|<noinclude>Caption goes here</noinclude>}}}
Line 16: Line 16:
|header2 =
|header2 =
|label2 = Status
|label2 = Status
|data2 = {{{status|<noinclude>Active</noinclude>}}}
|data2 = [[Status::{{{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|}}} {{#set:city={{{city|}}}|state={{{state|}}}|country={{{country|}}}}} [[Location::{{#geocode:{{{city|}}}, {{{state|}}} {{{country|}}}}}{{!}} ]]|}}
|header4 =
|header4 =
|label4 = Average Attendees
|label4 = Average Attendees
Line 25: Line 25:
|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|}}}
|{{#set:Eventstartdate={{#time: F j, Y | {{{nextdate}}} }} }}{{#time: F j, Y | {{{nextdate|}}}}} |}} {{#if:{{{nextends|}}}|to [[Eventends::{{#time: F j, Y | {{{nextends|}}}}}]]|}}
{{!}}TBD = {{#set:Eventnotscheduled=TRUE}}
{{!}}{{#set:Eventnotscheduled=FALSE}}
{{#if:{{{nextdate|}}}|{{#switch: {{{nextdate|}}}| TBD = {{#set:Eventnotscheduled=TRUE}}| {{#set:Eventnotscheduled=FALSE}}
}}|}}
}}
|{{#set:Eventnotscheduled=TRUE}}
}}
|header6 =
|header6 =
|label6 = First held on
|label6 = First held on
Line 43: Line 45:
|header10 =
|header10 =
|label10 = Subscribe
|label10 = Subscribe
|data10 = <includeonly>{{#ask:
|data10 = {{#ask:
[[Eventstartdate::+]]
[[Eventstartdate::>{{#time: Y-m-d | -2 days }}]]
[[Eventstartdate::<{{#time: Y-m-d | {{CURRENTYEAR}}-12-31}}]]
[[{{FULLPAGENAME}}]]
[[{{FULLPAGENAME}}]]
[[Status::Active]]
[[Status::Active]]
{{!}}? Eventstartdate#ISO = date
|? Eventstartdate#ISO = date
{{!}}format=rss
|format=rss
{{!}}sort=Eventstartdate
|sort=Eventstartdate
{{!}}order=ASC
|order=ASC
{{!}}searchlabel= RSS
|searchlabel= RSS
{{!}}rsstitle=Upcoming {{FULLPAGENAME}}
|rsstitle=Upcoming {{FULLPAGENAME}}
{{!}}rssdescription=Upcoming {{FULLPAGENAME}}
|rssdescription=Upcoming {{FULLPAGENAME}}
}} {{b|·}} {{#ifexpr: {{#ask: [[Eventstartdate::+]] [[{{FULLPAGENAME}}]] [[Status::Active]] |format=count}} > 0
}}</includeonly><noinclude>RSS</noinclude> '''·''' {{#get_web_data:url=http://dreamhart.org/tiny.php?url=<noinclude>http://www.example.com</noinclude><includeonly>{{#ask:

[[Eventstartdate::+]]
| {{#ask:
[[{{FULLPAGENAME}}]]
[[Eventstartdate::>{{#time: Y-m-d | -2 days }}]]
[[Status::Active]]
[[Eventstartdate::<{{#time: Y-m-d | {{CURRENTYEAR}}-12-31}}]]
{{!}}? Eventstartdate = start
[[{{FULLPAGENAME}}]]
{{!}}? Eventends = end
[[Status::Active]]
{{!}}format=icalendar
{{!}}sort=Eventstartdate
|? Eventstartdate = start
|? Eventenddate = end
{{!}}order=ASC

{{!}}searchlabel=
|format=iCalendar
{{!}}title=Upcoming {{FULLPAGENAME}}
|sort=eventstartdate
{{!}}description=Upcoming {{FULLPAGENAME}}
|order=ASC
}}</includeonly>
|searchlabel=iCal
{{!}}format=csv{{!}}data=theurl=1}}<span class="plainlinks">[{{#external_value:theurl}} iCal]</span>
|title={{FULLPAGENAME}}
}}
| <span class="error">No iCal available.</span>
}}


|belowstyle = background:#ddf;
|belowstyle = background:#ddf;
|below =
|below =

Latest revision as of 12:44, 12 April 2026

Infobox event

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 · No iCal available.