Template:Git repo
From Linux Web Expert
Template documentation
This page is currently a draft.
|
This generates a link to a project summary in Diffusion. It's more concise than using {{git file}}
Usage
- Basic
{{git repo |project=mediawiki/extensions/Flow }}
produces
- text
{{git repo |project=oojs/core |text=OOjs (core)}}
produces
Parameters
- project
- defaults to mediawiki/core. Must be entire path to project — e.g. mediawiki/extensions/EventLogging, not "EventLogging" and without any
.git
suffix. The template uses Module:Callsigns to map this to a Diffision "callsign", e.g. EEVL. - text
- optional. The text that's linked. If not specified, defaults to project.
See also
- {{Git file }} links to particular files in a project
- lots of other fancy templates for extensions on gerrit, see Category:Git.
- {{Github }}
Usage
<templatedata> { "params": { "sub_url": {}, "callsigns": {}, "project": {}, "text": {} }, "format": "inline" } </templatedata>