Extension:Gists
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
![]() Release status: unmaintained |
|
---|---|
Implementation | Tag |
Description | Allows you to embed Github's gists using the <gist> tag. |
Author(s) | Mauro Veron (Maurov~mediawikiwikitalk) |
Latest version | 1.0 (2012-08-11) |
MediaWiki | 1.19.1+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | Download snapshot Note: README |
Example | wiki.dwscoalition.org |
<gist> |
|
The Gists extension allows you to embed Github's gists using the <gist>
tag.
UsageEdit
- General usage
<gist [file=<FILE-NAME>|files=<FILE-NAMES>]><GIST-ID></gist>
- Example
Embed the Gist foxfirefey/4964230:
<gist>4964230</gist>
And shows up as such:
View code at: https://gist.github.com/4964230.js
- Example with file argument
Use this to embed a specific file:
<gist file="nginx.conf">9263794</gist>
InstallationEdit
- Download and place the file(s) in a directory called
Gists
in yourextensions/
folder. - Add the following code at the bottom of your
LocalSettings.php
:require_once "$IP/extensions/Gists/Gists.php";
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.