FlightGear wiki:Village pump: Difference between revisions

Jump to navigation Jump to search
(→‎Space shuttle screenshots category need cleanup: Added Category:Screenshots of Earthview to some of the relevant screenshots.)
Tag: Replaced
Line 7: Line 7:


Old discussions 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 discussions should be moved to a [[FlightGear wiki:Village pump/Archive YEAR]]. These discussions can then be moved to a relevant talk page if appropriate.
== New Portal: Embedded or Hardware (02/2020) ==
Suggestion: Dedicated portal for articles relating to embedded/hardware topics (which would be in line with numerous threads on the forum, as well as existing articles on the wiki). - [[User:Hooray|Hooray]] ([[User talk:Hooray|talk]]) 11:59, 17 February 2020 (EST)
: That is slightly less complicated than you might think.  What you would do is to create a new page with the prefix <code>Portal:</code> and a suitable name, say for example [[Portal:Hardware development]], [[Portal:Cockpit hardware]] or [[Portal:DIY cockpit hardware]], or maybe [[Portal:Hardware]] if you would also like to see commercial hardware there, and then copy and modify the content from a similar portal.
: Hint: There is actually not a portal [[Help:Namespaces|namespace]], it is just a prefix. The portal pages are actually in the main namespaces, and thus function just like any other article page on the wiki.
: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 13:35, 10 March 2020 (EDT)
: Though I think your [[Portal:Embedded]] might be more diffuse than [[Portal:Hardware]] for people that do not know what {{wikipedia|embedded software}} is, I have still added it to the main page and added [[:Category:Portals]] to it.  It will get more use if people can find it. :-P
: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 04:16, 14 March 2020 (EDT)
== Use as few categories as possible ==
Always use as few categories as possible.  Categories are a place in a structure rather than tags.  Putting each page in a lot of categories will put a lot of of pages in each category.  There is in particular no need to put a page in both a category and then in each category above that category.
Please see advice in [[Help:Your first article#Categories]] and maybe also [[Help:categories]].
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 13:04, 15 March 2020 (EDT)
== Meta template and templates for commonly used logotypes and icons ==
Through a placeholder page (ugh!) and a edit summary Hooray suggested making a template for commonly used logotypes.
{{cquote|placeholder/stub for all sorts of wiki related logos that may need to be updated over time, but that are referenced on multiple pages - so that we don't need to edit each and every page here.|2=[http://wiki.flightgear.org/index.php?title=Template:Logo&oldid=123306 Hooray, 11 April 2020‎, 08:04]}}
{{cquote|@Johan: could use your help with this, unless I can write the heuristics in Php or JavaScript ;-)|Hooray, 11 April 2020‎, 08:04}}
I would guess you also intend it to be used for icons as well, for example the [[:Category:Ready icons|ready icons]]?  Logotype/icon templates might not be a bad idea.  Less typing is almost always good.
{{tl|logo}} should probably be a meta template, a template used by other templates in this case by logotype templates.  Meta templates are pretty common on MediaWiki wikis.
Essentially, there could be a set of logotype and icon templates, for example {{tl|Compositor logo}}, {{tl|FGInterface logo}}, {{tl|Air refueling ready icon}} etc, that pass the image for the logotype, an alt text (for accessibility and when the image is not shown, for example due to browser settings) and a link to a relevant wiki page to {{tl|logo}}.  Possibly also optional parameters like other sizes etc.  The meta template would then add the boilerplate stuff around that and set the size.
I would advise that having a suffix indicating the type of template, for example ''logo'', ''icon'' like mentioned above or ''navigation'' (for navigation boxes), in essence having less ambiguous names, is generally a good idea.
I should mention that I am generally against placeholder pages.
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 06:44, 12 April 2020 (EDT)
== UTF-8 language pages cannot be edited (cont. from 2015) ==
While migrating my own unrelated MediaWiki instance, I may have stumbled upon "a" SQL issue blocking the creation of pages with non-latin characters in their titles.  See:
* [[FlightGear wiki:Village pump/Archive 2015#UTF-8 language pages cannot be edited]]
* [[FlightGear wiki:Village pump/Archive 2016#UTF-8 language pages cannot be edited]]
* [[FlightGear wiki:Village pump/Archive 2019#Language flags on the main page]]
If someone has access to the MySQL backend (command line or phpMyAdmin), could you check what the "Collation" of our database is set to?  For example:
<syntaxhighlight lang="sql">
USE dbname;
SELECT @@character_set_database, @@collation_database;
</syntaxhighlight>
Or in phpMyAdmin the collation is given in the database listing.  My guess is that we are not using UTF-8.  That can be changed (after a backup) with:
<syntaxhighlight lang="sql">
ALTER DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci;
</syntaxhighlight>
Or in phpMyAdmin, select the databse of this wiki, click on the "Operations" tab, in the "Collation" box select "utf8_general_ci", and finally click on "Go".  Hopefully this is the cause of this long standing and painful issue.
[[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 03:33, 9 September 2020 (EDT)
: Hi Edward,
: I somehow missed all these previous reports :-( Sorry!
: You're right. The database is in latin1. We're actually currently in the process of migrating some of our server work and updating. I will take care of setting the correct collation on that occasion.
: [[User:Gijs|Gijs]] ([[User talk:Gijs|talk]]) 04:24, 9 September 2020 (EDT)
:: Great, that sounds exactly like this problem.  Only pages with 'latin1' characters in their names can be edited.  I really hope switching the collation to UTF-8 will fix the problem.  There must have been a MySQL server migration many years ago where the old database was UTF-8 and the import automatically changed the language to the server default of 'latin1', as many pages were created on this wiki with non-latin1 characters in the past.  I see this with my MySQL database too - I have to switch back to UTF-8 after import into the new SQL database.
:: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 06:00, 9 September 2020 (EDT)
== Needing an extra pair of eyes ==
There is a problem with automatic categorization in {{tl|Autoflight Navigation}} that I can not seem to solve.
For details see [[Template talk:Autoflight Navigation#Automatic categorization seem broken]].
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 10:26, 10 September 2020 (EDT)
: All done!  In summary, the {{tl|howto other}} template logic was completely broken and was operating as the {{tl|main other}} template instead!  Checking if the {{obr}}NAMESPACE{{cbr}} is set to {{obr}}ns:0{{cbr}} is not how you check for the "Howto" namespace.  As I don't know the numeric value of this namespace, I switched to comparing {{obr}}NAMESPACE{{cbr}} to the simple string 'Howto'.  So the template is now fixed.  We should see a lot of auto-categorisation additions and fixes now.  I also switched {{tl|Autoflight Navigation}} to use {{tl|namespace detect}} to simplify its logic.
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 06:14, 11 September 2020 (EDT)
:: Thank you som much for fixing that. :-)
:: Did not think of comparing the namespace numbers between the templates.
:: I was wondering where I found the numbers, but could not quite remember.  If I figure it out I will probably add the source for those at a suitable place, like under ''Technical details'' in ducumentation for {{tl|namespace detect}} or something like that, though using full names of the namespaces is probably the safer option.
:: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 02:07, 12 September 2020 (EDT)
== The Howto namespace ==
: ''Copied here from [[Template talk:Autoflight Navigation]].''
To be honest, from the start I have considered the Howto namespace to be an abomination.  There is absolutely no need for it, as one could simply have articles in the main namespace with a Howto: prefix (IIRC they call this "user administered namespaces" or "pseudo namespaces" on Wikipedia). To not have to type the prefix, one could simply create redirects.  Creating a separate Howto namespace have caused issues in the past, like that the search function per default only looks for articles in the Main namespace.  It is not entirely unlikely that what we see here might be some configuration issue as well.
Sorry for the rant. And thanks again.
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 06:29, 11 September 2020 (EDT)
: I wouldn't call that a rant.  It would be better on [[FlightGear wiki:Village pump]] though.  To me 'Howto' here is simply a categorisation.  Why is that categorisation even needed in the page title?  I never liked this namespace, specifically because the default search misses it, and there is a significant grey area of what you would categorise as a 'howto' or not.  I think it would be better managed with a basic {{tl|howto}} template at the start of each of these articles which automatically adds [[:Category:Howto]].  If you take your discussion above over to the village pump, I'll copy this over there as well.
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 07:56, 11 September 2020 (EDT)
== Space shuttle screenshots category need cleanup ==
There currently are quite a number of misplaced files in the [[Special:CategoryTree/Space Shuttle screenshots|Space Shuttle screenshot categories]], possibly making it harder to find screenshots and other images. For example external screenshots in the [[:Category:Space Shuttle cockpit detail screenshots|cockpit detail category]], that preferably should be closeup images of panels and displays, and screenshots of large portions of the cockpit in the cockpit detail category.
I do expect some overlap between the cockpit categories and the custom dialog categories as dialogs are featured in a lot of those.
There are also a lot of diagrams with no part of the Space Shuttle at all in the screenshot categories, those are more at home in the [[:Category:Space Shuttle diagrams|Space Shuttle diagrams]] category.
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 20:10, 3 November 2020 (EST)
Have done a little cleanup, a lot left to do.
If my recategorization edits fill up [[Special:RecentChanges|recent changes]], click ''Hide minor edits''.  When (re)categorizing, I mark my edits as minor edit so they can be filtered away if they fill up recent changes (I have gotten frustrated comments on my edits filling up recent changes before).
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 21:23, 3 November 2020 (EST)
Also added [[:Category:Screenshots of Earthview]] to relevant Space Shuttle screenshots up to and including [[:File:Shuttle-tutorial2-01.jpg]].
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 05:08, 6 November 2020 (EST)

Navigation menu