Template:Repo link: Difference between revisions

Jump to navigation Jump to search
Updated the GitHub documentation - the 'view=raw' setting is no longer special and does not modify construction of the URL.
(The GitHub URL text is now being generated for 'type=git' as well.)
(Updated the GitHub documentation - the 'view=raw' setting is no longer special and does not modify construction of the URL.)
Line 510: Line 510:
The base URL for GitHub repositories is:
The base URL for GitHub repositories is:
  <nowiki><protocol>://github.com/<user|proj>/<repo></nowiki>
  <nowiki><protocol>://github.com/<user|proj>/<repo></nowiki>
This is modified by the '''view''' parameter value of '''raw''' as:
<nowiki><protocol>://raw.githubusercontent.com/<user|proj>/<repo></nowiki>


==== GitHub <URL> for 'type=git' ====
==== GitHub <URL> for 'type=git' ====
Line 520: Line 517:
For this parameter value, the <code><URL></code> value will be:
For this parameter value, the <code><URL></code> value will be:
  <nowiki><protocol>://github.com/<user|proj>/<repo>/<view>/<commit|branch>[/<path>][#L<line>]</nowiki>
  <nowiki><protocol>://github.com/<user|proj>/<repo>/<view>/<commit|branch>[/<path>][#L<line>]</nowiki>
The '''view=raw''' changes this to:
<nowiki><protocol>://raw.githubusercontent.com/<user|proj>/<repo>/<commit|branch>[/<path>][#L<line>]</nowiki>


==== GitHub <URL> for 'type=zip' ====
==== GitHub <URL> for 'type=zip' ====

Navigation menu