Extension:Firebase

MediaWiki extensions manual
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
‎<firebase>, ‎<firebaseraw>

Allows wiki pages to display live data from Firebase references.

Usage

edit

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

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

This extension is not affiliated with the developers of Firebase.