Template:Github issues url

From FlightGear wiki
Jump to navigation Jump to search

https://github.com


The following template description is not displayed when the template is inserted in an article.

Goal

This template is for creating direct URLs for GitHub issues. It is a subtemplate of the master {{repo link}} template.

Usage

{{github issues url
| user       =
| proj       =
| repo       =
| number     =
}}

All parameters are optional.

Parameter Description Abbreviated
parameter
Numbered
parameter
Status
user The name of the user page for the open source infrastructure. This is notably different to the login parameter. This will have precedence over the proj parameter. The user page is treated in the same way as a project name. u 1 mandatory
proj The name of the project, consisting of a grouping of repositories on the open source infrastructure. p 1 mandatory
repo The name of the repository. A project registered on one of the open source infrastructures generally allows for multiple repositories under that project name. r 2 mandatory
number The bug/issue/support request/etc. tracker number. If provided and if the other parameters are present, this overrides any commit, tag, branch, or mr parameter values. n 3 optional

Plain text

To create a URL or link as plain text and avoid external links, simply use the {{#tag:tagname|content}} magic word construct:

{{#tag:nowiki|
  {{repo link
  | full = 1
  }}
}}

https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/

To use the <code> tags:

{{#tag:code|{{#tag:nowiki|
  {{repo link
  | full = 1
  }}
}}}}

https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/

Examples

No parameters given

{{github issues url}}

https://github.com

Project given

{{github issues url|NikolaiVChr|flightgear-saab-ja-37-viggen}}

https://github.com/NikolaiVChr/flightgear-saab-ja-37-viggen/issues

Issue number given

{{github issues url|NikolaiVChr|flightgear-saab-ja-37-viggen|number=1}}

https://github.com/NikolaiVChr/flightgear-saab-ja-37-viggen/issues/1

The c172p-detailed repository

This is for the c172p-detailed repository https://github.com/Juanvvc/c172p-detailed.

{{github issues url
| user = Juanvvc
| repo = c172p-detailed
}}

https://github.com/Juanvvc/c172p-detailed/issues.

Aliased parameters

This is for https://github.com/Juanvvc/c172p-detailed/issues/10.

{{github issues url
| u = Juanvvc
| r = c172p-detailed
| n = 10
}}.

https://github.com/Juanvvc/c172p-detailed/issues/10.

Numbered parameters

This is for https://github.com/Juanvvc/c172p-detailed/issues/10.

{{github issues url | Juanvvc | c172p-detailed | 10 }}.

https://github.com/Juanvvc/c172p-detailed/issues/10.


Related templates