Difference between revisions of "Template:Infobox event"

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
(minor adjustments to spacing)
 
(4 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
{{#if:{{{start_date|<noinclude>x</noinclude>}}}|
 
{{#if:{{{start_date|<noinclude>x</noinclude>}}}|
 
! Start Date
 
! Start Date
{{!}} {{date|{{{start_date}}}|mdy}}
+
{{!}} {{date|{{{start_date}}}|mdy}} {{#if:{{{start_time|<noinclude>x</noinclude>}}}|@ {{{start_time}}}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if:{{{end_date|<noinclude>x</noinclude>}}}|
 
{{#if:{{{end_date|<noinclude>x</noinclude>}}}|
 
! End Date
 
! End Date
{{!}} {{date|{{{end_date}}}|mdy}}
+
{{!}} {{date|{{{end_date}}}|mdy}} {{#if:{{{end_time|<noinclude>x</noinclude>}}}|@ {{{end_time}}}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if:{{{cost|<noinclude>x</noinclude>}}}|
 
{{#if:{{{cost|<noinclude>x</noinclude>}}}|
 
! Cost
 
! Cost
{{!}} {{{cost}}}
+
{{!}} {{#switch: {{{cost}}}
 +
| Free = Free (Donations Always Welcome)
 +
| {{{cost}}}
 +
}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if:{{{website|<noinclude>x</noinclude>}}}|
 
{{#if:{{{website|<noinclude>x</noinclude>}}}|
 
! Website
 
! Website
{{!}} [{{{website}}} {{{website}}}]
+
{{!}} {{#if:{{{website_name|<noinclude>x</noinclude>}}} | [{{{website}}} {{{website_name}}}] | [{{{website}}}] }}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 33: Line 36:
 
! Location
 
! Location
 
{{!}} {{{location}}}
 
{{!}} {{{location}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{address|<noinclude>x</noinclude>}}}|
 +
! Address
 +
{{!}} {{{address}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{city|<noinclude>x</noinclude>}}}|
 +
! City
 +
{{!}} {{{city}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{state|<noinclude>x</noinclude>}}}|
 +
! State
 +
{{!}} {{{state}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{zip|<noinclude>x</noinclude>}}}|
 +
! Zip
 +
{{!}} {{{zip}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{country|<noinclude>x</noinclude>}}}|
 +
! Country
 +
{{!}} {{{country}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{address|<noinclude>x</noinclude>}}}|
 +
! Map
 +
{{!}} [http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q={{urlencode:{{{address}}}}},+{{{city}}},+{{{state}}}+{{{zip}}}&z=17 Google Maps]
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 39: Line 72:
 
{{!}}-
 
{{!}}-
 
! colspan="2" style="text-align: center;"{{!}}
 
! colspan="2" style="text-align: center;"{{!}}
{{#if:{{{digg|<noinclude>x</noinclude>}}}|[[Image:Digg_Icon.png|30px|link={{{digg}}}|alt=Digg]]}}{{#if:{{{facebook|<noinclude>x</noinclude>}}}|[[Image:Facebook_Icon.png|30px|link={{{facebook}}}|alt=Facebook]]}}{{#if:{{{flickr|<noinclude>x</noinclude>}}}|[[Image:Flickr_Icon.png|30px|link={{{flickr}}}|alt=Flickr]]}}{{#if:{{{myspace|<noinclude>x</noinclude>}}}|[[Image:Myspace_Icon.png|30px|link={{{myspace}}}|alt=MySpace]]}}{{#if:{{{youtube|<noinclude>x</noinclude>}}}|[[Image:Youtube_Icon.png|30px|link={{{youtube}}}|alt=YouTube]]}}
+
{{#if:{{{digg|<noinclude>x</noinclude>}}}|[[Image:Digg_Icon.png|30px|link={{{digg}}}|alt=Digg]]}}{{#if:{{{facebook|<noinclude>x</noinclude>}}}|[[Image:Facebook_Icon.png|30px|link={{{facebook}}}|alt=Facebook]]}}{{#if:{{{flickr|<noinclude>x</noinclude>}}}|[[Image:Flickr_Icon.png|30px|link={{{flickr}}}|alt=Flickr]]}}{{#if:{{{myspace|<noinclude>x</noinclude>}}}|[[Image:Myspace_Icon.png|30px|link={{{myspace}}}|alt=MySpace]]}}{{#if:{{{twitter|<noinclude>x</noinclude>}}}|[[Image:Twitter_Icon.png|30px|link={{{twitter}}}|alt=Twitter]]}}{{#if:{{{youtube|<noinclude>x</noinclude>}}}|[[Image:Youtube_Icon.png|30px|link={{{youtube}}}|alt=YouTube]]}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}

Latest revision as of 17:54, 25 August 2010

{{{event_name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}]]

{{{caption}}}

Information
Start Date {{{start_date}}} @ {{{start_time}}}
End Date {{{end_date}}} @ {{{end_time}}}
Cost {{{cost}}}
Website [{{{website}}} {{{website_name}}}]
Location {{{location}}}
Address {{{address}}}
City {{{city}}}
State {{{state}}}
Zip {{{zip}}}
Country {{{country}}}
Map Google Maps
Media

DiggFacebookFlickrMySpaceTwitterYouTube


[edit] [purge] Template documentation

Usage

{{Infobox event
|event_name =
|image = 
|image_size = 
|alt = 
|caption = 
|start_date = 
|start_time = 
|end_date = 
|end_time = 
|website = 
|location = 
|address = 
|city = 
|state = 
|zip = 
|media = 
|digg = 
|facebook = 
|flickr = 
|myspace = 
|youtube =
}}
  • event_name — the name of the event
  • image — the image file name to use in the infobox (Note: only the file name is needed the template automatically links the file)
  • image_size — the desired size of the image in pixels (Default: 250px)
  • alt — alternate text to show up when the image is moused over
  • caption — the caption to show up underneath the picture
  • start_date — the date the event starts on (Note: the template does attempt to format the date)
  • start_time — the time the event is expected to start at
  • end_date — the date the event ends on (Note: the template does attempt to format the date)
  • end_time — the time the event is expected to end at
  • cost — the cost to attend the event
  • website — the website of the event
  • location — where the event is to be held at
  • mediayes or no, whether to display the media section or not
  • digg — the project's digg link
  • facebook — the project's facebook link
  • flickr — the project's flickr link
  • myspace — the project's myspace link
  • youtube — the project's youtube link