Difference between revisions of "Template:DownloadGitSnapshot"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "<translate>" to "")
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages/>
 
<languages/>
</noinclude>{{#switch:<translate></translate>
+
</noinclude>{{#switch:</translate>
 
| =
 
| =
<span class=plainlinks>[https://github.com/wikimedia/{{{base|mediawiki-extensions-}}}{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/archive/{{{commit|{{{head|master}}}}}}.{{{format|tar.gz}}} {{{2|<translate><!--T:1--> Download <tvar|1>{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}</></translate>}}}]</span>
+
<span class=plainlinks>[https://github.com/wikimedia/{{{base|mediawiki-extensions-}}}{{{1|{{urlencode:{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}|WIKI}}}}}/archive/{{{commit|{{{head|master}}}}}}.{{{format|tar.gz}}} {{{2|<!--T:1--> Download <tvar|1>{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}</></translate>}}}]</span>
 
| #default=
 
| #default=
 
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:DownloadGitSnapshot|noshift=1}}
 
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:DownloadGitSnapshot|noshift=1}}

Revision as of 03:55, 21 December 2019


Download DownloadGitSnapshot

Template documentation[view] [edit] [history] [purge]

Usage

We now use GitHub for our download's which means for example mediawiki/extensions/ becomes mediawiki-extensions same goes for skins and names of repos for a slash.

Transclude the template inside an Extension article to create useful links to download snapshot from repository hosted by Wikimedia. It is specifically designed for usage in the section Download instructions.

  • Note: Spaces must be padded with '_' underscores.
Code Preview
{{DownloadGitSnapshot|Interwiki}}
Download Interwiki
{{DownloadGitSnapshot|Interwiki|head=REL1_17}}
Download Interwiki
{{DownloadGitSnapshot|1=Interwiki|2=-= Get latest snapshot =-}}
-= Get latest snapshot =-
{{DownloadGitSnapshot|erudite|base=mediawiki/skins}}
Download erudite
{{DownloadGitSnapshot|erudite|Download Erudite 1.6|base=mediawiki/skins|commit=v1.6}}
Download Erudite 1.6