Sandbox:Extensions

From UBC Wiki
(Redirected from Extensions)

This page is used to test extensions.

Cite

Extension:Cite

According to scientists, the Sun is pretty big.[1] The Moon, however, is not so big.[2]


Notes

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.
  2. R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.

Example


According to scientists, the Sun is pretty big.<ref>E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.</ref>
The Moon, however, is not so big.<ref>R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.</ref>


'''Notes'''
<references/>

DPL

DynamicPageList

Very simple example. All pages from Category:Help

<dpl>
category  = Help
order     = ascending
columns     = 5
</dpl>

RSS Reader

 <rss number=2 title=off desc=off text width=800>http://www.publicaffairs.ubc.ca/rss/ubc_media.xml</rss> 

<rss number=3 title=off desc=off text width=800>http://www.publicaffairs.ubc.ca/rss/ubc_media.xml</rss>

Math



Is created using LaTeX syntax:

<math>x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}</math>

Embed Video

Extension:EmbedVideo

Example

{{#widget:YouTube|id=TaXqU7hVVhI|400}}


{{#ev:googlevideo|-2125973464268127484|400}}


{{#ev:googlevideo|-2125973464268127484|400}}


Flash MP3

Extension:FlashMP3

UBC podcast: Saving Tuna: Lessons from Cod Mismanagement <flashmp3>http://www.ubc.ca/podcasts/media/mp3/2008/18022008_aaas_newsbriefing.mp3%7CrestTitle=UBC podcast: Saving Tuna: Lessons from Cod Mismanagement</flashmp3>



Example This can call remote mp3 files or local.

<flashmp3>http://www.ubc.ca/podcasts/media/mp3/2008/18022008_aaas_newsbriefing.mp3</flashmp3>

Flash

Extension:Flash


Flash Show

Extension:Flashow Example

This can call remote flash files.

<flashow>http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=semantic-media-wiki-semantic-forms-1205504882436734-4&stripped_title=semantic-media-wiki-semantic-forms|width=500|height=300</flashow>


<flashow>http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=semantic-media-wiki-semantic-forms-1205504882436734-4&stripped_title=semantic-media-wiki-semantic-forms%7Cwidth=500%7Cheight=300</flashow>

PubMed

<pubmed>12835277, 12176826 </pubmed> 

<pubmed>12835277, 12176826 </pubmed>


Google Maps

Google Maps Extention

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.

Screen Casts: My First Map, 3 minutes [1] (10 MB) My First Path, 3 minutes 36 seconds [2] (16 MB)


Example of a Flickr KML feed into Google Map.

<googlemap version="0.9" lat="49.273181" lon="-123.138885" zoom="11">
http://api.flickr.com/services/feeds/geo/?id=56325980@N00
</googlemap>

<googlemap version="0.9" lat="49.273181" lon="-123.138885" zoom="11"> http://api.flickr.com/services/feeds/geo/?id=56325980@N00 </googlemap>