Template:维基媒体下载
模板文档
用法
將此模板嵌入在扩展頁面內,以建立有用的連結、使之連接到Wikimedia所託管的Gerrit儲存庫。
它是專門設計給Template:扩展 的download
參數使用的,並歸類到分类:维基媒体版本控制的扩展 之中。
空格必须以下划线'_'補上。
若要隱藏Special:ExtensionDistributor的連結,請新增這個nosnapshot=1
設定。
當扩展僅存在於分支中時,這會很有用,因為目前 ExtensionDistributor 會說,由於不在master之中,所以扩展不存在。
{{WikimediaDownload|SyntaxHighlight_GeSHi}}
{{WikimediaDownload|SyntaxHighlight_GeSHi|nosnapshot=1}}
Git [?]:
{{WikimediaDownload|SyntaxHighlight_GeSHi|disabled=1}}
{{WikimediaDownload|SyntaxHighlight_GeSHi|phab=ESHG}}
TemplateData
Standardized download links for extensions in Wikimedia version control.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Extension Name | 1 | The name of the extension without the “Extension:” namespace prefix.
| Line | optional |
Phabricator Repository Short Name | phab | The short 4-letter name of the repository on Phabricator.
| Line | suggested |
No Extension Distributor? | nosnapshot | Whether to hide the link to [[Special:ExtensionDistributor]].
| Boolean | optional |
Disable Code Review? | disabled | Whether code review on Gerrit is disabled.
| Boolean | optional |
Template Mode | templatemode | Set to “nocats” to hide categories.
| String | optional |
Server | server | no description
| String | optional |
參見
Maintenance: server=svn, server=gerrit, server=gerritonly,