Template:GithubDownload/en: Difference between revisions
[[mw:]]>FuzzyBot (Updating to match new version of source page) |
ManfredoDo (talk | contribs) m (1 revision imported: Template documentation pages) |
(No difference)
|
Latest revision as of 18:05, 12 November 2022
GitHub:
Note:
No localisation updates are
provided by translatewiki.net .
Usage
Transclude the template inside an Extension page 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 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.release
- Displays a download link to the list of releases. If the value islatest
, it will point to the latest release.
Usage example
{{GithubDownload|<Repository Username>|<Repository Name>}}
An example with Linus Torvalds's linux repository: ({{GithubDownload|torvalds|linux}}
)
GitHub:
- <translate> project page</translate>
- <translate> git repository URL</translate> [<translate> help</translate> ]
- <translate> commit history</translate>
<translate> Note:</translate>
<translate> No [[<tvar name=1>Special:MyLanguage/Localisation#Translation resources</tvar>|localisation]] updates are
provided by <tvar name=twn>translatewiki.net </tvar>.</translate>
or
{{GithubDownload|<Repository Username>|<Repository Name>|snapshot=1}}
An example with Linus Torvalds's linux repository: ({{GithubDownload|torvalds|linux|snapshot=1}}
)
<translate> Download snapshot</translate>
GitHub:
- <translate> project page</translate>
- <translate> git repository URL</translate> [<translate> help</translate> ]
- <translate> commit history</translate>
<translate> Note:</translate>
<translate> No [[<tvar name=1>Special:MyLanguage/Localisation#Translation resources</tvar>|localisation]] updates are
provided by <tvar name=twn>translatewiki.net </tvar>.</translate>
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
or translatewiki=none
:
{{GithubDownload|<Repository Username>|<Repository Name>|translatewiki=1}}
GitHub: