Template:Git file/doc

Usage
{	"params": { "project": { "label": "Repository", "description": "Which Git repository the file is in.", "type": "string", "default": "mediawiki/core" },		"action": { "label": "Mode", "description": "One of \"browse\" or \"raw\"", "type": "string", "default": "browse" },		"branch": { "label": "Branch", "description": "Which branch of the repository the file is in.", "type": "string", "default": "master" },		"file": { "label": "File", "description": "Path to the file within the specified repository and branch.", "example": "includes/MediaWiki.php", "type": "string", "required": true, "suggested": true },		"sha": { "label": "Commit", "description": "The SHA-1 hash of the specific commit within a branch. Use this to make a permalink.", "type": "string" },		"line": { "label": "Line number", "description": "The link will anchor to this line within the file, and highlight it.", "example": "42", "type": "number" },		"text": { "label": "Label", "description": "The text that become the link.", "type": "string", "default": "The 'file' parameter value." }	},	"description": "Generates a link to view the file in Diffusion (Phabricator).", "paramOrder": [ "text", "action", "project", "branch", "sha", "file", "line" ],	"format": "inline" }

Example
produces
 * Basic

produces

produces
 * text

produces
 * action

produces

produces
 * line number

produces
 * project summary page (deprecated)

^ 2015-08-27 this is actually only working by coincidence, https://phabricator.wikimedia.org/diffusion/GOJS/blahblah/anythingUnrecognized also redirects to the simple https://phabricator.wikimedia.org/diffusion/GOJS/ summary page ''Instead use the proper git repo template.

Known issues

 * Merge with Git, or maybe Gerrit, MW file, etc. but simpler?