20,741
edits
m (XML params) |
|||
Line 105: | Line 105: | ||
--[[User:Hooray|Hooray]] 18:00, 3 December 2010 (UTC) | --[[User:Hooray|Hooray]] 18:00, 3 December 2010 (UTC) | ||
= XML "params" tag = | |||
Hcc23: I do not yet understand what the <params>...</params> block inside display-text.xml | |||
(or any of the other renderers for that matter) actually does. My current assumption is that of a default or fall-back. | |||
"params" is way to parameterize a previously included XML file, so that tags can be overriden with custom values. This is useful to factor out stuff into separate files and then reuse these generic files and just change some values by using "parameters". The "params" tag is briefly explained in $FG_ROOT/Docs/README.xmlpanel: http://gitorious.org/fg/fgdata/blobs/master/Docs/README.xmlpanel | |||
This file contains lots of important things that would actually better be moved to the README.xmlsyntax or README.introduction files (or at least be covered here in the wiki). It also covers aliasing, property indexing and XML file inclusion. So it's definitely worth having a look. | |||
In general, it is a good idea to search the mailing list and forum archives whenever you find something insufficiently documented (first check $FG_ROOT/Docs and the wiki): http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net | |||
I already suggested using the mailing list or the forum to get in touch with other users to answer such and similar questions. However, if you think using the wiki is better, I would suggest to add some "HELP:" markup to all open questions, so that it is easier for people like me to find and answer such questions. | |||
Personally, I am fine with both ways - I actually appreciate that you have so far used all the info that I have provided to directly improve the wiki documentation. So I guess this method could even be more efficient than what we are doing on the forum (i.e. constantly asking users to add new info to the wiki). | |||
--[[User:Hooray|Hooray]] 23:06, 3 December 2010 (UTC) |