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

Difference between revisions of "Template:Dialog source"

From FlightGear wiki
Jump to: navigation, search
(+- Complete rewrite, using Template:Fgdata source instead of deprecated Template:Fgdata file; + Doc; cat: Repository link templates; Was originally only going to categorize it)
Line 1: Line 1:
{{fgdata file|gui/dialogs/{{{dialog|airports}}}.xml|l={{{l|0}}} }}
+
{{fgdata source
 +
| cmd        =
 +
| opt        =
 +
| protocol  =
 +
| login      =
 +
| type      =
 +
| branch    =
 +
| tag        =
 +
| commit    =
 +
| path      = gui/dialogs/{{#if: {{{dialog|}}} | {{{dialog}}}.xml }}
 +
| line      = {{{line|{{{l|}}}}}}
 +
| post      =
 +
 
 +
| view      =
 +
| text      =
 +
| pre        =
 +
| simplepath =
 +
| full      =
 +
}}<noinclude>
 +
{{Informative template|1=
 +
__NOTOC__
 +
== Goal ==
 +
This template can be used when linking to source files for FlightGear GUI dialogs.
 +
 
 +
== Usage ==
 +
{{obr}}'''dialog source''' {{!}}''dialog='' {{!}}''line='' {{!}}''l='' {{!}}''text=''{{cbr}}
 +
 
 +
All parameters are optional.
 +
 
 +
; dialog:  Name of XML file of the dialogs source
 +
 
 +
; line, l:  line number to jump to
 +
 
 +
; text:  Alternative label for the link
 +
 
 +
== Examples ==
 +
{{obr}}dialog source{{cbr}}
 +
{{dialog source}}
 +
 
 +
{{obr}}dialog source {{!}}dialog=airports{{cbr}}
 +
{{dialog source |dialog=airports}}
 +
 
 +
{{obr}}dialog source {{!}}dialog=airports {{!}}line=321{{cbr}}
 +
{{dialog source |dialog=airports |line=321}}
 +
 
 +
{{obr}}dialog source {{!}}dialog= {{!}}line= {{!}}l=321{{cbr}}
 +
{{dialog source |dialog=airports |l=321}}
 +
 
 +
The {{obr}}dialog source {{!}}dialog= {{!}}line= {{!}}l=321 {{!}}text=search button code{{cbr}} in the airport dialog.
 +
The {{dialog source |dialog= |line= |l=321 |text=search button code}} in the airport dialog.
 +
 
 +
== Technical ==
 +
This template uses {{tl|fgdata source}} and fill parts of the parameters.
 +
 
 +
}}
 +
 
 +
[[Category:Repository link templates]]
 +
</noinclude>

Revision as of 04:12, 8 May 2019

flightgear/fgdata/next/gui/dialogs/

The following template description is not displayed when the template is inserted in an article.

Goal

This template can be used when linking to source files for FlightGear GUI dialogs.

Usage

{{dialog source |dialog= |line= |l= |text=}}

All parameters are optional.

dialog
Name of XML file of the dialogs source
line, l
line number to jump to
text
Alternative label for the link

Examples

{{dialog source}}

flightgear/fgdata/next/gui/dialogs/

{{dialog source |dialog=airports}}

flightgear/fgdata/next/gui/dialogs/airports.xml

{{dialog source |dialog=airports |line=321}}

flightgear/fgdata/next/gui/dialogs/airports.xml#l321

{{dialog source |dialog= |line= |l=321}}

flightgear/fgdata/next/gui/dialogs/airports.xml#l321

The {{dialog source |dialog= |line= |l=321 |text=search button code}} in the airport dialog.

The search button code in the airport dialog.

Technical

This template uses {{fgdata source}} and fill parts of the parameters.