模板:维基媒体下载

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Template:WikimediaDownload and the translation is 70% complete.
Other languages:
Deutsch • ‎English • ‎Nederlands • ‎Tiếng Việt • ‎Türkçe • ‎dansk • ‎español • ‎français • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎български • ‎македонски • ‎русский • ‎मराठी • ‎中文 • ‎日本語 • ‎한국어
模板文档
如果此模板对某个存储库不能正确工作,请确保其呼号列举在Module:Callsigns

用法

Transclude the template inside an Extension article to create useful links to a repository hosted by Wikimedia. It is specifically designed for usage in the download parameter of 模板:扩展 and categorizes into 分类:维基媒体版本控制的扩展 .

空格必须填充为“_”下划线。

In the case of Subversion, a custom path (instead of trunk) can be defined by using the second parameter (e.g. if you want to point them to a branched version):

To hide the link to Special:ExtensionDistributor, add set nosnapshot=1. This is useful when an extension only exists in a branch, since currently the ExtensionDistributor would say that the extension doesn't exist due to not being in trunk.

By default links for both links for where extension would be on svn.wikimedia.org and gerrit.wikimedia.org would be are shown. To only show a particular one, use the server= parameter.

{{WikimediaDownload|SyntaxHighlight_GeSHi}}

{{WikimediaDownload|SyntaxHighlight_GeSHi|branches/REL1_16|server=svn}}
Template:WikimediaDownload/svn
{{WikimediaDownload|SyntaxHighlight_GeSHi|nosnapshot=1}}

{{WikimediaDownload|SyntaxHighlight_GeSHi|server=gerritonly}}
Template:WikimediaDownload/gerritonly
{{WikimediaDownload|SyntaxHighlight_GeSHi|disabled=1}}

参见

Maintenance: server=svn, server=gerrit, server=gerritonly,