Difference between revisions of "Template:GitlabDownload"
Joelmartin (talk | contribs) m (1 revision imported) |
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<languages /> | <languages /> | ||
− | </noinclude>{{#switch: | + | </noinclude>{{#switch:</translate> |
| = | | = | ||
<div class="plainlinks" style="white-space: nowrap;"> | <div class="plainlinks" style="white-space: nowrap;"> | ||
{{#if:{{{snapshot|}}}| | {{#if:{{{snapshot|}}}| | ||
− | [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/downloads ''' | + | [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/downloads '''<!--T:1--> Download snapshot</translate>'''] {{#if:{{{mastertarball|}}}| ([https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/-/archive/master/{{{2|{{PAGENAMEE}}}}}-master.tar.gz <!--T:2--> Git master</translate>]) }}<br /> |
|{{#if:{{{mastertarball|}}}| | |{{#if:{{{mastertarball|}}}| | ||
− | [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/-/archive/master/{{{2|{{PAGENAMEE}}}}}-master.tar.gz ''' | + | [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/-/archive/master/{{{2|{{PAGENAMEE}}}}}-master.tar.gz '''<!--T:3--> Download master snapshot</translate>''']<br /> |
}}}} | }}}} | ||
GitLab: | GitLab: | ||
− | * [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/ | + | * [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/ <!--T:4--> project page</translate>] |
− | * [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}.git | + | * [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}.git <!--T:5--> git repository URL</translate>] <sup>[<span></span>[[Special:MyLanguage/Gerrit|<!--T:6--> help</translate>]]]</sup> |
− | * [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/commits/master | + | * [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/commits/master <!--T:7--> commit history</translate>]<br /> |
− | {{#if:{{{translatewiki|}}}||<small>'' | + | {{#if:{{{translatewiki|}}}||<small>''<!--T:8--> Note:</translate><br /><!--T:9--> No [[<tvar|1>Special:MyLanguage/Localisation#Translation resources</>|localisation]] updates are<br />provided by <tvar|twn>{{ll|translatewiki.net|translatewiki.net}}</>.</translate>''</small>}} |
</div><includeonly>[[Category:Extensions in GitLab version control{{#translation:}}]]</includeonly> | </div><includeonly>[[Category:Extensions in GitLab version control{{#translation:}}]]</includeonly> | ||
| #default= | | #default= |
Revision as of 03:55, 21 December 2019
GitLab:
Note:
No localisation updates are
provided by translatewiki.net .

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 repository2
: 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 yourmaster
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}}