Please show your support of Waihekepedia by adding a link to us from your web site. Waihekepedia T Shirts now available at the Ostend Market

Difference between revisions of "Extensions"

From Waihekepedia
Jump to navigation Jump to search
Line 30: Line 30:
 
Paste this URL between the <nowiki><flashmp3> </flashmp3></nowiki> tags and save your page, your file will be ready for people to play  
 
Paste this URL between the <nowiki><flashmp3> </flashmp3></nowiki> tags and save your page, your file will be ready for people to play  
  
==Google Maps==
+
== Maps==
  
To embed a Google map in a page you will need to know the co-ordinates of the location you wish to display.
+
To embed a map in a page you will need to know the co-ordinates of the location you wish to display.
 
   
 
   
 
[http://maps.google.com/ Google Maps] can be used to find coordinates. Find the place you require coordinates for, and double click on it to centre the map around that point. Then click the "link to this page" link, and the coordinates (in degrees and parts of a degree in decimals) appear in the address bar, eg <nowiki>"http://maps.google.co.uk/?ll=51.455558,-2.605047&spn=0.032304,0.069523".</nowiki> In this case the latitude is 51.455558, and the longitude is -2.605047.
 
[http://maps.google.com/ Google Maps] can be used to find coordinates. Find the place you require coordinates for, and double click on it to centre the map around that point. Then click the "link to this page" link, and the coordinates (in degrees and parts of a degree in decimals) appear in the address bar, eg <nowiki>"http://maps.google.co.uk/?ll=51.455558,-2.605047&spn=0.032304,0.069523".</nowiki> In this case the latitude is 51.455558, and the longitude is -2.605047.
  
In your content add the following tag
+
In your content add the following template macro
  
<nowiki><googlemap lat="51.455558" lon="-2.605047" zoom="5" width="800" height="600" >Map Title</googlemap></nowiki>
+
<nowiki>{{map|lat=51.455558|lon=-2.605047|zoom=5|width=800|height=600|title=Map Title}}</nowiki>
  
 
Zoom can be any number between 1 and 17 - 17 being the most zoomed in  
 
Zoom can be any number between 1 and 17 - 17 being the most zoomed in  
Line 44: Line 44:
 
Set width and height to suit you page.
 
Set width and height to suit you page.
 
Please set the Category of the page to "Maps"
 
Please set the Category of the page to "Maps"
See Maps Category for more gmap options like choosing the satellite or hybrid mode or even showing lines and points.
+
See Maps Category for more map examples with options like choosing the satellite or hybrid mode or even showing lines and points.
  
 
==RSS Feeds==
 
==RSS Feeds==
 
Here is an example of how to add RSS feeds to your page
 
Here is an example of how to add RSS feeds to your page
 
<nowiki><rss>http://feeds.delicious.com/rss/tag/waihekeradio</rss></nowiki>
 
<nowiki><rss>http://feeds.delicious.com/rss/tag/waihekeradio</rss></nowiki>

Revision as of 09:19, 7 October 2014

Add Media Extensions to your Waihekepedia Content

YouTube Videos

In your content simply add <youtube> v </youtube> to the page you are editing. Change the v to the YouTube video ID and save - easy!

Where do I find the video ID?

Go to any YouTube Video - the URL will look something like this:

http://youtube.com/watch?v=ktGWedidACk&mode=related&search=

The bold bit is the video ID


MP3 Files

Simply add <flashmp3>mp3url.mp3</flashmp3>into your content

You can link to an external mp3 file by adding the tag like so: <flashmp3>http://www.yoursite.com/filename.mp3</flashmp3>

You can also upload an mp3 file to the Waihekepedia site and then link to it by doing the following:

Click on the Upload file link in toolbox on the left

Select your file and upload it

Copy the URL of the uploaded file, it will be displayed as a link in the page shown after you have uploaded it

Paste this URL between the <flashmp3> </flashmp3> tags and save your page, your file will be ready for people to play

Maps

To embed a map in a page you will need to know the co-ordinates of the location you wish to display.

Google Maps can be used to find coordinates. Find the place you require coordinates for, and double click on it to centre the map around that point. Then click the "link to this page" link, and the coordinates (in degrees and parts of a degree in decimals) appear in the address bar, eg "http://maps.google.co.uk/?ll=51.455558,-2.605047&spn=0.032304,0.069523". In this case the latitude is 51.455558, and the longitude is -2.605047.

In your content add the following template macro

{{map|lat=51.455558|lon=-2.605047|zoom=5|width=800|height=600|title=Map Title}}

Zoom can be any number between 1 and 17 - 17 being the most zoomed in

Set width and height to suit you page. Please set the Category of the page to "Maps" See Maps Category for more map examples with options like choosing the satellite or hybrid mode or even showing lines and points.

RSS Feeds

Here is an example of how to add RSS feeds to your page <rss>http://feeds.delicious.com/rss/tag/waihekeradio</rss>