Шаблон:WikimediaDownload
Использование
Включите шаблон на страницу расширения, чтобы создать полезные ссылки на репозиторий Gerrit, размещенный на Викимедиа.
It is specifically designed for usage in the download
parameter of Шаблон:Extension and categorizes into Category:Extensions in Wikimedia version control .
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 master.
{{WikimediaDownload|SyntaxHighlight_GeSHi}}
{{WikimediaDownload|SyntaxHighlight_GeSHi|nosnapshot=1}}
{{WikimediaDownload|SyntaxHighlight_GeSHi|disabled=1}}
{{WikimediaDownload|SyntaxHighlight_GeSHi|phab=ESHG}}
TemplateData
Это документация TemplateData для этого шаблона, используемого VisualEditor и другими инструментами.
WikimediaDownload
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,