Jump to content
MediaWiki

Шаблон:WikimediaDownload

From mediawiki.org
This page is a translated version of the page Template:WikimediaDownload and the translation is 64% complete.
Документация шаблона

Использование

Включите шаблон на страницу расширения, чтобы создать полезные ссылки на репозиторий Gerrit, размещенный на Викимедиа. It is specifically designed for usage in the download parameter of Шаблон:Extension and categorizes into Category:Extensions in Wikimedia version control .

Spaces must be padded with '_' underscores.

default

{{WikimediaDownload|SyntaxHighlight_GeSHi}}

repo

By default this template assumes a MediaWiki extension repository, and includes:

  1. link to Special:ExtensionDistributor
  2. link to GitHub mirror
  3. link to GitHub tarball
  4. Category:Extensions in Wikimedia version control membership

Set repo instead of 1, to specify a full Gerrit repository name and thus omit the above.

{{WikimediaDownload|repo=labs/xtools}}

nosnapshot

To hide the link to Special:ExtensionDistributor, 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|nosnapshot=1}}

phab

{{WikimediaDownload|SyntaxHighlight_GeSHi|phab=ESHG}}

TemplateData

[просмотр · обсуждение · править ]

Это документация TemplateData для этого шаблона, используемого VisualEditor и другими инструментами.

WikimediaDownload

Standardized download links for extensions in Wikimedia version control.

Template parameters[Edit template data ]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Extension Name1

The name of the extension without the "Extension:" namespace prefix.

Default
{{PAGENAME}}
Lineoptional
Phabricator Repository Short Namephab

The short 4-letter name of the repository on Phabricator.

Example
ESHG
Linesuggested
No Extension Distributor?nosnapshot

Whether to hide the link to [[Special:ExtensionDistributor]].

Default
0
Auto value
1
Booleanoptional
Template Modetemplatemode

Set to "nocats" to hide categories.

Suggested values
nocats
Stringoptional
Serverserver

no description

Suggested values
svn gerrit gerritonly
Stringoptional

См. также

Редакторы могут поэкспериментировать в песочнице (создать | зеркало) или тестовый (создать).
Посмотреть все подстраницы этого шаблона.

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

AltStyle によって変換されたページ (->オリジナル) /