6,566
edits
(Improvements, fixes and simplifications for the GitHub URL and text generation. The 'type=git' option now appends '.git', and the 'view=raw' option was simplified as the URL raw.githubusercontent.com is the result of a redirect from a github.com URL.) |
(The GitHub URL text is now being generated for 'type=git' as well.) |
||
Line 147: | Line 147: | ||
}}/<!-- | }}/<!-- | ||
-->{{{repo|flightgear}}}<!-- The version control repository. | -->{{{repo|flightgear}}}<!-- The version control repository. | ||
-->{{#switch: {{{type|git web}}} <!-- | -->{{#switch: {{{type|git web}}} <!-- The URL type. --> | ||
| git = .git<!-- | | git | ||
| git web = | |||
{{#switch: {{{type|git web}}} | |||
| git = .git<!-- Append '.git' to the base repository URL. --> | |||
| git web = /<!-- | |||
-->{{{view|tree}}}/<!-- The repository view. | |||
-->{{{commit|{{{branch|master}}}}}}<!-- The branch or commit. | |||
-->{{#if: {{{path|}}} | /{{{path}}}}}<!-- The file or directory path. | |||
-->{{#if: {{{line|}}} | #L{{{line}}} }} <!-- The optional line number(s). --> | |||
}} <!-- | |||
-->{{#if: {{{text|}}} | |||
| {{{text}}} <!-- The text description for the link. --> | | {{{text}}} <!-- The text description for the link. --> | ||
| {{#if: {{{full|}}} | | {{#if: {{{full|}}} | ||
Line 170: | Line 174: | ||
-->{{#if: {{{path|}}} | /{{{path}}}}}<!-- The file or directory path. | -->{{#if: {{{path|}}} | /{{{path}}}}}<!-- The file or directory path. | ||
-->{{#if: {{{line|}}} | #L{{{line}}}}} <!-- The optional line number(s). | -->{{#if: {{{line|}}} | #L{{{line}}}}} <!-- The optional line number(s). | ||
--> | -->{{#switch: {{{view|tree}}} <!-- The view description. --> | ||
| blob = | |||
| blame = <nowiki></nowiki> blame view | |||
| commit = <nowiki></nowiki> commit view | |||
| commits = <nowiki></nowiki> history view | |||
| raw = <nowiki></nowiki> raw view | |||
| tree = | |||
}} | }} | ||
}} | }} |