Template:Repo link: Difference between revisions

Jump to navigation Jump to search
Changed the order of the 'post' parameter and better documented it.
(Added GitHub support for zip archive downloads, and documented the option.)
(Changed the order of the 'post' parameter and better documented it.)
Line 325: Line 325:
  {{!}} ''commit''    =  
  {{!}} ''commit''    =  
  {{!}} ''line''      =  
  {{!}} ''line''      =  
{{!}} ''post''      =
   
   
  {{!}} ''view''      =  
  {{!}} ''view''      =  
  {{!}} ''text''      =  
  {{!}} ''text''      =  
  {{!}} ''pre''        =  
  {{!}} ''pre''        =  
{{!}} ''post''      =
  {{!}} ''simplepath'' =  
  {{!}} ''simplepath'' =  
  {{!}} ''full''      =  
  {{!}} ''full''      =  
Line 376: Line 376:
:** A single line number, for example '''2'''.
:** A single line number, for example '''2'''.
:** Two line numbers separated with a hyphen ('''-'''), for example '''3-10'''.
:** Two line numbers separated with a hyphen ('''-'''), for example '''3-10'''.
; post: Text to append.  This is forms a set with to the '''cmd''' and '''opt''' parameters.  For example it can represent any command line options that come after the URL.


; view:  View to display:
; view:  View to display:
Line 385: Line 387:


; pre: Prefix to a link label.
; pre: Prefix to a link label.
; post: Text to append.


; simplepath:  If set, this strips off the repository name from the URL label, leaving just the contents of the ''path'' parameter.
; simplepath:  If set, this strips off the repository name from the URL label, leaving just the contents of the ''path'' parameter.

Navigation menu