跳转到内容

模板:Git repo

来自天灾之下:危险连接资料站
wiki>BDavis (WMF)2024年7月31日 (三) 08:13的版本 (Generate git: interwiki links instead of links to Diffusion; see Topic:Y9j910c2d0xvcedm)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

MW core

模板文档

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.
text
optional. The text that's linked. If not specified, defaults to project.

See also

Usage

无描述。

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

此模板首选参数不换行的行内格式。

参数描述类型状态
projectproject

Repository name

默认值
mediawiki/core
示例值
mediawiki/core
字符串推荐
texttext

link text

字符串可选