跳转到内容

模板: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).

模板参数[编辑模板数据]

参数描述类型状态
useruser

the name of the user/account that owns the repository

单行文本必需
reporepo

the name of the repository itself

单行文本必需
releasesreleases

set to 1 to display a link to the list of releases

布尔可选
branchbranch

the name of a specific branch or tag; required for some features

单行文本可选
commitscommits

set to 1 to display a link the list of commits (requires ''branch'' parameter to be specified)

布尔可选
tarballtarball

set to 1 to display a link to download a tarball (requires the ''branch'' parameter to be specified)

布尔可选
templatemodetemplatemode

set to ''nocats'' to inhibit categorizing the page

单行文本可选

Examples

Minimal usage

{{CodebergDownload|user=Freeyourgadget|repo=Gadgetbridge}}

Maximal usage

{{CodebergDownload|user=Freeyourgadget|repo=Gadgetbridge|releases=1|branch=master|commits=1|tarball=1}}

See also