Template:Src

From The Dreaming
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