Template:Src: Difference between revisions

From QEMU
(Add repo option)
(Update to point at gitlab)
Line 1: Line 1:
[http://git.qemu-project.org/?p={{{repo|qemu.git}}};a=blob_plain;f={{{path}}};hb=HEAD {{{description|{{{path}}}}}}]<noinclude>
[https://gitlab.com/qemu-project/{{{repo|qemu}}}/-/blob/master/{{{path}}} {{{description|{{{path}}}}}}]<noinclude>
== Usage ==
== Usage ==


Line 5: Line 5:


<pre>
<pre>
{{src|path=README|description=The main README file}}
{{src|path=README.rst|description=The main README file}}
</pre>
</pre>


Gives:
Gives:


{{src|path=README|description=The main README file}}
{{src|path=README.rst|description=The main README file}}


==== Parameters ====
==== Parameters ====

Revision as of 13:07, 23 February 2021

{{{path}}}

Usage

Link to the source code tree.

{{src|path=README.rst|description=The main README file}}

Gives:

The main README file

Parameters

* path - path to file
* description (optional) - description of the file
* repo (optional) - which repo (defaults to qemu.git)