Template:Git summary/doc

From Linux Web Expert

Revision as of 17:22, 15 October 2014 by imported>Krinkle
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Git summary/doc


<templatedata> { "description": "Generate a link to a repository's summary page on git.wikimedia.org, our Gitblit server.", "params": { "1": { "label": "Repository name", "description": "Name of the repository on git.wikimedia.org", "type": "string", "required": true }, "2": { "label": "Label", "description": "Label text of the link", "type": "string", "default": "Repository name" }, "3": { "label": "Repository parent", "description": "Parent path to repository", "type": "string", "default": "mediawiki/extensions/" } } } </templatedata>

Example

{{Git_summary|examples}}

examples

If the repo is not in mediawiki/extensions then you have to provide a path (the third parameter), for example:

{{Git_summary|vagrant|MW-Vagrant|mediawiki}}

MW-Vagrant

{{git summary|jenkins-job-builder-config| |integration}}

integration/jenkins-job-builder-config

See also

  • {{Git file }}, a richer template.
  • {{Gitweb }}, the old template that links to gerrit/gitweb. This uses the same syntax (positional and biased towards extensions).