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}}
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}}
{{git summary|jenkins-job-builder-config| |integration}}
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).