Difference between revisions of "Template:WikimediaDownload"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
Joelmartin (talk | contribs) m (Text replacement - "</translate>" to "") |
||
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='''<!--T:1--> Download Git master | + | <!-- -->| {{DownloadGitSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2='''<!--T:1--> Download Git master'''}} <br /> |
− | <!-- -->| {{#ifeq: {{{server|gerrit}}} | gerrit | [[Special:ExtensionDistributor/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|'''<!--T:2--> Download extension | + | <!-- -->| {{#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 | + | | <!--T:4--> Git <sup>[<nowiki/>[[Special:MyLanguage/Download from Git|?]]<nowiki/>]</sup>: |
− | * {{DownloadGitHubSnapshot|1={{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}|2=<!--T:3--> Download Git master | + | * {{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}}}}} <!--T:6--> browse repository | + | * [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 <!--T:7--> commit history | + | * [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 <!--T:8--> code review | + | * [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 | + | | <!--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}}}}}/ <!--T:10--> svn checkout URL | + | * [//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}}}}}/ <!--T:11--> browse file tree | + | * [//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}}}}}/}}}} <!--T:12--> commit history | + | * [{{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=<!--T:25--> If this template is not working correctly for a repository, make sure its callsign is listed on <tvar|1>[[Module:Callsigns]]. | + | {{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]].}} |
Line 48: | Line 48: | ||
<!--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}} 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}}. | ||
− | |||
− | {{Note|1=<!--T:16--> Spaces must be padded with '_' underscores. | + | |
+ | {{Note|1=<!--T:16--> Spaces must be padded with '_' underscores.}} | ||
Line 61: | Line 61: | ||
<!--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--> | ||
Line 67: | Line 67: | ||
<!--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 98: | Line 98: | ||
== 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,