FlightGear wiki:Village pump/Archive 2017

From FlightGear wiki
Jump to navigation Jump to search
Replacement filing cabinet.png This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.


Build Templates

I only just realized that we're unnecessarily duplicating information in most build related articles by separately mentioning build dependecies instead of using a shared template, which would also be easier to update/maintain should the build requirements change (think osg 3.4), which would also mean that it would be easier to maintain correct URLs for each depenedncy, while also having a way to nicely keep dependencies for different fgfs versions - so probably a worthwile thing to do... -Hooray (talk) 07:17, 31 December 2017 (EST)

New Portals (Dec/2017)

Looking at the forum/devel list, two more portals may make sense:

  • RC
  • Cockpit Building

Thoughts / ideas ?

-Hooray (talk) 10:22, 29 December 2017 (EST)

Using Template:Convert

while looking at the Lockheed_Martin_F-35B_Lightning_II, I noted the use of units that we could automatically have converted for us using the convert template from wikipedia... i'm assuming that we can do that, right? so below is an example of how it would be used and how it would look... i've left the original entry in place for final result comparison...

=== Performance Data ===
* '''Maximum Speed:''' 1,200 mph {{convert|1200|mph|kt|abbr=on}}
* '''Rate of climb:''' classified
* '''Service Ceiling:''' 60,000 ft {{convert|60000|ft|m|abbr=on}}
* '''Range:''' 1,200 mi {{convert|1200|mi|km|abbr=on}}
=== Performance Data ===

NOTE: i've copied this from my talk page to bring everything together here in one place as suggested on the forum by bugman...

This is easy, see http://wiki.flightgear.org/Special:Import ;)
Bugman (talk) 18:15, 5 September 2017 (EDT)
And here is the Wikipedia export page: https://en.wikipedia.org/wiki/Special:Export. You just export from one and import from the other. Quite a few templates were created in this way.
Bugman (talk) 06:21, 6 September 2017 (EDT)
is this something i should do? i don't want to mess anything up ;)
NVM... i'm not an admin so i cannot import :)
Wkitty42 (talk) 10:58, 6 September 2017 (EDT)
Looking at the template source at Wikipedia and on from there, I see that it have a not so small dependency tree, starting with a nearly 4000 line lua module :-/
Something rather simpler can probably be built with what we already have (though it will take time).
What do we really need?
Johan G (Talk | contribs) 11:01, 29 October 2017 (EDT)
whoa! i didn't know that convert template was that involved... maybe it does a whole lot more conversions than i was looking at to use on this site...
as far as "need" goes, we don't really need it but i thought it would be nice to put standard numerics and have a template to list the different conversions... other than needing to be added to pages where it would be appropriate, it would standardize their display on the page...
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 {{convert|value|from-unit|to-unit|decimals|hide-unit}} used like {{convert|15|m/s|fps}} 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 #expr parser function (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).
Johan G (Talk | contribs) 05:04, 11 November 2017 (EST)
An early convert template draft is now available in my sandbox.
Johan G (Talk | contribs) 09:17, 11 November 2017 (EST)