Open main menu

Extension:Firebase

MediaWiki extensions manual
OOjs UI icon advanced.svg
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 (2012-08-23)
MediaWiki 1.17
License Creative Commons Attribution-ShareAlike 3.0 Unported License
Download
<firebase>, <firebaseraw>
Translate the Firebase extension if it is available at translatewiki.net
Check usage and version matrix.

Allows wiki pages to display live data from Firebase references.

UsageEdit

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.

InstallationEdit

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".

NotesEdit

This extension is not affiliated with the developers of Firebase.