Line 1: |
Line 1: |
| <noinclude> | | <noinclude> |
| <languages/> | | <languages/> |
− | </noinclude>{{#switch:<translate></translate> | + | </noinclude>{{#switch:</translate> |
| | = | | | = |
| <div class="plainlinks" style="white-space:nowrap">{{#if: {{{nosnapshot|}}} | | <div class="plainlinks" style="white-space:nowrap">{{#if: {{{nosnapshot|}}} |
| | | | | |
| | {{#ifeq: {{{server|gerrit}}} | gerritonly | | | {{#ifeq: {{{server|gerrit}}} | gerritonly |
− | <!-- -->| {{DownloadGitSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2='''<translate><!--T:1--> Download Git master</translate>'''}} <br /> | + | <!-- -->| {{DownloadGitSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2='''<!--T:1--> Download Git master</translate>'''}} <br /> |
− | <!-- -->| {{#ifeq: {{{server|gerrit}}} | gerrit | [[Special:ExtensionDistributor/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|'''<translate><!--T:2--> Download extension</translate>''']] <br /> }} <!-- | + | <!-- -->| {{#ifeq: {{{server|gerrit}}} | gerrit | [[Special:ExtensionDistributor/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|'''<!--T:2--> Download extension</translate>''']] <br /> }} <!-- |
| --> | | --> |
| }} | | }} |
Line 13: |
Line 13: |
| | | |
| -->{{#ifeq: {{{server|gerrit}}} | svn | | | -->{{#ifeq: {{{server|gerrit}}} | svn | |
− | | <translate><!--T:4--> Git</translate> <sup>[<nowiki/>[[Special:MyLanguage/Download from Git|?]]<nowiki/>]</sup>: | + | | <!--T:4--> Git</translate> <sup>[<nowiki/>[[Special:MyLanguage/Download from Git|?]]<nowiki/>]</sup>: |
− | * {{DownloadGitHubSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2=<translate><!--T:3--> Download Git master</translate>}} | + | * {{DownloadGitHubSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2=<!--T:3--> Download Git master</translate>}} |
− | * [https://gerrit.wikimedia.org/g/mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}} <translate><!--T:6--> browse repository</translate>] ([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}}}}} <!--T:6--> browse repository</translate>] ([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 <translate><!--T:7--> commit history</translate>] | + | * [https://gerrit.wikimedia.org/g/mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/+log/master <!--T:7--> commit history</translate>] |
| {{#if: {{{disabled|}}}|| | | {{#if: {{{disabled|}}}|| |
− | * [https://gerrit.wikimedia.org/r/#/q/project:mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}},n,z <translate><!--T:8--> code review</translate>] | + | * [https://gerrit.wikimedia.org/r/#/q/project:mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}},n,z <!--T:8--> code review</translate>] |
| }}<!-- endif disabled --> | | }}<!-- endif disabled --> |
| }}<!-- endifeq gerrit | | }}<!-- endifeq gerrit |
| | | |
| -->{{#ifeq: {{{server|gerrit}}} | svn | | -->{{#ifeq: {{{server|gerrit}}} | svn |
− | | <translate><!--T:9--> SVN</translate> <sup>[<nowiki/>[[Special:MyLanguage/Subversion|?]]<nowiki/>]</sup>: | + | | <!--T:9--> SVN</translate> <sup>[<nowiki/>[[Special:MyLanguage/Subversion|?]]<nowiki/>]</sup>: |
− | * [//phabricator.wikimedia.org/diffusion/SVN/browse/{{{2|trunk}}}/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/ <translate><!--T:10--> svn checkout URL</translate>] | + | * [//phabricator.wikimedia.org/diffusion/SVN/browse/{{{2|trunk}}}/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/ <!--T:10--> svn checkout URL</translate>] |
− | * [//phabricator.wikimedia.org/diffusion/SVN/browse/{{{2|trunk}}}/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/ <translate><!--T:11--> browse file tree</translate>] | + | * [//phabricator.wikimedia.org/diffusion/SVN/browse/{{{2|trunk}}}/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/ <!--T:11--> browse file tree</translate>] |
− | * [{{fullurl:Special:Code/MediaWiki|path={{urlencode:/trunk/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/}}}} <translate><!--T:12--> commit history</translate>] | + | * [{{fullurl:Special:Code/MediaWiki|path={{urlencode:/trunk/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/}}}} <!--T:12--> commit history</translate>] |
| }}<!-- | | }}<!-- |
| | | |
Line 42: |
Line 42: |
| {{Documentation|content= | | {{Documentation|content= |
| | | |
− | {{Note|1=<translate><!--T:25--> If this template is not working correctly for a repository, make sure its callsign is listed on <tvar|1>[[Module:Callsigns]].</translate>}} | + | {{Note|1=<!--T:25--> If this template is not working correctly for a repository, make sure its callsign is listed on <tvar|1>[[Module:Callsigns]].</translate>}} |
| + | |
| | | |
− | <translate>
| |
| == Usage == <!--T:13--> | | == Usage == <!--T:13--> |
| | | |
| <!--T:14--> | | <!--T:14--> |
| Transclude the template inside an Extension article to create useful links to a repository hosted by Wikimedia.</translate> | | Transclude the template inside an Extension article to create useful links to a repository hosted by Wikimedia.</translate> |
− | <translate>
| + | |
| <!--T:15--> | | <!--T:15--> |
| It is specifically designed for usage in the <code>download</code> parameter of <tvar|template>{{ll|Template:Extension}} and categorizes into <tvar|cat>{{ll|Category:Extensions in Wikimedia version control}}. | | It is specifically designed for usage in the <code>download</code> parameter of <tvar|template>{{ll|Template:Extension}} and categorizes into <tvar|cat>{{ll|Category:Extensions in Wikimedia version control}}. |
| </translate> | | </translate> |
| | | |
− | {{Note|1=<translate><!--T:16--> Spaces must be padded with '_' underscores.</translate>}} | + | {{Note|1=<!--T:16--> Spaces must be padded with '_' underscores.</translate>}} |
| + | |
| | | |
− | <translate>
| |
| <!--T:17--> | | <!--T:17--> |
| 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): | | 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): |
Line 62: |
Line 62: |
| <!--T:18--> | | <!--T:18--> |
| To hide the link to [[Special:ExtensionDistributor]], add set <code>nosnapshot=1</code>.</translate> | | To hide the link to [[Special:ExtensionDistributor]], add set <code>nosnapshot=1</code>.</translate> |
− | <translate>
| + | |
| <!--T:19--> | | <!--T:19--> |
| 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. | | 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. |
Line 68: |
Line 68: |
| <!--T:20--> | | <!--T:20--> |
| By default links for both links for where extension would be on svn.wikimedia.org and gerrit.wikimedia.org would be are shown.</translate> | | By default links for both links for where extension would be on svn.wikimedia.org and gerrit.wikimedia.org would be are shown.</translate> |
− | <translate>
| + | |
| <!--T:21--> | | <!--T:21--> |
| To only show a particular one, use the <code>server=</code> parameter. | | To only show a particular one, use the <code>server=</code> parameter. |
Line 96: |
Line 96: |
| {{WikimediaDownload|SyntaxHighlight_GeSHi|disabled=1}} | | {{WikimediaDownload|SyntaxHighlight_GeSHi|disabled=1}} |
| | | |
− | <translate>
| + | |
| == See also == <!--T:24--> | | == See also == <!--T:24--> |
| </translate> | | </translate> |