Template:Git repo

From Linux Web Expert

MW core

Template documentation

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

mediawiki/extensions/Flow
text
{{git repo |project=oojs/core |text=OOjs (core)}}

produces

OOjs (core)

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

Usage

<templatedata> { "params": { "sub_url": {}, "callsigns": {}, "project": {}, "text": {} }, "format": "inline" } </templatedata>