Changes
Jump to navigation
Jump to search
m
no edit summary
<noinclude>
<languages />
</noinclude>{{#switch:<translate></translate>
| =
<div class="plainlinks" style="white-space: nowrap;">
{{#if:{{{snapshot|}}}|
[https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/downloads '''<translate><!--T:1--> Download snapshot</translate>'''] {{#if:{{{mastertarball|}}}| ([https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/-/archive/master/{{{2|{{PAGENAMEE}}}}}-master.tar.gz <translate><!--T:2--> Git master</translate>]) }}<br />
|{{#if:{{{mastertarball|}}}|
[https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/-/archive/master/{{{2|{{PAGENAMEE}}}}}-master.tar.gz '''<translate><!--T:3--> Download master snapshot</translate>''']<br />
}}}}
GitLab:
* [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/ <translate><!--T:4--> project page</translate>]
* [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}.git <translate><!--T:5--> git repository URL</translate>] <sup>[<span></span>[[Special:MyLanguage/Gerrit|<translate><!--T:6--> help</translate>]]]</sup>
* [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/commits/master <translate><!--T:7--> commit history</translate>]<br />
{{#if:{{{translatewiki|}}}||<small>''<translate><!--T:8--> Note:</translate><br /><translate><!--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>
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:GitlabDownload|noshift=1}}
}}<noinclude>
{{Documentation|content=
=== Usage ===
Transclude the template inside an Extension article to create [[wikipedia:GitLab|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:
* <code>1</code> (also as: <code>user</code>): To form the username holding the repository
* <code>2</code>: 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 <nowiki>|<option></nowiki>=1)
* <code>snapshot</code>: Displays a link to your downloads page if you have added any.
* <code>mastertarball</code>: Displays a download link to a tarball of your <code>master</code> branch.
==== Usage Example ====
<code><nowiki>{{GitlabDownload|<Repository Username>|<Repository Name>}}</nowiki></code>
An example with [https://gitlab.com/torvalds/linux Linus Torvalds's linux repository]: (<code><nowiki>{{GitlabDownload|torvalds|linux}}</nowiki></code>)
or
<code><nowiki>{{GitlabDownload|<Repository Username>|<Repository Name>|snapshot=1}}</nowiki></code>
An example with [https://gitlab.com/torvalds/linux Linus Torvalds's linux repository]: (<code><nowiki>{{GitlabDownload|torvalds|linux|snapshot=1}}</nowiki></code>)
By default a note is added that the extension is not translatable in [[translatewiki.net]]. It can be removed by adding the parameter <code>translatewiki=1</code>:
<code><nowiki>{{GitlabDownload|<Repository Username>|<Repository Name>|translatewiki=1}}</nowiki></code>
=== See also ===
* [[Template:WikimediaDownload]]
* [[Template:GoogleCodeDownload]]
* [[Template:SourceForgeDownload]]
* [[Template:Git file]]
* [[Template:Git]]
* [[Template:Github]]
}}
[[Category:Link templates{{#translation:}}]]
</noinclude>
<languages />
</noinclude>{{#switch:<translate></translate>
| =
<div class="plainlinks" style="white-space: nowrap;">
{{#if:{{{snapshot|}}}|
[https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/downloads '''<translate><!--T:1--> Download snapshot</translate>'''] {{#if:{{{mastertarball|}}}| ([https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/-/archive/master/{{{2|{{PAGENAMEE}}}}}-master.tar.gz <translate><!--T:2--> Git master</translate>]) }}<br />
|{{#if:{{{mastertarball|}}}|
[https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/-/archive/master/{{{2|{{PAGENAMEE}}}}}-master.tar.gz '''<translate><!--T:3--> Download master snapshot</translate>''']<br />
}}}}
GitLab:
* [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/ <translate><!--T:4--> project page</translate>]
* [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}.git <translate><!--T:5--> git repository URL</translate>] <sup>[<span></span>[[Special:MyLanguage/Gerrit|<translate><!--T:6--> help</translate>]]]</sup>
* [https://gitlab.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/commits/master <translate><!--T:7--> commit history</translate>]<br />
{{#if:{{{translatewiki|}}}||<small>''<translate><!--T:8--> Note:</translate><br /><translate><!--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>
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:GitlabDownload|noshift=1}}
}}<noinclude>
{{Documentation|content=
=== Usage ===
Transclude the template inside an Extension article to create [[wikipedia:GitLab|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:
* <code>1</code> (also as: <code>user</code>): To form the username holding the repository
* <code>2</code>: 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 <nowiki>|<option></nowiki>=1)
* <code>snapshot</code>: Displays a link to your downloads page if you have added any.
* <code>mastertarball</code>: Displays a download link to a tarball of your <code>master</code> branch.
==== Usage Example ====
<code><nowiki>{{GitlabDownload|<Repository Username>|<Repository Name>}}</nowiki></code>
An example with [https://gitlab.com/torvalds/linux Linus Torvalds's linux repository]: (<code><nowiki>{{GitlabDownload|torvalds|linux}}</nowiki></code>)
or
<code><nowiki>{{GitlabDownload|<Repository Username>|<Repository Name>|snapshot=1}}</nowiki></code>
An example with [https://gitlab.com/torvalds/linux Linus Torvalds's linux repository]: (<code><nowiki>{{GitlabDownload|torvalds|linux|snapshot=1}}</nowiki></code>)
By default a note is added that the extension is not translatable in [[translatewiki.net]]. It can be removed by adding the parameter <code>translatewiki=1</code>:
<code><nowiki>{{GitlabDownload|<Repository Username>|<Repository Name>|translatewiki=1}}</nowiki></code>
=== See also ===
* [[Template:WikimediaDownload]]
* [[Template:GoogleCodeDownload]]
* [[Template:SourceForgeDownload]]
* [[Template:Git file]]
* [[Template:Git]]
* [[Template:Github]]
}}
[[Category:Link templates{{#translation:}}]]
</noinclude>