Go Back   Minnesota Off-Road Cyclists Discussion Forums > MORC Wiki

Notices

Wiki Tips and Tricks

From MORC Wiki

[edit] Inserting Multimedia Into A Page

Youtube

Original url: http://www.youtube.com/watch?v=4lhyH5TsuPg

Wiki code:

<videoflash>4lhyH5TsuPg</videoflash>

or (with width and height):

<videoflash>WZpeeRSk-0A|200|100</videoflash>

GoogleVideo

Original url: http://video.google.it/videoplay?docid=1811233136844420765

Wiki code:

<videoflash type="googlevideo">1811233136844420765</videoflash>

or (with width and height):

<videoflash type="googlevideo">1811233136844420765|200|150</videoflash>

DailyMotion

Original url: http://www.dailymotion.com/video/xi23l_geris-game

Wiki code:

<videoflash type="dailymotion">7fiHlJPCjcqK73xbb</videoflash>

or (with width and height):

<videoflash type="dailymotion">7fiHlJPCjcqK73xbb|640|480</videoflash>

Sevenload

Original url: http://en.sevenload.com/videos/Eh4mjir/Bewegungen-der-Natur

Wiki code:

<videoflash type="sevenload">Eh4mjir</videoflash>

or (with width and height):

<videoflash type="sevenload">Eh4mjir|640|480</videoflash>

Revver

Original url: http://one.revver.com/watch/138657

Wiki code:

<videoflash type="revver">138657</videoflash>

or (with width and height):

<videoflash type="revver">138657|640|480</videoflash>


[edit] Inserting Google Maps

An extension was added to allow the addition of Google Maps. Below is a page with syntax for maps. You can also click "create map" while editing a trail review.

The extension hooks into your MediaWiki installation in two ways: first, it defines a <googlemap> tag that translates a special syntax into a map with captioned markers. As the name implies, the extension is powered by the miraculous Google Maps API. The extension's syntax is easy; here's an example that will create a map with two captioned points:

<googlemap lat="32.82422" lon="48.481141">
 32.81134, 48.498341, One of many [[gas stations]] in town
 32.82448, 48.504848, The [[town hall]]
 </googlemap>

To help you make maps, the extension also adds a link on each Edit page that says "make a map". This will bring up an editor's map that you can click on to add points, and it will show you corresponding map syntax to paste into your article.

If you're interested, try out the demo (click "make a map" on that page) and then check out the installation page.


This extension defines a <googlemap> tag.

Attributes

Legal attributes are:

  • width (in pixels; defaults to 450)
  • height (in pixels; defaults to 300)
  • lat (the center latitude on the map, defaults to my old dorm room :-)
  • lon (the center longitude on the map)
  • zoom (the zoom level; 0 is the furthest away, 17 is the closest in)
  • type (legal values are normal (or, equivalently, map), hybrid, and satellite; defaults to hybrid)
  • controls (small creates +/- zoom buttons, medium has zoom buttons and pan buttons, large has pan buttons with a sliding *scale for zoom, and none has no buttons)
  • selector (show the map/hybrid/satellite selector? Legal values are yes (default) and no.)
  • scale (show the distance scale? Legal values are yes and no (default).)
  • overview (show the inset navigation map? Legal values are yes and no (default).)
  • icons (URL template for custom markers, with "{label}" where the name of the icon will be inserted; defaults to "http://maps.google.com/mapfiles/marker{label}.png")
  • icon (URL for markers without an icon specified; defaults to http://maps.google.com/mapfiles/marker.png)
  • doubleclick new in 0.7.6 (what to do when the user double-clicks? legal values are recenter (default) and zoom)
  • zoomstyle new in 0.7.6 (legal values are fast (default) and smooth, also known as continuous zooming; only works in some browsers)

All attributes are optional.

Markers

In the content of the tag, you can define one marker per line. Each line may or may not start with an icon name in parentheses; unless you set the "icons" attribute, legal icon names are the upper-case letters of the alphabet. The line should then have the latitude, then a comma, optionally a space, then the longitude, then a comma, then a label for the point. The label can include wiki mark-up (and commas). These are all legal:


<googlemap lat="42.711618" lon="-73.205112" zoom="2" controls="small">
 <nowiki>42.711618,-73.205112,the fabulous, famous [[Sawyer Library]]
42.711618, -73.205112, the fabulous, famous [[Sawyer Library]]
(S) 42.711618, -73.205112, the fabulous, famous [[Sawyer Library]]
</googlemap></nowiki>

Because the "icons" attribute defaults to "http://maps.google.com/mapfiles/marker{label}.png", that last marker will use the icon markerS.png. You can host your own collection of icons on your server, but note that they'll have the same anchor points as Google's default icon.

Check out Mapki's collection of icon images for a bunch of icons you can use.


http://www.mediawiki.org/wiki/Extension:Google_Maps/Syntax


All times are GMT -5. The time now is 02:33 AM.

MORC is an IMBA Affiliate View Our RSS Feed

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC
Copyright 2007: John Lundell / MORC
Inactive Reminders By Icora Web Design