Difference between revisions of "Template:Base Package Resource"

From FlightGear wiki
Jump to: navigation, search
m
(This template should be merged into Template:Preferences.xml as it serves the same purpose, but has a less ambiguous name; doc; cat: Link templates)
 
Line 1: Line 1:
{{#switch: {{{filename|preferences.xml}}}
+
<noinclude>{{mergeto|Template:Preferences.xml|Template talk:Preferences.xml#Merge Template:Base Package Resource into this template |date=June 2019}}</noinclude>{{#switch: {{{filename|preferences.xml}}}
<!-- flightgear commit 78498c560d30797ee55c277ea5f1c74f120fe1a2 -->
+
 
  | preferences.xml = <code>defaults.xml</code> (previously, preferences.xml {{flightgear commit|78498c560d30797ee55c277ea5f1c74f120fe1a2}} )
 
  | preferences.xml = <code>defaults.xml</code> (previously, preferences.xml {{flightgear commit|78498c560d30797ee55c277ea5f1c74f120fe1a2}} )
 
  | #default = no filename given
 
  | #default = no filename given
 +
}}<noinclude>
 +
{{Informative template|1=
 +
__NOTOC__
 +
== Goal ==
 +
This template can be used when mentioning that the defaults.xml file containing FlightGear settings was formerly known as preferences.xml.
 +
 +
== Usage ==
 +
{{obr}}'''Base Package Resource'''{{!}}''filename=''{{cbr}}
 +
 +
; filename
 +
: Optional filename.
 +
: Defaults to <code>preferences.xml</code>
 +
 +
== Examples ==
 +
{{obr}}Base Package Resource{{cbr}}
 +
{{Base Package Resource}}
 +
 +
== Known issues ==
 +
If '''filename=''' is anything else than <code>preferences.xml</code> the template will render like for example below:
 +
{{obr}}Base Package Resource{{!}}filename=dafaults.xml{{cbr}}
 +
{{Base Package Resource|filename=dafaults.xml}}
 +
 +
== Related templates ==
 +
* {{tl|preferences.xml}}
 +
 
}}
 
}}
 +
 +
[[Category:Link templates]]
 +
</noinclude>

Latest revision as of 07:09, 22 June 2019

Merge-arrow.gif
It has been suggested that this template or section be merged into Template:Preferences.xml. Discuss this merge. This has been proposed since June 2019.
defaults.xml (previously, preferences.xml FlightGear commit 78498c560d30797ee55c277ea5f1c74f120fe1a2 )
The following template description is not displayed when the template is inserted in an article.

Goal

This template can be used when mentioning that the defaults.xml file containing FlightGear settings was formerly known as preferences.xml.

Usage

{{Base Package Resource|filename=}}
filename
Optional filename.
Defaults to preferences.xml

Examples

{{Base Package Resource}}

defaults.xml (previously, preferences.xml FlightGear commit 78498c560d30797ee55c277ea5f1c74f120fe1a2 )

Known issues

If filename= is anything else than preferences.xml the template will render like for example below:

{{Base Package Resource|filename=dafaults.xml}}

no filename given

Related templates