Template:Git repo/doc

From MediaWiki.org
Jump to navigation Jump to search

This generates a link to a project summary in Diffusion. It's more concise than using {tlx|git file|action=summary}}

Usage[edit]

Basic
{{git repo |project=mediawiki/extensions/Flow }}

produces

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

produces

OOjs (core)

Parameters[edit]

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[edit]

  • {{git file}} links to particular files in a project
  • lots of other fancy templates for extensions on gerrit, see Category:Git.
  • {{github}}

Usage[edit]