Template:Github zip file
Jump to navigation
Jump to search
The following template description is not displayed when the template is inserted in an article.
Goal
This template is for providing direct download links to zip archives of GitLab repositories. It is a subtemplate of the master {{repo link}} template designed to simplify the interface.
Usage
{{github zip file | user = | proj = | repo = | branch = | commit = | text = | pre = | simplepath = | full = }}
All parameters are optional.
- user
- The GitHub user name. This will generally have precedence over the proj parameter. The user page is treated in the same way as a project name.
- proj
- The name of the project, consisting of a grouping of repositories on the open source infrastructure.
- repo
- The name of the repository, for example fgdata. A project registered on one of the open source infrastructures generally allows for multiple repositories under that project name.
- branch
- The git branch or tag name. For git tags, simply append
/~
to the tag name.
- commit
- The commit identifier (git hash). This defaults to next.
- text
- Text to display as the link label. Overrides pre.
- pre
- Prefix to a link label.
- simplepath
- If set, this strips off the repository name from the URL label, leaving just the contents of the path parameter.
- Note The text parameter will override this.
- full
- If set, the full URL will be shown.
Examples
Default
This is for https://github.com/Juanvvc/c172p-detailed/archive/master.zip.
{{github zip file | proj = Juanvvc | repo = c172p-detailed | type = zip | full = 1 }}.
https://github.com/Juanvvc/c172p-detailed/archive/master.zip.
Branch
This is for https://github.com/Juanvvc/c172p-detailed/archive/release/2016.1.zip.
{{github zip file | proj = Juanvvc | repo = c172p-detailed | branch = release/2016.1 | full = 1 }}.
https://github.com/Juanvvc/c172p-detailed/archive/release/2016.1.zip.
Commit
This is for https://github.com/Juanvvc/c172p-detailed/archive/c9cef81a899201802b32109c43ca686bbeffdb42.zip.
{{github zip file | proj = Juanvvc | repo = c172p-detailed | commit = c9cef81a899201802b32109c43ca686bbeffdb42 | full = 1 }}.
https://github.com/Juanvvc/c172p-detailed/archive/c9cef81a899201802b32109c43ca686bbeffdb42.zip.
Related templates
|