Difference between revisions of "Template:WikimediaDownload"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (1 revision imported) |
Joelmartin (talk | contribs) m (Text replacement - "</translate>" to "") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<languages/> | <languages/> | ||
− | </noinclude>{{#switch: | + | </noinclude>{{#switch: |
| = | | = | ||
<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=''' | + | <!-- -->| {{DownloadGitSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2='''<!--T:1--> Download Git master'''}} <br /> |
− | <!-- -->| {{#ifeq: {{{server|gerrit}}} | gerrit | [[Special:ExtensionDistributor/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|''' | + | <!-- -->| {{#ifeq: {{{server|gerrit}}} | gerrit | [[Special:ExtensionDistributor/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|'''<!--T:2--> Download extension''']] <br /> }} <!-- |
--> | --> | ||
}} | }} | ||
Line 13: | Line 13: | ||
-->{{#ifeq: {{{server|gerrit}}} | svn | | -->{{#ifeq: {{{server|gerrit}}} | svn | | ||
− | | | + | | <!--T:4--> Git <sup>[<nowiki/>[[Special:MyLanguage/Download from Git|?]]<nowiki/>]</sup>: |
− | * {{DownloadGitHubSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2= | + | * {{DownloadGitHubSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2=<!--T:3--> Download Git master}} |
− | * [https://gerrit.wikimedia.org/g/mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}} | + | * [https://gerrit.wikimedia.org/g/mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}} <!--T:6--> 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 | + | * [https://gerrit.wikimedia.org/g/mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/+log/master <!--T:7--> commit history] |
{{#if: {{{disabled|}}}|| | {{#if: {{{disabled|}}}|| | ||
− | * [https://gerrit.wikimedia.org/r/#/q/project:mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}},n,z | + | * [https://gerrit.wikimedia.org/r/#/q/project:mediawiki/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}},n,z <!--T:8--> code review] |
}}<!-- endif disabled --> | }}<!-- endif disabled --> | ||
}}<!-- endifeq gerrit | }}<!-- endifeq gerrit | ||
-->{{#ifeq: {{{server|gerrit}}} | svn | -->{{#ifeq: {{{server|gerrit}}} | svn | ||
− | | | + | | <!--T:9--> SVN <sup>[<nowiki/>[[Special:MyLanguage/Subversion|?]]<nowiki/>]</sup>: |
− | * [//phabricator.wikimedia.org/diffusion/SVN/browse/{{{2|trunk}}}/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/ | + | * [//phabricator.wikimedia.org/diffusion/SVN/browse/{{{2|trunk}}}/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/ <!--T:10--> svn checkout URL] |
− | * [//phabricator.wikimedia.org/diffusion/SVN/browse/{{{2|trunk}}}/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/ | + | * [//phabricator.wikimedia.org/diffusion/SVN/browse/{{{2|trunk}}}/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/ <!--T:11--> browse file tree] |
− | * [{{fullurl:Special:Code/MediaWiki|path={{urlencode:/trunk/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/}}}} | + | * [{{fullurl:Special:Code/MediaWiki|path={{urlencode:/trunk/extensions/{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/}}}} <!--T:12--> commit history] |
}}<!-- | }}<!-- | ||
Line 42: | Line 42: | ||
{{Documentation|content= | {{Documentation|content= | ||
− | {{Note|1= | + | {{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]].}} |
+ | |||
− | |||
== 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. | + | Transclude the template inside an Extension article to create useful links to a repository hosted by Wikimedia. |
− | + | ||
<!--T:15--> | <!--T:15--> | ||
− | It is specifically designed for usage in the <code>download</code> parameter of <tvar|template>{{ll|Template:Extension}} | + | 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}}. |
− | < | + | |
+ | |||
+ | {{Note|1=<!--T:16--> Spaces must be padded with '_' underscores.}} | ||
− | |||
− | |||
<!--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): | ||
<!--T:18--> | <!--T:18--> | ||
− | To hide the link to [[Special:ExtensionDistributor]], add set <code>nosnapshot=1</code>. | + | To hide the link to [[Special:ExtensionDistributor]], add set <code>nosnapshot=1</code>. |
− | + | ||
<!--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. | ||
<!--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. | + | By default links for both links for where extension would be on svn.wikimedia.org and gerrit.wikimedia.org would be are shown. |
− | + | ||
<!--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. | ||
− | + | ||
<pre>{{WikimediaDownload|SyntaxHighlight_GeSHi}}</pre> | <pre>{{WikimediaDownload|SyntaxHighlight_GeSHi}}</pre> | ||
Line 96: | Line 96: | ||
{{WikimediaDownload|SyntaxHighlight_GeSHi|disabled=1}} | {{WikimediaDownload|SyntaxHighlight_GeSHi|disabled=1}} | ||
− | + | ||
== See also == <!--T:24--> | == See also == <!--T:24--> | ||
− | + | ||
* {{ll|Template:WikimediaGitCheckout}} | * {{ll|Template:WikimediaGitCheckout}} | ||
* {{ll|Template:WikimediaSvnCheckout}} | * {{ll|Template:WikimediaSvnCheckout}} |
Latest revision as of 20:53, 21 December 2019

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 download
parameter of <tvar
Maintenance: server=svn, server=gerrit, server=gerritonly,