Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Template:Github wiki url

From FlightGear wiki
Revision as of 05:15, 8 July 2019 by Bugman (Talk | contribs) (First attempt at a GitHub wiki URL template. This will require modifications to {{repo link}} to be functional.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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 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}}

https://github.com

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