Template:Infobox event: Difference between revisions

From AnOtherWiki, the free encyclopedia written by, for, and about the Otherkin community.
No edit summary
No edit summary
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>}}}
! style="background-color: #ddddff;" | Organizer(s)
|captionstyle =
| {{{organizer}}}
|headerstyle = background:#ccf;
|-
! style="background-color: #ddddff;" | Website
|labelstyle = background:#ddf;
|datastyle = background:#f9f9f9;
| style="padding:0" cellpadding="0" | <div class="plainlinks" style="overflow:auto;width:100%;padding:2px;margin;0">[[eventwebsite::{{{url}}}]]</div>
|header1 =
|-
|label1 = Organizer(s)
{{#if:{{{country|}}}|
|data1 = {{{organizer|<noinclude>Organizer(s)</noinclude>}}}
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Location
|header2 =
{{!}} {{{city|}}}, {{{state|}}} {{{country|}}} {{#set:city={{{city}}}|state={{{state}}}|country={{{country}}}}} [[Location::{{#geocode:{{{city|}}}, {{{state|}}} {{{country|}}}}}| ]]
|label2 = Status
}}
|data2 = {{{status|<noinclude>Active</noinclude>}}}
|-
|header3 =
{{#if:{{{status|}}}|
|label3 = Location
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Status
|data3 = {{#if:{{{country|}}}|{{{city|}}}, {{{state|}}} {{{country|}}} {{#set:city={{{city}}}{{!}}state={{{state}}}{{!}}country={{{country}}}}} [[Location::{{#geocode:{{{city|}}}, {{{state|}}} {{{country|}}}}}{{!}} ]]|}}
{{!}} [[Status::{{{status|}}}]]
|header4 =
}}
|label4 = Average Attendees

|data4 = {{#if:{{{attendees|}}}|{{{attendees|<noinclude>100</noinclude>}}}|}}
|-
|header5 =
{{#if:{{{attendees|}}}|
|label5 = Next held on
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Average attendees
|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|}}}
{{!}} {{{attendees|}}}
{{!}}TBD = {{#set:Eventnotscheduled=TRUE}}
}}
{{!}}{{#set:Eventnotscheduled=FALSE}}
|-
}}|}}
{{#if:{{{nextdate|}}}|
|header6 =
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}}{{#set:Eventstartdate={{#time: F j, Y | {{{nextdate}}}}}}} Next held on
|label6 = First held on
{{!}} {{#if:{{{nextends|}}}|{{#time: F j, Y | {{{nextdate|}}}}}|[[Eventdate::{{#time: F j, Y | {{{nextdate|}}}}}]]}} {{#if:{{{nextends|}}}|to [[Eventends::{{#time: F j, Y | {{{nextends|}}}}}]]}}
|data6 = {{#if:{{{began|<noinclude>February 2, 2008</noinclude>}}}|{{#time: F j, Y |{{{began|<noinclude>February 2, 2008</noinclude>}}}}}}}
}}
|header7 =
{{#switch: {{{nextdate|}}}
|label7 = Last held on
|TBD = {{#set:Eventnotscheduled=TRUE}}
|data7 = {{#if:{{{lastheld|<noinclude>February 28, 2008</noinclude>}}}|{{#time: F d, Y |{{{lastheld|<noinclude>February 28, 2008</noinclude>}}}}}}}
| {{#set:Eventnotscheduled=FALSE}}
|header8 =
}}
|label8 = Setting
|-
|data8 = {{{setting|<noinclude>Camping</noinclude>}}}
{{#if:{{{began|}}}|
|header9 =
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} First held on
|label9 = Website
{{!}} [[Begandate::{{#time: F j, Y |{{{began|}}}}}]]
|data9 = <div class="plainlinks" style="overflow:auto;width:100%;padding:2px;margin;0">[[eventwebsite::{{{url|<noinclude>http://ww.example.com</noinclude>}}}]]</div>
}}
|header10 =
|-
|label10 = Subscribe
{{#if:{{{lastheld|}}}|
|data10 = <includeonly>{{#ask:
! 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::+]]
[[Eventstartdate::+]]
[[{{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}}
}}</includeonly><noinclude>RSS</noinclude> '''·''' {{#get_web_data:url=http://dreamhart.org/tiny.php?url=<noinclude>http://www.example.com</noinclude><includeonly>{{#ask:
}} '''·''' {{#get_web_data:
url=http://dreamhart.org/tiny.php?url={{#ask:
[[Eventstartdate::+]]
[[Eventstartdate::+]]
[[{{FULLPAGENAME}}]]
[[{{FULLPAGENAME}}]]
[[Status::Active]]
[[Status::Active]]
|? Eventstartdate = start
{{!}}? Eventstartdate = start
|? Eventends = end
{{!}}? Eventends = end
|format=icalendar
{{!}}format=icalendar
|sort=Eventstartdate
{{!}}sort=Eventstartdate
|order=ASC
{{!}}order=ASC
|searchlabel=
{{!}}searchlabel=
|title=Upcoming {{FULLPAGENAME}}
{{!}}title=Upcoming {{FULLPAGENAME}}
|description=Upcoming {{FULLPAGENAME}}
{{!}}description=Upcoming {{FULLPAGENAME}}
}}</includeonly>
}}
|format=csv|data=theurl=1}}
{{!}}format=csv{{!}}data=theurl=1}}<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 97: Line 79:
}}
}}
</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>

Revision as of 20:37, 18 October 2014

Infobox event
|
Caption goes here
Organizer(s) Organizer(s)
Status Active
Next held on May 7, 2024
First held on February 2, 2008
Last held on February 28, 2008
Setting Camping
Website
Subscribe RSS · [Error: no local variable "theurl" has been set. iCal]