Template:Github wiki url
Goal
This template is for creating direct URLs for GitHub wikis. It is a subtemplate of the master {{repo link}} template.
Usage
{{github wiki url | user = | proj = | repo = | path = }}
The parameters are:
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 |
path | The file or directory path. | f | 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 wiki url}}
Project given
This is for the c172p wiki page https://github.com/c172p-team/c172p/wiki.
{{github wiki url|c172p-team|c172p}}
https://github.com/c172p-team/c172p/wiki
Path given
This is for the c172p wiki page https://github.com/c172p-team/c172p/wiki/Release-process-and-versioning.
{{github wiki url|c172p-team|c172p|path=Release-process-and-versioning}}
https://github.com/c172p-team/c172p/wiki/Release-process-and-versioning
Aliased parameters
This is for https://github.com/c172p-team/c172p/wiki/Release-process-and-versioning.
{{github wiki url | u = c172p-team | r = c172p | f = Release-process-and-versioning }}.
https://github.com/c172p-team/c172p/wiki/Release-process-and-versioning.
Numbered parameters
This is for https://github.com/c172p-team/c172p/wiki/Release-process-and-versioning.
{{github wiki url | c172p-team | c172p | Release-process-and-versioning }}.
https://github.com/c172p-team/c172p/wiki/Release-process-and-versioning.
Related templates
|