Template:GitHub/doc

From Wikidata
Jump to navigation Jump to search

Usage[edit]

This template can be used to create a link to a repository or a single file on GitHub. The link to GitHub can be suppressed with the parameter |link=no, and the mentioning of GitHub can be omitted entirely with |link=hidden.

TemplateData[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

GitHub

Creates a formatted link to a page on GitHub.

Template parameters

ParameterDescriptionTypeStatus
URL1

The page or URL on “https://GitHub.com”.

URLrequired
Label2

The displayed text.

Default
{{#titleparts:{{{1}}}|1|-1}}
Lineoptional
Include “on GitHub” Text?link

Whether to include the “on GitHub” text and whether it should be linked. Supported values: "no"/"hidden".

Auto value
no
Stringoptional

Edit parameter translations