模板:CodebergDownload
Usage
Transclude the template inside an Extension page or a Skin page to create Codeberg Git links. It is specifically designed to be used in the download argument of Template:Extension and Template:Skin. By default, using this template categorizes pages into Category:Extensions in Codeberg version control or Category:Skins in Codeberg version control (depending on whether the page is an Extension or Skin).
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| user | user | the name of the user/account that owns the repository | 单行文本 | 必需 |
| repo | repo | the name of the repository itself | 单行文本 | 必需 |
| releases | releases | set to 1 to display a link to the list of releases | 布尔 | 可选 |
| branch | branch | the name of a specific branch or tag; required for some features | 单行文本 | 可选 |
| commits | commits | set to 1 to display a link the list of commits (requires ''branch'' parameter to be specified) | 布尔 | 可选 |
| tarball | tarball | set to 1 to display a link to download a tarball (requires the ''branch'' parameter to be specified) | 布尔 | 可选 |
| templatemode | templatemode | set to ''nocats'' to inhibit categorizing the page | 单行文本 | 可选 |
Examples
Minimal usage
{{CodebergDownload|user=Freeyourgadget|repo=Gadgetbridge}}
|
Codeberg: |
Maximal usage
{{CodebergDownload|user=Freeyourgadget|repo=Gadgetbridge|releases=1|branch=master|commits=1|tarball=1}}
|