Template:Src: Difference between revisions

From QEMU
(Update to point at gitlab)
(Doc template)
Line 1: Line 1:
[https://gitlab.com/qemu-project/{{{repo|qemu}}}/-/blob/master/{{{path}}} {{{description|{{{path}}}}}}]<noinclude>
[https:/https://www.qemu.org/docs/master/{{{path}}} {{{description|{{{path}}}}}}]<noinclude>
== Usage ==
== Usage ==


Line 5: Line 5:


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


Gives:
Gives:


{{src|path=README.rst|description=The main README file}}
{{src|path=devel/style|description=The coding style reference}}


==== Parameters ====
==== Parameters ====
Line 16: Line 16:
  * path - path to file
  * path - path to file
  * description (optional) - description of the file
  * description (optional) - description of the file
* repo (optional) - which repo (defaults to qemu.git)


[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>

Revision as of 17:00, 15 March 2021

[https:/https://www.qemu.org/docs/master/{{{path}}} {{{path}}}]

Usage

Link to the source code tree.

{{src|path=devel/style|description=The coding style reference}}

Gives:

[https:/https://www.qemu.org/docs/master/devel/style The coding style reference]

Parameters

* path - path to file
* description (optional) - description of the file