Template:Infobox event: Difference between revisions

From AnOtherWiki, the free encyclopedia written by, for, and about the Otherkin community.
No edit summary
m (Text replacement - "(['][']['])(.*)(['][']['])" to "{{b|$2}}")
 
(43 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
|data8 = {{{setting|<noinclude>Camping</noinclude>}}}
|header9 =
|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 =
|label10 = Subscribe
|data10 = {{#ask:
[[Eventstartdate::+]]
[[{{FULLPAGENAME}}]]
[[Status::Active]]
|? Eventstartdate#ISO = date
|format=rss
|sort=Eventstartdate
|order=ASC
|searchlabel= RSS
|rsstitle=Upcoming {{FULLPAGENAME}}
|rssdescription=Upcoming {{FULLPAGENAME}}
}} {{b|·}} {{#get_web_data:url=https://dreamhart.org/lilliputian.php?url={{#ask:
[[Eventstartdate::+]]
[[{{FULLPAGENAME}}]]
[[Status::Active]]
|? Eventstartdate = start
|? Eventenddate = end
|format=iCalendar
|sort=eventstartdate
|order=ASC
|searchlabel=iCal
|default=No results found
|title={{FULLPAGENAME}}
}}
}}
|format=csv|data=theurl=1|suppress error}}<span class="plainlinks">[{{#external_value:theurl}} iCal]</span>

|belowstyle = background:#ddf;
|-
|below =
{{#if:{{{attendees|}}}|
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Average attendees
{{!}} {{{attendees|}}}
}}
|-
{{#if:{{{nextdate|}}}|
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}}{{#set:Eventstartdate={{#time: F j, Y | {{{nextdate}}}}}}} Next held on
{{!}} {{#if:{{{nextends|}}}|{{#time: F j, Y | {{{nextdate|}}}}}|[[Eventdate::{{#time: F j, Y | {{{nextdate|}}}}}]]}} {{#if:{{{nextends|}}}|to [[Eventends::{{#time: F j, Y | {{{nextends|}}}}}]]}}
}}
{{#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|}}}
}}
|}
{{#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 67: 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

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 · [there iCal]