FlightGear wiki:Village pump: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (yeah, it does - just read the docs ... Undo revision 110179 by Hooray (talk))
(→‎Newsletter templates (June/2017): There already is a translated preload system in my sandbox)
(23 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 59: Line 75:


:: 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 :-)  - [[User:Hooray|Hooray]] ([[User talk:Hooray|talk]])
:: 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 :-)  - [[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)
::::: Sorry for the late reply.
::::: ''Yes'', a centralized newsletter can be done rather easily.  We could add {{tl|LangSwitch}} templates to the sections in the newsletter template (hopefully users adding other sections to a particular newsletter will see what is going on and copy it).  It should then be a matter of creating an empty page with a language prefix and [[Help:Glossary#T|transclude]] the newsletter there as if it was a template.
::::: ''The downsides'' are that the newsletter will be more complicated to edit (raising the threshold for new editors and stopping a few of them), that we most likely will not be able to edit just a section (as the section headings will need to be in the language templates as the need to be translated as well), and that the page will be larger to retrieve as you will always download all languages to view or edit the page.  I do not think it will be worth it.
::::: ''However'', if we get to the point that we have a template preloading a newsletter blank as discussed earlier in this topic (which seems very likely), we should probably have one for each of the languages someone can translate it to.  I think it would be much, much better to centralize this template.
::::: ''In short:''  With the approach above the newsletter can be made so that there is a centralized version. But I do not think it is worth the large downsides and think that would be better to instead have a centralized template preloading a newsletter blank for a specific language.
::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 23:48, 21 July 2018 (EDT)
:::::: Hi, currently the German newsletter gets translated like every normal article here on a new page. Works great. I don't think the newsletter would benefit from a centralised Newsletter using {{tl|LangSwitch}} as
::::::* you also need to create a <nowiki>[[Es/FG News Marzo 2019]]</nowiki> page every month to view the translated content on it
::::::* it invites to write a new article in your language and we need to find someone to translate it back to english
::::::* wiki code already is a challenge for new authors, LangSwitch would make it even worse!
:::::: My [[User:Skybike#Wiki_Sandbox|sandbox experiments]] take another approach:
::::::*There is a ''draft to prelaod'' called ''Newsletter Example'' in [[User:Skybike/Template:This months newsletter/Newsletter example|English]] and another one in [[User:Skybike/Template:This months newsletter/De/Newslettervorlage|German]]
::::::*A {{obr}}[[User:Skybike/Template:This months newsletter|This months newsletter]]{{cbr}} template selects the language based on {{tl|LangSwitch}} or the parameter "lang=". (When typing <code>{{obr}}<small>:User:Skybike/Template:</small>This months newsletter{{cbr}}</code> on a german page like [[de/Hauptseite]] it preloads the [[User:Skybike/Template:This months newsletter/De/Newslettervorlage|German Newsletter Example]] to create the current German newsletter [[de/FlightGear Newsletter Juni 2018]])
::::::*As Catalanoic mentioned {{tl|Newsletter-header}} got translated into the descentralised template {{tl|De/Newsletter-header}} long time ago. In my sandbox is a new header {{obr}}[[User:Skybike/Template:Newsletter-header-translate|Newsletter-header-translate]]{{cbr}}. It uses {{tl|LangSwitch}} and the obove preload templates. (Its down compartible to {{tl|Newsletter-header}})
::::::All these templates should work. Like <code>{{obr}}<small>:User:Skybike/Template:</small>This months newsletter|date=2018-11{{cbr}}</code> {{:User:Skybike/Template:This months newsletter|subpage-to=User:DeleteMe|date=2018-11}} and by adding <code>lang=de</code>: {{:User:Skybike/Template:This months newsletter|subpage-to=User:DeleteMe|date=2018-11|lang=de}}.
::::::Legoboyvdlp already created [[FlightGear Newsletter September 2018‎]] with it.(Surprised me, need to change the header template there as it links to my sandbox) Note the "create next edition" in the upper right of the header there. But temporarily a new language could use my sandbox as well, just create a new newsletter blank and translate [[User:Skybike/Template:This months newsletter|This months newsletter]] and [[User:Skybike/Template:Newsletter-header-translate|Newsletter-header-translate]].
::::::[[User:Skybike|Skybike]] ([[User talk:Skybike|talk]]) 10:10, 22 July 2018 (EDT)
== 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...
<syntaxhighlight>
=== 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}}
</syntaxhighlight>
::=== 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}}
'''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 14:10, 22 July 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)
Sorry for the late reply.
Yes, a centralized newsletter can be done rather easily. We could add {{LangSwitch}} templates to the sections in the newsletter template (hopefully users adding other sections to a particular newsletter will see what is going on and copy it). It should then be a matter of creating an empty page with a language prefix and transclude the newsletter there as if it was a template.
The downsides are that the newsletter will be more complicated to edit (raising the threshold for new editors and stopping a few of them), that we most likely will not be able to edit just a section (as the section headings will need to be in the language templates as the need to be translated as well), and that the page will be larger to retrieve as you will always download all languages to view or edit the page. I do not think it will be worth it.
However, if we get to the point that we have a template preloading a newsletter blank as discussed earlier in this topic (which seems very likely), we should probably have one for each of the languages someone can translate it to. I think it would be much, much better to centralize this template.
In short: With the approach above the newsletter can be made so that there is a centralized version. But I do not think it is worth the large downsides and think that would be better to instead have a centralized template preloading a newsletter blank for a specific language.
Johan G (Talk | contribs) 23:48, 21 July 2018 (EDT)
Hi, currently the German newsletter gets translated like every normal article here on a new page. Works great. I don't think the newsletter would benefit from a centralised Newsletter using {{LangSwitch}} as
  • you also need to create a [[Es/FG News Marzo 2019]] page every month to view the translated content on it
  • it invites to write a new article in your language and we need to find someone to translate it back to english
  • wiki code already is a challenge for new authors, LangSwitch would make it even worse!
My sandbox experiments take another approach:
All these templates should work. Like {{:User:Skybike/Template:This months newsletter|date=2018-11}} Create FlightGear Newsletter November 2018 and by adding lang=de: Den FlightGear Newsletter November 2018 erstellen.
Legoboyvdlp already created FlightGear Newsletter September 2018‎ with it.(Surprised me, need to change the header template there as it links to my sandbox) Note the "create next edition" in the upper right of the header there. But temporarily a new language could use my sandbox as well, just create a new newsletter blank and translate This months newsletter and Newsletter-header-translate.
Skybike (talk) 10:10, 22 July 2018 (EDT)

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)