Template:GithubDownload

From MediaWiki.org
Jump to: navigation, search

Project page

Git [Help]
Commit history

[edit] [purge] Template documentation

[edit] Usage

Transclude the template inside an Extension article to create GitHub Git links. It is specifically designed to provide links for the download argument used in Template:Extension and categorizes into Category:Extensions in GitHub 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.

[edit] Usage Example

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

Project page

Git [Help]
Commit history

or

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

Project page
Download snapshot

Git [Help]
Commit history


[edit] See also

The above documentation is transcluded from Template:GithubDownload/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
Language: English  • Polski
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox