FlightGear wiki:Village pump: Difference between revisions

Jump to navigation Jump to search
→‎Using Template:Convert: Possible way to implement it
m (Undo revision 111694 by Johan G (talk) Did not seem to have effect)
(→‎Using Template:Convert: Possible way to implement it)
Line 108: Line 108:


:::: [[User:Wkitty42|Wkitty42]] ([[User talk:Wkitty42|talk]]) 11:38, 29 October 2017 (EDT)
:::: [[User:Wkitty42|Wkitty42]] ([[User talk:Wkitty42|talk]]) 11:38, 29 October 2017 (EDT)
::::: Maybe I should rephrase myself, as i did not intend to kill the conversation.
::::: What do we need?  Something like {{obr}}'''convert'''|value|from-unit|to-unit|''decimals''|''hide-unit''{{cbr}} used like {{obr}}convert|15|m/s|fps{{cbr}} to get "49 fps"?
::::: I think it is very much possible to do with what we have.  It basically abstracts to a matrix of statements from the two unit switches and math done with Mediawiki's [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr #expr parser function] ([https://www.mediawiki.org/w/index.php?title=Help:Extension:ParserFunctions&oldid=2559944##expr perm]).
::::: ICAO Annex 4 could give some pointers for units, abbreviations and conversion factors.
::::: Sounding a bit like Horay here, but I think converting between the the most used units could most probably be done ''well'' within a couple hundred lines of (well formatted and commented) template code (including user documentation).
::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 05:04, 11 November 2017 (EST)

Navigation menu