Difference between revisions of "Template:GitlabDownload"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "</>" to "")
m (Text replacement - "<tvar|1>" to "")
 
Line 13: Line 13:
 
* [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}.git  git repository URL] <sup>[<span></span>[[Special:MyLanguage/Gerrit| help]]]</sup>
 
* [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}.git  git repository URL] <sup>[<span></span>[[Special:MyLanguage/Gerrit| help]]]</sup>
 
* [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/commits/master  commit history]<br />
 
* [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/commits/master  commit history]<br />
{{#if:{{{translatewiki|}}}||<small>'' Note:<br /> No [[<tvar|1>Special:MyLanguage/Localisation#Translation resources|localisation]] updates are<br />provided by <tvar|twn>{{ll|translatewiki.net|translatewiki.net}}.''</small>}}
+
{{#if:{{{translatewiki|}}}||<small>'' Note:<br /> No [[Special:MyLanguage/Localisation#Translation resources|localisation]] updates are<br />provided by <tvar|twn>{{ll|translatewiki.net|translatewiki.net}}.''</small>}}
 
</div><includeonly>[[Category:Extensions in GitLab version control{{#translation:}}]]</includeonly>
 
</div><includeonly>[[Category:Extensions in GitLab version control{{#translation:}}]]</includeonly>
 
| #default=
 
| #default=

Latest revision as of 18:15, 21 December 2019


Template documentation

Usage

Transclude the template inside an Extension article to create GitLab Git links. It is specifically designed to provide links for the download argument used in Template:Extension and categorizes into Category:Extensions in GitLab version control.

This template takes two unnamed parameters to form the links, these are:

  • 1 (also as: user): To form the username holding the repository
  • 2: to calculate the name of the repository holding the project, This defaults to the pagename that the extension is on
  • Note: Spaces must be padded with '_' underscores.
Snapshots
(Activate by using |<option>=1)
  • snapshot: Displays a link to your downloads page if you have added any.
  • mastertarball: Displays a download link to a tarball of your master branch.

Usage Example

{{GitlabDownload|<Repository Username>|<Repository Name>}} An example with Linus Torvalds's linux repository: ({{GitlabDownload|torvalds|linux}})

or

{{GitlabDownload|<Repository Username>|<Repository Name>|snapshot=1}} An example with Linus Torvalds's linux repository: ({{GitlabDownload|torvalds|linux|snapshot=1}})

By default a note is added that the extension is not translatable in translatewiki.net. It can be removed by adding the parameter translatewiki=1:

{{GitlabDownload|<Repository Username>|<Repository Name>|translatewiki=1}}

See also