Template:Fgdata file

From FlightGear wiki
Revision as of 13:02, 14 September 2015 by Red Leader (talk | contribs) (New template. @Johan, can you you please see my latest comment at Template talk:Repo link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

fgdata/

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

Goal

This template can be used when linking to source files or directories in the fgdata repository.

Usage

{{fgdata file|path|reference}}

Both parameters are optional.

path
What follows after /tree/ in the URL. Can be the path to a file or a directory. If empty, the link will point to the root of the fgdata repository.
reference
A commit reference. Usually the SHA-1 commit ID (which can be abbreviated), but it can also be a tag or a branch name. If empty, the link will point to the next branch.

Examples

No parameters given

{{fgdata file}}

fgdata/

Path given

{{fgdata file|Nasal/geo.nas}}

fgdata/Nasal/geo.nas

Path and a commit reference given

{{fgdata file|Nasal/geo.nas|release/3.6.0}}

fgdata/Nasal/geo.nas (release/3.6.0)

{{fgdata file|Nasal/geo.nas|0d4a86e3}}

fgdata/Nasal/geo.nas (0d4a86e3)

{{fgdata file|Nasal/geo.nas|0d4a86e3d454a526d561be4354e0dd26bb5f6daf}}

fgdata/Nasal/geo.nas (0d4a86e3d454a526d561be4354e0dd26bb5f6daf)

Related templates