Template:Repo link: Difference between revisions

Jump to navigation Jump to search
Added many GitHub c172p-detailed examples from {{github source}}.
(Changed the order of the 'post' parameter and better documented it.)
(Added many GitHub c172p-detailed examples from {{github source}}.)
Line 1,244: Line 1,244:
| path  = Aircraft/A-10-Bombable/A-10-Bombable-set.xml
| path  = Aircraft/A-10-Bombable/A-10-Bombable-set.xml
| pre  = $FG_ROOT
| pre  = $FG_ROOT
}}.
==== The c172p-detailed repository ====
This is for the c172p-detailed repository https://github.com/Juanvvc/c172p-detailed/tree/master (this is the same as https://github.com/Juanvvc/c172p-detailed).
{{obr}}repo link
{{!}} site = gh
{{!}} user = Juanvvc
{{!}} repo = c172p-detailed
{{!}} text = A high detailed version of the C172P aircraft for FlightGear
{{cbr}}
{{repo link
| site = gh
| user = Juanvvc
| repo = c172p-detailed
| text = A high detailed version of the C172P aircraft for FlightGear
}}.
==== Git clone ====
This is for cloning the c172p-detailed aircraft with <code><nowiki>git clone https://github.com/Juanvvc/c172p-detailed.git</nowiki></code>.
{{obr}}#tag:code {{!}} {{obr}}#tag:nowiki {{!}}
  {{obr}}repo link
  {{!}} site = gh
  {{!}} cmd  = git clone
  {{!}} user = Juanvvc
  {{!}} repo = c172p-detailed
  {{!}} type = git
  {{!}} full = 1
  {{cbr}}
{{cbr}} {{cbr}}
{{#tag:code | {{#tag:nowiki |
  {{repo link
  | site = gh
  | cmd  = git clone
  | user = Juanvvc
  | repo = c172p-detailed
  | type = git
  | full = 1
  }}
}} }}
==== File with line number ====
This is for https://github.com/Juanvvc/c172p-detailed/blob/release/2016.1/c172p-set.xml#L49.
{{obr}}repo link
{{!}} site  = gh
{{!}} user  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} view  = blob
{{!}} branch = release/2016.1
{{!}} path  = c172p-set.xml
{{!}} line  = 49
{{!}} text  = The c172p-detailed authors
{{cbr}}.
{{repo link
| site  = gh
| user  = Juanvvc
| repo  = c172p-detailed
| view  = blob
| branch = release/2016.1
| path  = c172p-set.xml
| line  = 49
| text  = The c172p-detailed authors
}}.
==== Raw view ====
This is for https://github.com/Juanvvc/c172p-detailed/raw/master/c172p-set.xml, which will redirect itself to https://raw.githubusercontent.com/Juanvvc/c172p-detailed/master/c172p-set.xml.
{{obr}}repo link
{{!}} site = gh
{{!}} user = Juanvvc
{{!}} repo = c172p-detailed
{{!}} view = raw
{{!}} path = c172p-set.xml
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gh
| user = Juanvvc
| repo = c172p-detailed
| view = raw
| path = c172p-set.xml
| full = 1
}}.
==== Commit ====
This is for https://github.com/Juanvvc/c172p-detailed/commit/df6f10608116674643a3cc4bf18819eeee016d42.
{{obr}}repo link
{{!}} site  = gh
{{!}} user  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} view  = commit
{{!}} commit = df6f10608116674643a3cc4bf18819eeee016d42
{{cbr}}.
{{repo link
| site  = gh
| user  = Juanvvc
| repo  = c172p-detailed
| view  = commit
| commit = df6f10608116674643a3cc4bf18819eeee016d42
}}.
==== Tree view at a given commit ====
This is for https://github.com/Juanvvc/c172p-detailed/tree/df6f10608116674643a3cc4bf18819eeee016d42.
{{obr}}repo link
{{!}} site  = gh
{{!}} user  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} view  = tree
{{!}} commit = df6f10608116674643a3cc4bf18819eeee016d42
{{cbr}}.
{{repo link
| site  = gh
| user  = Juanvvc
| repo  = c172p-detailed
| view  = tree
| commit = df6f10608116674643a3cc4bf18819eeee016d42
}}.
==== Main views ====
===== History view =====
This is for https://github.com/Juanvvc/c172p-detailed/commits/master.
{{obr}}repo link
{{!}} site  = gh
{{!}} user  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} view  = commits
{{cbr}}.
{{repo link
| site  = gh
| user  = Juanvvc
| repo  = c172p-detailed
| view  = commits
}}.
===== History view from a commit =====
This is for https://github.com/Juanvvc/c172p-detailed/commits/df6f10608116674643a3cc4bf18819eeee016d42.
{{obr}}repo link
{{!}} site  = gh
{{!}} user  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} view  = commits
{{!}} commit = df6f10608116674643a3cc4bf18819eeee016d42
{{cbr}}.
{{repo link
| site  = gh
| user  = Juanvvc
| repo  = c172p-detailed
| view  = commits
| commit = df6f10608116674643a3cc4bf18819eeee016d42
}}.
}}.


Navigation menu