跳转到内容

模板:Git summary

来自天灾之下:危险连接资料站
wiki>Paladox2016年6月30日 (四) 06:16的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{{1}}}

模板文档


Generate a link to a repository's summary page on git.wikimedia.org, our Gitblit server.

模板参数[编辑模板数据]

参数描述类型状态
Repository name1

Name of the repository on git.wikimedia.org

字符串必需
Label2

Label text of the link

默认值
Repository name
字符串可选
Repository parent3

Parent path to repository

默认值
mediawiki/extensions/
字符串可选

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.
  • {{Gitblit }}, the old template that links to gerrit/gitweb. This uses the same syntax (positional and biased towards extensions).