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:FDM link"

From FlightGear wiki
Jump to: navigation, search
(Created a template for converting FDM text into an internal wiki link to one of JSBSim, YASim, UIUC, and LaRCsim.)
 
(The template no longer defaults to "Unknown" if nothing is supplied.)
Line 4: Line 4:
 
   | uiuc    = {{{pre|}}}[[UIUC]]
 
   | uiuc    = {{{pre|}}}[[UIUC]]
 
   | larcsim  = {{{pre|}}}[[LaRCsim]]
 
   | larcsim  = {{{pre|}}}[[LaRCsim]]
   | #default = {{#if: {{{1|}}}|{{{pre|}}}{{{1|}}}|Unknown}}
+
   | #default = {{#if: {{{1|}}}|{{{pre|}}}{{{1|}}}}}
 
}}<noinclude>
 
}}<noinclude>
  

Revision as of 13:06, 27 May 2016


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

Goal

Convert an FDM value into an internal wiki link.

Usage

{{FDM link
| fdm
| pre =
}}
fdm
The FDM. Although this can be any text, special parameter values, independent of capitalisation, will cause a link to be created. This includes JSBSim, YASim, UIUC, and LaRCsim.
pre
Text to prefix prior to the link text. This is useful for creating lists.

Examples

YASim

{{FDM link|YASim}}

YASim