User talk:Bugman: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
Line 111: Line 111:


: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 12:44, 31 July 2016 (EDT)
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 12:44, 31 July 2016 (EDT)
:: I see, thanks a lot and sorry for the mess.
:: [[User:Gsagostinho|Gsagostinho]] ([[User talk:Gsagostinho|talk]])

Revision as of 16:46, 31 July 2016

The collapsible script template

Noticed the {{collapsible script}} template. That will probably come in handy in many places.

I had no idea that there was such a thing as {{#tag: }}. That may be useful later when I have played around with it.

Hmm, I see the template defaults to Dec Vadic's Imperial Arem Star. lol ;-)

Johan G (Talk | contribs) 18:12, 16 October 2015 (EDT)

There are quite a few places in the wiki cluttered up by long scripts or code segments. I guess it is mainly Nasal, though some other parts could benefit from other templates using collapsible NavFrame elements. The {{#tag: }} concept is quite useful for programmatically adding tags in templates, avoiding the initial HTML parsing, but it isn't perfect. Anyway, I can see it spreading on the wiki already :) As for the template default, I hope no one is curious and tries it out!
Bugman (talk) 10:14, 18 October 2015 (EDT)
Let me add that {{#tag: }} allows for transclusion within any HTML tag, which is normally not possible.
Bugman (talk) 12:51, 19 October 2015 (EDT)


The newsletter template discussion was moved to FlightGear wiki:Village pump#Newsletter templates (perm).

German FGAddon translation

Hi Edward,

are you still working on the German translation of the FGAddon article? If not, should I go ahead with the translation?

Cheers

Dg-505 (talk) 05:32, 7 April 2016 (EDT)

Hi! I'm on holiday and have been distracted by other work. Go for it!
Bugman (talk) 23:52, 11 April 2016 (EDT)
Okay, thank you.
Dg-505 (talk) 00:10, 12 April 2016 (EDT)

Lockheed P-38 Lightning

thanks for renaming that file... i can't believe that i misspelled that like that... sometimes the fingers think they know what the brain is trying to write :lol: Wkitty42 (talk) 11:16, 1 June 2016 (EDT)

No problems! I often have the same problem :) Anyway, if you need any pages or files moved, just say.
Bugman (talk) 11:19, 1 June 2016 (EDT)

The <aircraft>/info template

Hi,

It seems the new template for the aircraft info box or <aircraft>/info page doesn't show '_' (underscore) in the --aircraft= field. The old info box template did so it is probably a bug? AndersG (talk) 15:21, 23 June 2016 (EDT)

Thanks for spotting that! I can see that that is a problem with the #titleparts function: "All underscores are automatically replaced with spaces". That is rather annoying. I might then create fgname1 to fgname10 as an alternative, as the number of *-set.xml files with underscores is very low.
Bugman (talk) 15:38, 23 June 2016 (EDT)

The so caled "Emilianh H's hangar"

Hi,

While I appreciate your efforts, I would also appreciate it if this labeling would be possibly omitted, also not directly linked to.

I would also had appreciated some sort of preliminary discussion/warning prior to such labeling/linking if it would have taken place.

Thanks for your understanding

I4dnf (talk) 10:07, 15 July 2016 (EDT)

No problems. I'm just experimenting with this, to allow for automated link creation for the new aircraft infobox template (see User:Bugman/Infobox Aircraft). This also includes the important note that the aircraft is {{non-GPL}}. Note that in the end, all wiki aircraft pages will be identified by hangar when available. But for the | hangar = emilianh parameter value, the heading "Emilian H's Hangar" has been removed. See User:Bugman/Infobox Aircraft#IAR 80.
Bugman (talk) 10:16, 15 July 2016 (EDT)
Thanks, however unfortunatley link to "website" still shows. How about "Aircraft by $Name" instead of "$Name's hangar" ? what happens if $Name has n aircraft hosted in m places?
Regards,
I4dnf (talk) 10:22, 15 July 2016 (EDT)
I don't quite follow, but we should be able to expand on the User:Bugman/Infobox Aircraft to match all aircraft author's needs. That is the aim of this new template to replace {{infobox aircraft}}. Click on the 'Edit' link, and then search for emilianh to see all the customisations I have made. We can change this to anything, to help automate the infobox creation. I thought I'd use your aircraft as a testing example for improving GitLab support in User:Bugman/Infobox Aircraft and Category:Repository link templates.
Bugman (talk) 10:30, 15 July 2016 (EDT)
The User:Bugman/Infobox Aircraft still displays the website and the devel-repo links. I, personally, for my aircraft, would prefer it if those were not ever shown, and only the download link was available. However I now noticed that on the actual IAR 80 page it is properly hidden.
As for the second part of my previous question, what happens if I had say the iar80 hosted on github, the l10 on gitlab, and some other aircraft hosted on somesite.somwhere.else, to what does the "hangar" point to?
I understand that in this particular case you were using it to improve an example gitlab based "hangar".
Regards, I4dnf (talk) 10:55, 15 July 2016 (EDT)
That is because you removed the hangar and aircraft parameters from IAR 80/info, and added download, removing most of the automated aspects of the template. How the | hangar = emilianh parameter value automates the template creation is totally up to the aircraft author - and it is directly coded into the template. I have created most of these in the User:Bugman/Infobox Aircraft testing template with direct author feedback. So for excluding the website and devel-repo links, that would simply require removing those lines in User:Bugman/Infobox Aircraft, where the emilianh hangar parameter is found. Feel free to customise User:Bugman/Infobox Aircraft for the | hangar = emilianh parameter as you wish. You'll see the result in the User:Bugman/Infobox Aircraft#IAR 80 when previewing the changes. You can also change emilianh to any value you wish.
Bugman (talk) 11:14, 15 July 2016 (EDT)

Duplicates of c182s pages

Hi Bugman,

We have renamed the Cessna 182S project from c182 to c182s, and to reflect that change I created a new wiki page for it. It turns out that wasn't necessary as I could have moved the previous page to a new name, so now I have two mais wiki pages and two infoboxes:

http://wiki.flightgear.org/Cessna_182S

http://wiki.flightgear.org/Cessna_182S/info

http://wiki.flightgear.org/Cessna_182

http://wiki.flightgear.org/Cessna_182/info

I would like to delete the last two (the ones without the S). How can I do that, could you please give me a hand?

Thanks a lot!

Gsagostinho (talk)

To preserve history, I'll delete the first two now, then move the last two to the first two. I think only admins can move and rename pages. Anyway, it'll be done asap.
Bugman (talk) 12:44, 31 July 2016 (EDT)
I see, thanks a lot and sorry for the mess.
Gsagostinho (talk)