Jump to content

Template:file

From postmarketOS Wiki
Revision as of 12:58, 30 October 2024 by LongnoseRob (talk | contribs) (update template to gitlab.postmarketos.org)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page is a template. It contains no postmarketOS-related information, but should be used as part of other articles.

Check out all pages using this template and feel free to discuss it in the gitlab issues.

For more information, read Templates and Template:Template.

Link to a file on gitlab or github by specifying:

  • filename
  • repository (defaults to pmbootstrap)
  • project (defaults to postmarketOS)
  • site (defaults to gitlab.postmarketos.org)
  • commit This can be a hex commit number, a branch, or a tag. (defaults to master)
  • line Must start with #L, for example: #L42. Can also be a markdown heading, for example #requirements. (defaults to nothing)

Usage

 {{file|filename|repository=repository|project=project|site=site|commit=commit|line=line}}

Example

{{file|README.md|commit=0d7802d7ef95e464dfe0fcef8fde23b48dd0376d|line=#requirements}}

README.md#requirements

{{file|pmb/__init__.py}}

pmb/__init__.py

{{file|README.md|repository=osk-sdl}}

README.md

{{file|README|repository=linux|project=torvalds|site=github.com|commit=v4.17|line=#L11}}

README#L11