Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G


Jump to: navigation, search

Template:Readme file

493 bytes added, 13:37, 1 March 2016
Added the 'line' parameter as this is used by some wiki pages with broken Gitorious links. This is passed into {{fgdata source}}, but required a small redesign to have the full path handed by template.
-->[{{fgdata source |branch ={{{2|next}}} |path =Docs|full=1}}/<!-- -->{{#ifeq: {{{1}}} | model-combined.eff <!-- Is the file to link to README.model-combined.eff? --> | <!-- Yes, add the extra path --><!-- -->model-combined.eff/ }}<!-- -->README<!-- -->{{#if: {{{1|}}} | .{{{1}}}}}<!-- Is the file defined? --> | line{{#if:{{{line|}}}||NULL}} = {{{line}}} | full = 1 }}<!--
-->{{#if: {{{1|}}} <!-- Is the file defined? -->
| <!-- Yes, go to file path --><!--
-->README.{{{1}}} README.{{{1}}}
| <!-- No, go to the deafult --><!--
-->README README<!---->}}<!---->{{#if: {{{line|}}} | &#35;l{{{line}}}}}<!-- Show the line number.-->]<noinclude>
{{Informative template|1=
== Usage ==
{{obr}}'''readme file''' {{!}}''file'' {{!}}''commit'' {{!}} ''line'' = {{!}}''nopath''= {{cbr}}
All parameters are optional.
; file: Readme file name, not including <code>README.</code>. If empty, the link will go to <code>$FG_DATAFG_ROOT/Docs/README</code>.
: For <code>model-combined.eff/README.model-combined.eff</code> you only have to specify '''model-combined.eff'''.
; commit: Optional SHA-1 commit reference to use instead of the latest commit.
; line: Optional line number of the README file to jump to.
; nopath: If not empty the path will not be shown.
<nowiki>* {{readme file|materials|nopath=1}}</nowiki>
* {{readme file|materials|nopath=1}}
<nowiki>* {{readme file|gui|line=16}}</nowiki>
* {{readme file|gui|line=16}}

Navigation menu