Extension:Firebase
Firebase Release status: beta |
|||
---|---|---|---|
Implementation | Tag | ||
Description | Allows wiki pages to display live data from Firebase references. | ||
Author(s) | Benny Lichtner (Bennlichtalk) | ||
Latest version | 1.0 (23 August, 2012) | ||
MediaWiki | 1.17 | ||
License | Creative Commons Attribution-ShareAlike 3.0 Unported License | ||
Download | https://github.com/bennlich/Mediawiki-Firebase https://github.com/bennlich/Mediawiki-Firebase/blob/master/README.md https://github.com/bennlich/Mediawiki-Firebase/commits/master |
||
|
|||
|
|||
Translate the Firebase extension if it is available at translatewiki.net |
|||
Check usage and version matrix; code metrics |
Allows wiki pages to display live data from Firebase references.
Usage[edit | edit source]
There are two new tags for retrieving data from a Firebase reference: <firebase> and <firebaseraw>. Here's how they work.
<firebase url="https://myfirebase.firebaseIO.com/mydata" />
The <firebase> tag will be replaced by a <span></span> element that fills itself with live data from the provided Firebase URL. You can also use the tag with templates, for example:
<firebase url="{{{url}}}/data/size" />
Alternatively, the <firebaseraw> tag will be replaced only once, before most other widgets, templates, or extensions are loaded. This means you can insert the tag into something like a Google Street View Widget:
{{#widget:Google Street View |lat=<firebaseraw url="http://myfirebase.firebaseIO.com/lat" /> |lng=<firebaseraw url="http://myfirebase.firebaseIO.com/lng" /> |yaw=370.64659986187695 |pitch=-20 |zoom=0 }}
Pretty cool, right?
See http://www.firebase.com for more information on how to set up a Firebase reference.
Installation[edit | edit source]
Install by copying the repository contents to someplace in the extensions directory, like extensions/Firebase/. Then add the following (or equivalent) to LocalSettings.php:
require_once( "$IP/extensions/Firebase/Firebase.php" );
In this case I've renamed the repository from "Mediawiki-Firebase" to "Firebase".
Notes[edit | edit source]
This extension is not affiliated with the developers of Firebase.