Template:Event: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(37 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{Event | {{Event | ||
|Name= | |Name= | ||
|Event_Date= | |||
|Start_Date= | |Start_Date= | ||
|End_Date= | |End_Date= | ||
|Description= | |||
|People= | |||
|Organization= | |Organization= | ||
|Organization_Url= | |Organization_Url= | ||
Line 16: | Line 19: | ||
|Social_Name= | |Social_Name= | ||
|Social_Url= | |Social_Url= | ||
|Type= | |Type= | ||
| | |Format= | ||
|Location= | |Location= | ||
|Street= | |Street= | ||
Line 26: | Line 26: | ||
|State= | |State= | ||
|Zip= | |Zip= | ||
|ShowMap= | |||
|Coordinates= | |||
|Cause= | |||
|Region= | |Region= | ||
|Water= | |Water= | ||
| | |Image= | ||
|SubTitle= | |SubTitle= | ||
|Text_Body= | |Text_Body= | ||
|Topic= | |||
|Article= | |Article= | ||
|Keywords= | |Keywords= | ||
Line 40: | Line 42: | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
{{#cargo_declare:_table=Event|Name=String|Start_Date=Datetime|End_Date=Datetime|Organization=String|Organization_Url=URL|Contact_Name=String|Contact_Email=Email|Contact_Phone=String|Event_Url=URL|Social_Type=String|Social_Name=String|Social_Url=URL | {{#cargo_declare:_table=Event|Name=String|Event_Date=Datetime|Start_Date=Datetime|End_Date=Datetime|Description=Wikitext||People=String|Organization=String|Organization_Url=URL|Contact_Name=String|Contact_Email=Email|Contact_Phone=String|Event_Url=URL|Social_Type=String|Social_Name=String|Social_Url=URL|Type=String|Format=String|Location=String|Street=String|City=String|State=String|Zip=String|Coordinates=Coordinates|Cause=String|Region=String|Water=String|Image=File|SubTitle=String|Text_Body=Wikitext|Topic=String|Article=Page|Keywords=String|Poster=String|Posted=String}} | ||
</noinclude><includeonly>{{#cargo_store:_table=Event|Name={{{Name|}}}|Start_Date={{{Start_Date|}}}|End_Date={{{End_Date|}}}|Organization={{{Organization|}}}|Organization_Url={{{Organization_Url|}}}|Contact_Name={{{Contact_Name|}}}|Contact_Email={{{Contact_Email|}}}|Contact_Phone={{{Contact_Phone|}}}|Event_Url={{{Event_Url|}}}|Social_Type={{{Social_Type|}}}|Social_Name={{{Social_Name|}}}|Social_Url={{{Social_Url|}}}| | </noinclude><includeonly>{{#cargo_store:_table=Event|Name={{{Name|}}}|Event_Date={{{Event_Date|}}}|Start_Date={{{Start_Date|}}}|End_Date={{{End_Date|}}}|Description={{{Description|}}}|People={{{People|}}}|Organization={{{Organization|}}}|Organization_Url={{{Organization_Url|}}}|Contact_Name={{{Contact_Name|}}}|Contact_Email={{{Contact_Email|}}}|Contact_Phone={{{Contact_Phone|}}}|Event_Url={{{Event_Url|}}}|Social_Type={{{Social_Type|}}}|Social_Name={{{Social_Name|}}}|Social_Url={{{Social_Url|}}}|Type={{{Type|}}}|Format={{{Format|}}}|Location={{{Location|}}}|Street={{{Street|}}}|City={{{City|}}}|State={{{State|}}}|Zip={{{Zip|}}}|Coordinates={{{Coordinates|}}}|Cause={{{Cause|}}}|Region={{{Region|}}}|Water={{{Water|}}}|Image={{{Image|}}}|SubTitle={{{SubTitle|}}}|Text_Body={{{Text_Body|}}}|Topic={{{Topic|}}}|Article={{{Article|}}}|Keywords={{{Keywords|}}}|Poster={{{Poster|}}}|Posted={{{Posted|}}} }} | ||
<templatestyles src="Event/styles.css" /> | <templatestyles src="Event/styles.css" /> | ||
<div class="irlbody | <div class="irlbody irlevent"> | ||
{{#ifeq:{{NAMESPACE}} | Event | {{IRL_header|cat=Events|toc=no}} }} | {{#ifeq:{{NAMESPACE}} | Event | {{IRL_header|cat=Events|toc=no}} }} | ||
<div class="irleventtop"> | <div class="irleventtop"> | ||
{{#if:{{{Image|}}} | <div class="irleventimage">[[File:{{{Image|}}}|640px|thumb|left|alt={{{Name|}}}|[[:Category:Events|Indian River Lagoon Events]]|link=]]</div >| }} | |||
<div class="irleventtitle">{{{Name|}}}</div> | <div class="irleventtitle">{{{Name|}}}</div> | ||
<div class=" | <div class="irleventdesc">{{{Description|}}}</div> | ||
</div> | </div> | ||
<div class="irleventmiddle"><div class="irleventlabel">Who: </div> | <div class="irleventmiddle"><div class="irleventlabel">Who: </div> | ||
{{#if:{{{People|}}}|<div class="irleventpeople">{{{People|}}}</div>}} | {{#if:{{{People|}}}|<div class="irleventpeople">{{{People|}}}</div>}} | ||
{{#if:{{{Organization|}}} |<div class="irleventorg">Organization: {{#if:{{{Organization_Url|}}}|[{{{Organization_Url | {{#if:{{{Organization|}}} |<div class="irleventorg">Organization: {{#if:{{{Organization_Url|}}}|[{{{Organization_Url}}} {{{Organization}}}]| {{{Organization}}} }}</div> |}}{{#if:{{{Contact_Name|}}} | <div class="irleventcontactname">Contact: {{{Contact_Name}}}</div> |}}{{#if:{{{Contact_Email|}}} | <div class="irleventcontactemail">Email: {{{Contact_Email}}}</div> |}}{{#if:{{{Contact_Phone|}}} | <div class="irleventcontactphone">Phone: {{{Contact_Phone}}}</div> |}}</div> | ||
<div class="irleventmiddle"> | <div class="irleventmiddle">{{#if:{{{Type|}}}|<div class="irleventtype"><span class="irleventlabel">What: </span>{{{Type}}}</div>|}}</div> | ||
{{#if:{{{ | <div class="irleventmiddle">{{#if:{{{Event_Date|}}}|<div class="irleventdate"><span class="irleventlabel">When: </span>{{#time: F d, Y g:i a|{{{Event_Date}}} }}</div>}}{{#if:{{{Start_Date|}}}|<div class="irleventdate">Duration: | ||
{{#time: F d, Y g:i a|{{{Start_Date | <div class="irleventdate">{{#time: F d, Y g:i a|{{{Start_Date}}} }}{{#if:{{{End_Date|}}}| thru {{#time: F d, Y g:i a|{{{End_Date}}} }} }}</div>}}</div> | ||
</div> | <div class="irleventmiddle">{{#switch: {{{Format|}}} | ||
<div class="irleventmiddle"> | | Online = <div class="irleventlocation"><span class="irleventlabel">Where: </span>Online Event</div> | ||
{{# | | #default = <div class="irleventlabel">Where: </div> | ||
{{#if:{{{Location|}}}|<div class="irleventlocation">{{{Location|}}}</div>}} | |||
{{#if:{{{Street|}}}|<div class="irleventstreet">{{{Street|}}}</div>}} | {{#if:{{{Street|}}}|<div class="irleventstreet">{{{Street|}}}</div>}} | ||
{{#if:{{{City|}}} | <div class="irleventcity">{{{City|}}} {{#if:{{{State|}}}|, {{{State|}}}|}} {{#if:{{{Zip|}}}| {{{Zip|}}} | {{#if:{{{City|}}} | <div class="irleventcity">{{{City|}}} {{#if:{{{State|}}}|, {{{State|}}}|}} {{#if:{{{Zip|}}}| {{{Zip|}}} }}</div>}} | ||
{{#if:{{{ShowMap|}}} | {{#if:{{{Coordinates|}}}|<div class="irleventmap"><div class=" | {{#if:{{{ShowMap|}}} | {{#if:{{{Coordinates|}}}|<div class="irleventmap"><div class="mw-collapsible" data-expandtext="Show Map" data-collapsetext="Hide Map"> Coordinates: {{{Coordinates|}}} | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
{{#cargo_display_map:point= {{#if:{{{Coordinates|}}}|{{{Coordinates|}}}|27.969289,-80.9981331}}|service=googlemaps|width=inherit|height= | {{#cargo_display_map:point= {{#if:{{{Coordinates|}}}|{{{Coordinates|}}}|27.969289,-80.9981331 }}|service=googlemaps|width=inherit|height=400px|zoom=12 }}</div></div></div> }} }} | ||
</div></div>| | }}</div> | ||
<div class="irleventmiddle"><div class="irleventlabel">Why: </div> | |||
{{#if:{{{Cause|}}}|<div class="irleventcause">Cause: {{{Cause|}}}</div>}} | |||
{{#if:{{{Region|}}}|<div class="irleventregion">Region: {{{Region|}}}</div>}} | |||
{{#if:{{{Water|}}}|<div class="irleventwater">Water Body: {{{Water|}}}</div>}}</div> | |||
<div class="irleventmiddle">{{#if:{{{Event_Url|}}} | <span class="irleventlabel">Web Link: </span><span class="irleventurl">[[File:Icon-www.png|32px|alt=IRL Event Web Link|IRL Event Web Link|link={{{Event_Url|}}}]] [{{{Event_Url}}} {{{Name}}}]</span>|}}</div> | |||
<div class="irleventmiddle">{{#if:{{{Social_Type|}}}|{{#if:{{{Social_Url|}}}|<span class="irleventlabel">Social Media: </span><span class="irleventsocial">[[File:Icon-{{lc:{{{Social_Type|}}} }}.png|32px|alt={{{Social_Name|}}} {{{Social_Type}}} Link|{{{Social_Name|}}} {{{Social_Type}}} Link|link={{{Social_Url|}}}]] [{{{Social_Url}}} {{{Social_Name|}}} {{{Social_Type}}}]</span>|}} |}}</div> | |||
<div class="irleventmiddle"> | |||
{{#if:{{{SubTitle|}}} | <div class="irleventsubtitle">{{{SubTitle|}}}</div>}} | |||
{{#if:{{{Text_Body|}}}|<div class="irleventtext">{{{Text_Body|}}}</div>}} | |||
</div> | </div> | ||
<div class=" | <div class="irleventbottom"> | ||
{{# | {{#ifexist:{{{Article|}}}|<div class="irleventpage"><span class="irleventlabel">See Also: </span>[[{{{Article|}}}]]</div>|}} | ||
{{#if:{{{ | {{#if:{{{Topic|}}}|<div class="irleventtopic"><span class="irleventlabel">Topic: </span>[[:Category:{{{Topic|}}}{{!}}{{{Topic|}}}]]</div>}} | ||
<!-- <div class="irleventpost"><span class="irleventposter">Poster: {{{Poster|}}}</span><span class="irleventposted">Posted: {{#time: m/d/Y|{{{Posted|}}} }}</span></div> --> | |||
</div> | </div> | ||
</div> | </div> | ||
{{#ifeq:{{NAMESPACE}}| Event | [[Category:Events {{#time: Y|{{{Event_Date|}}} }}]] [[Category:{{{Region|}}} Events]] {{#default_form:Event}} | |||
{{#ifeq:{{NAMESPACE}}| Event | [[Category:Events {{#time: Y|{{{ | |||
{{#seo: | {{#seo: | ||
|title={{{Name|}}} - Indian River Lagoon | |title={{{Name|}}} - Indian River Lagoon Events | ||
|title_mode=replace | |title_mode=replace | ||
|keywords={{#if: {{{Keywords|}}} | {{{Keywords|}}} |{{SITENAME}}, Event, }} | |keywords={{#if: {{{Keywords|}}} | {{{Keywords|}}} |{{SITENAME}}, Event, }} | ||
Line 97: | Line 97: | ||
|site_name={{SITENAME}} | |site_name={{SITENAME}} | ||
|author=IRLNews | |author=IRLNews | ||
|section= | |section= Events | ||
|published_time={{{Published_Date|}}} | |published_time={{{Published_Date|}}} | ||
}} | }} |
Latest revision as of 06:38, June 11, 2022
This is the "Event" template. It should be called in the following format:
{{Event |Name= |Event_Date= |Start_Date= |End_Date= |Description= |People= |Organization= |Organization_Url= |Contact_Name= |Contact_Email= |Contact_Phone= |Event_Url= |Social_Type= |Social_Name= |Social_Url= |Type= |Format= |Location= |Street= |City= |State= |Zip= |ShowMap= |Coordinates= |Cause= |Region= |Water= |Image= |SubTitle= |Text_Body= |Topic= |Article= |Keywords= |Poster= |Posted= }}
Edit the page to see the template text. This template defines the table "Event". View table.
Event Template Documentation
Event Template uses event form to collect info for an event listing.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | Name | no description | String | required |
Event_Date | Event_Date | no description | Date | required |
Start_Date | Start_Date | no description | Date | optional |
End_Date | End_Date | no description | Date | optional |
Description | Description | Enter a brief summary | Unknown | required |
People | People | Enter semi-colon separated credits ie: Title: Guest Name; Title2: Name2 | String | optional |
Organization | Organization | no description | String | optional |
Organization_Url | Organization_Url | Enter full path url (ie: https://...) | URL | optional |
Contact_Name | Contact_Name | no description | String | optional |
Contact_Email | Contact_Email | no description | String | optional |
Contact_Phone | Contact_Phone | no description | String | optional |
Event_Url | Event_Url | Enter a full path url ( ie: https://... ) | URL | optional |
Social_Type | Social_Type | no description | String | optional |
Social_Name | Social_Name | no description | String | optional |
Social_Url | Social_Url | no description | URL | optional |
Type | Type | no description | String | optional |
Format | Format | no description | String | optional |
Location | Location | no description | String | optional |
Street | Street | no description | String | optional |
City | City | no description | String | optional |
State | State | no description | String | optional |
Zip | Zip | no description | String | optional |
ShowMap | ShowMap | no description | String | optional |
Coordinates | Coordinates | no description | String | optional |
Cause | Cause | no description | String | optional |
Region | Region | no description | String | optional |
Water | Water | no description | String | optional |
Image | Image | no description | File | optional |
SubTitle | SubTitle | no description | String | optional |
Text_Body | Text_Body | no description | Unknown | required |
Topic | Topic | no description | String | optional |
Article | Article | no description | Page name | optional |
Keywords | Keywords | no description | String | optional |
Poster | Poster | no description | String | optional |
Posted | Posted | no description | String | optional |
The above documentation is transcluded from Template:Event/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |