FlightGear wiki:Village pump: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(added section about the convert template)
No edit summary
(19 intermediate revisions by 5 users not shown)
Line 7: Line 7:
Old discussion should be moved to a [[FlightGear wiki:Village pump/Archive YEAR]]. These discussions can then be moved to a relevant talk page if appropriate.
Old discussion should be moved to a [[FlightGear wiki:Village pump/Archive YEAR]]. These discussions can then be moved to a relevant talk page if appropriate.


== 2018 ==
=== Captcha ===
Hi all! I need to fill the captcha box for each edit or new page in this wiki. I think for registered users isn't necessary. I will be glad if its removed. Thanks
== 2017 ==
== 2017 ==
=== 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...
-[[User:Hooray|Hooray]] ([[User talk: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 ?
-[[User:Hooray|Hooray]] ([[User talk:Hooray|talk]]) 10:22, 29 December 2017 (EST)
=== Newsletter templates (June/2017) ===
=== Newsletter templates (June/2017) ===


Line 62: Line 78:
::: Yikes, this actually works: http://wiki.flightgear.org/index.php?title=FlightGear_Newsletter_November_2020&action=edit&preload=Talk:Next_newsletter  -[[User:Hooray|Hooray]] ([[User talk:Hooray|talk]])
::: Yikes, this actually works: http://wiki.flightgear.org/index.php?title=FlightGear_Newsletter_November_2020&action=edit&preload=Talk:Next_newsletter  -[[User:Hooray|Hooray]] ([[User talk:Hooray|talk]])


:::: An early newsletter template draft is now available in my sandbox.
:::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 07:09, 11 November 2017 (EST)
:::: I got around to polish it a bit more now: [[User:Johan G/Template:This months newsletter]]
:::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 12:32, 19 November 2017 (EST)
::::hi! If you Johan that you're more experienced can prepare Newsletter templates and pages to facilitate translations without need to create descentralised templates and duplicated pages, it would be nice and step forward to non English-speaker users. What you think about be able to do it for December Newsletter? Thank you so much for your work for templates, pages and the wiki!--[[User:Catalanoic|Catalanoic]] ([[User talk:Catalanoic|talk]]) 13:15, 10 December 2017 (EST)


== Using Template:Convert ==
== 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 [https://en.wikipedia.org/wiki/Template:Convert 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...
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 [https://en.wikipedia.org/wiki/Template:Convert 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...


<syntaxhighlight>
<syntaxhighlight>
Line 82: Line 104:


'''NOTE:''' i've copied this from my talk page to bring everything together here in one place as suggested on the forum by bugman...
'''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 ;)
: [[User:Bugman|Bugman]] ([[User talk: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.
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 06:21, 6 September 2017 (EDT)
:: <strike>is this something i should do? i don't want to mess anything up ;) </strike>
:: NVM... i'm not an admin so i cannot import :)
:: [[User:Wkitty42|Wkitty42]] ([[User talk: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 [https://en.wikipedia.org/w/index.php?title=Module:Convert&action=edit 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?
::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|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...
:::: [[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)
::::: An early convert template draft is now available in my sandbox.
::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 09:17, 11 November 2017 (EST)

Revision as of 12:44, 3 June 2018


Archives
2012, 2013
2014, 2015
2016

Shortcut
FGW:VP

Welcome to the Village Pump. This page is used to discuss the technical issues, operations and guidelines of the FlightGear wiki.

Please add new topics to the bottom of this page.

Old discussion should be moved to a FlightGear wiki:Village pump/Archive YEAR. These discussions can then be moved to a relevant talk page if appropriate.

2018

Captcha

Hi all! I need to fill the captcha box for each edit or new page in this wiki. I think for registered users isn't necessary. I will be glad if its removed. Thanks

2017

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)

Newsletter templates (June/2017)

Referring to Johan's comments at [1]: Is there anything we can do to unify newsletters and changelogs without requiring major additions to the wiki in the form of plugins/addons ? Specifically, I was wondering if something along these lines would be worthwhile to discuss:

  • Create a basic template-based structure to add standardized announcements/news
  • These would be standardized based on category (core, aircraft, scenery, canvas, Nasal etc), inspired by recent changelogs/newsletters
  • Move specific text to sub-templates, so that we can easily localize/translate those using a handful of templates
  • support optional screenshots/youtube links
  • support optional fields to be added/excluded in a given mode (newsletter vs. changelog)

In other words, we would review our published newsletters and changelogs and determine the common structure that could be re-implemented in the form of templates, and then come up with a handful of templates to add items in a standardized fashion, e.g. along these lines:

  • category
  • new/updated/removed feature
  • headline
  • common text
  • changelog specific text
  • newsletter specific text
  • screenshots
  • videos
  • link for additional information

Something like this could be easily implemented without much wiki magic, and it could be also easily translated at the template level

Thoughts / ideas ?

-Hooray (talk) 06:40, 2 July 2017 (EDT)

I will start slightly off topic with that I actually consider the current newsletter format to be slightly more complicated than it really needs to be. This is mostly due to the handcrafted table of contents replacing the automatically added one. If we go back a few years a wiki newsletter page was done exactly as any other wiki page using the same way to add headers and with an automatically generated table of contents.
To illustrate the above, compare the 2010 newsletter (plain article style, one template for the header), the intermediate 2011 newsletter (one additional template to move the ToC right and change the text flow) and the later 2015 newsletter (discarding the automatic ToC for a handcrafted one using a template for each main section and subsections added by hand.) Even if that is only so much resistance, it can be what stops a contributor.
What I was referring to with
Cquote1.png I think it would be technically possible to make templates that could simplify adding new newsletter blanks (but I have said that for years without doing anything about it :oops: ).
Cquote2.png
was that one can make templates that will import a page blank prepared with regular sections and subsections (that technique have been used on English Wikipedia for adding template documentation.)
In essence such a newsletter blank could have some of this prepared and some commented out suggestions for how to add a new section and how to add images and embedded videos etc.
Johan G (Talk | contribs) 09:14, 3 September 2017 (EDT)
I found my way back to some documentation on what I mentioned above.[2][3]
One would basically make a subpage to the template (say {{Newsletter-new}}) with the text to be preloaded (which is the term used) on the subpage (Template:Newsletter-new/Newsletter_blank) and link to it like this http://wiki.flightgear.org/index.php?title=FlightGear_Newsletter_<month>_<year>&action=edit&preload=Template:Newsletter-new/Newsletter_blank.
The new newsletter template could simply have a link "Click here to create the next newsletter". It needs to be on another page than the newsletter itself though, for example on a page describing how to contribute to the newsletter.
Johan G (Talk | contribs) 09:43, 3 September 2017 (EDT)
I totally agree, while I appreciate the appearance of the new newsletter template, I always found it cumbersome/tedious to actually edit the newsletter compared to the old way. And I am all for automation. Then again, we have been suggesting/requesting certain plugins to be installed, but unfortunately to no avail so far. Speaking in general, it would be great if we could identify some of the recurring tasks on the wiki and find a way to automate most of these. For instance, being able to add contents to one page that shows up on other pages would also be useful, as this could greatly simplify writing the changelog - imagine adding stuff to the newsletter, which is then automagically added to the proper changelog. However, as usual it seems manpower is our primary constraint, Curt does not seem to have the corresponding privileges here and Gijs is basically n/a these days. What is really needed is an additional wiki admin, someone with Simon's privileges. And I would suggest we nominate bugman for that position :-) - Hooray (talk)
Yikes, this actually works: http://wiki.flightgear.org/index.php?title=FlightGear_Newsletter_November_2020&action=edit&preload=Talk:Next_newsletter -Hooray (talk)
An early newsletter template draft is now available in my sandbox.
Johan G (Talk | contribs) 07:09, 11 November 2017 (EST)
I got around to polish it a bit more now: User:Johan G/Template:This months newsletter
Johan G (Talk | contribs) 12:32, 19 November 2017 (EST)
hi! If you Johan that you're more experienced can prepare Newsletter templates and pages to facilitate translations without need to create descentralised templates and duplicated pages, it would be nice and step forward to non English-speaker users. What you think about be able to do it for December Newsletter? Thank you so much for your work for templates, pages and the wiki!--Catalanoic (talk) 13:15, 10 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)