Extension:Gitweb

The Gitweb extension adds the #gitweb parser function that allows embedding files from a gitweb instance.

Requirements
Gitweb requires:


 * PHP 5.3 or above
 * MediaWiki 1.16 or later

Installation
Once you have downloaded the code, place the Gitweb directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

Usage
The #gitweb parser function takes 2 arguments, the first being the file name, the second being the repository name. Both are optional and default to their corresponding settings (see below).

Example 0:

Example 1:

Example 2:

Version
This is a copy of the release notes file on GIT, which might be more up to date than this page.

Internationalization
is fully internationalized. Translation of messages is done through translatewiki.net. The translation for this extension can be found here. To add language values or change existing ones, you should create an account on translatewiki.net, then request permission from the administrators to translate a certain language or languages on this page (this is a very simple process). Once you have permission for a given language, you can log in and add or edit whatever messages you want to in that language.