Extension:Firebase
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
Firebase Release status: unmaintained |
|
---|---|
Implementation | Tag |
Description | Allows wiki pages to display live data from Firebase references. |
Author(s) | Benny Lichtner (Bennlichtalk) |
Latest version | 1.0 (2012-08-23) |
MediaWiki | 1.17 |
License | Creative Commons Attribution Share Alike 3.0 |
Download | GitHub: Note: |
<firebase> , <firebaseraw> |
|
Allows wiki pages to display live data from Firebase references.
Usage
editThere 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
editInstall 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
editThis extension is not affiliated with the developers of Firebase.