Changes

Updating to match new version of source page
<noinclude>
<languages/>
</noinclude>{{#switch:
| =
<div class="plainlinks" style="white-space:nowrap">{{#if: {{{nosnapshot|}}}
|
| {{#ifeq: {{{server|gerrit}}} | gerritonly
<!-- -->| {{DownloadGitSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2='''Download Git master'''}} <br />
<!-- -->| {{#ifeq: {{{server|gerrit}}} | gerrit | [[Special:ExtensionDistributor/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|'''Download extension''']] <br /> }} <!--
-->
}}
}}<!--

-->{{#ifeq: {{{server|gerrit}}} | svn |
| Git <sup>[<nowiki/>[[Special:MyLanguage/Download from Git|?]]<nowiki/>]</sup>:
* {{DownloadGitHubSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2=Download Git master}}
* [https://gerrit.wikimedia.org/g/mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}} browse repository] ([https://github.com/wikimedia/mediawiki-extensions-{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}} GitHub])
* [https://gerrit.wikimedia.org/g/mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/+log/master commit history]
{{#if: {{{disabled|}}}||
* [https://gerrit.wikimedia.org/r/#/q/project:mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}},n,z code review]
}}<!-- endif disabled -->
}}<!-- endifeq gerrit

-->{{#ifeq: {{{server|gerrit}}} | svn
| SVN <sup>[<nowiki/>[[Special:MyLanguage/Subversion|?]]<nowiki/>]</sup>:
* [//phabricator.wikimedia.org/diffusion/SVN/browse/{{{2|trunk}}}/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/ svn checkout URL]
* [//phabricator.wikimedia.org/diffusion/SVN/browse/{{{2|trunk}}}/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/ browse file tree]
* [{{fullurl:Special:Code/MediaWiki|path={{urlencode:/trunk/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/}}}} commit history]
}}<!--

--></div><!--
--><includeonly>{{#switch:{{{server|}}}
|svn=<span style="display:none">[[Template:WikimediaDownload/svn]]</span>
|gerrit=<span style="display:none">[[Template:WikimediaDownload/gerrit]]</span>
|gerritonly=<span style="display:none">[[Template:WikimediaDownload/gerritonly]]</span>
}}<!--
-->{{#ifeq:{{{templatemode|}}}|nocats|<!-- do nothing -->
|<!--else-->[[Category:Extensions in Wikimedia version control{{#translation:}}]]}}</includeonly>
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:WikimediaDownload|noshift=1}}
}}<noinclude>
{{Documentation|content=

{{Note|1=If this template is not working correctly for a repository, make sure its callsign is listed on [[Module:Callsigns]].}}

== Usage ==

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 <code>download</code> parameter of {{ll|Template:Extension}} and categorizes into {{ll|Category:Extensions in Wikimedia version control}}.

{{Note|1=Spaces must be padded with '_' underscores.}}

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 <code>nosnapshot=1</code>.
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 <code>server=</code> parameter.

<pre>{{WikimediaDownload|SyntaxHighlight_GeSHi}}</pre>
{{WikimediaDownload|SyntaxHighlight_GeSHi}}

-------

<pre>{{WikimediaDownload|SyntaxHighlight_GeSHi|branches/REL1_16|server=svn}}</pre>
{{WikimediaDownload|SyntaxHighlight_GeSHi|branches/REL1_16|server=svn}}

-------

<pre>{{WikimediaDownload|SyntaxHighlight_GeSHi|nosnapshot=1}}</pre>
{{WikimediaDownload|SyntaxHighlight_GeSHi|nosnapshot=1}}

-------

<pre>{{WikimediaDownload|SyntaxHighlight_GeSHi|server=gerritonly}}</pre>
{{WikimediaDownload|SyntaxHighlight_GeSHi|server=gerritonly}}

-------

<pre>{{WikimediaDownload|SyntaxHighlight_GeSHi|disabled=1}}</pre>
{{WikimediaDownload|SyntaxHighlight_GeSHi|disabled=1}}

== See also ==
* {{ll|Template:WikimediaGitCheckout}}
* {{ll|Template:WikimediaSvnCheckout}}
* {{ll|Template:WikimediaDownloadSkin}}
}}

<small>Maintenance:
[[Special:WhatLinksHere/Template:WikimediaDownload/svn|server=svn]],
[[Special:WhatLinksHere/Template:WikimediaDownload/gerrit|server=gerrit]],
[[Special:WhatLinksHere/Template:WikimediaDownload/gerritonly|server=gerritonly]],
</small>
[[Category:Link templates{{#translation:}}|{{PAGENAME}}]]
[[Category:Git{{#translation:}}]]
</noinclude>
Anonymous user