Template:Src

From The Dreaming
Revision as of 20:14, 25 August 2016 by Stuart (talk | contribs) (Template cribbed from Blue Prism (well, I wrote it) - missing {{#explode:}} at the moment)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

Link to the source for a file in git.

Parameters

  • First parameter (or named file parameter) is the full path to the filename starting from the root of the repo, eg. Automate-3.0/AutomateInstaller.vb
  • Second parameter (or named branch parameter) is the branch (or commit id) to link to (default: master)
  • Third parameter (or named repo parameter) is the git repo to link to (default: automate)
  • Fourth parameter (or named line parameter) is the line number to link to (default: none)

Examples

Some examples using all four parameters

{{src|Automate-3.0/AutomateInstaller.vb}}

gives:

AutomateInstaller


{{src|BPCoreLib/Collections/CollectionUtil.vb|v5.0}}

gives:

CollectionUtil


{{src|file=MAPIEx/MAPIMessage.cpp|repo=mapiex}}

gives:

MAPIMessage


{{src|Automate-3.0/AutomateAppCore/clsServerPartialClasses/clsServerCredentials.vb|b6d298f1|line=171}}

gives:

clsServerCredentials:171