Template talk:Infobox/Body
Contents
- 1 Awesome
- 2 Dual precision
- 3 Mean Anomaly --> Longitude of Ascending Node and Argument of Periapsis
- 4 Apoapsis/periapsis
- 5 Difference between “real” atm and KSP atm pressure
- 6 Atmospheric Height data is consistently wrong
- 7 Body type being translated
- 8 Rename to “Template:Infobox planet”
- 9 Miscalculated orbital periods
- 10 Scientific Value / Readability of Sourcecode
- 11 Synodic period not getting expanded
- 12 One more "important" addition
Awesome
Good job, I was just thinking about how we needed to add one of these. -- N3X15 (talk) 19:18, 24 September 2012 (UTC)
Thanks, I'm trying to expand on this wiki as much as my limited wiki editing skills will allow :) --Craigmt1 (talk) 20:41, 24 September 2012 (UTC)
I like it. Soon I`ll make it multilanguage. Is my way of making many languages support in one template normal? example. Or there is some easier way? --Varden (talk) 16:42, 26 September 2012 (UTC)
- I'm not sure :/. If you look at the English and Spanish pages for planets on Wikipedia, they use different templates.[1] [2] --Craigmt1 (talk) 19:23, 26 September 2012 (UTC)
- I'm to lazy for watching every change in English version and change Russian one. In multilanguage version of template you just change number, and in all languages number would be same. --Varden (talk) 21:57, 26 September 2012 (UTC)
- I did a little searching, this is the best I could find. It looks like some sort of extension for translation. Perhaps you could ask one of the admins to implement it? http://www.mediawiki.org/wiki/Extension:Translate --Craigmt1 (talk) 23:08, 26 September 2012 (UTC)
- I'm to lazy for watching every change in English version and change Russian one. In multilanguage version of template you just change number, and in all languages number would be same. --Varden (talk) 21:57, 26 September 2012 (UTC)
Dual precision
I am not sure if this would be possible, but I was wondering if the template could be updated so that you can enter the exact value, say 1545612.5625m (yes I mashed numbers for that) and the template automagically can work out to display that value as 1.546Mm but when you hover over it, you get the full exact value, perhaps click on it to toggle to it. This cater for both people wanting to have high precision values and show (by default) more human readable values. I am not sure how possible this really is though, especially the 'click to toggle' as it might require a little snippet of JavaScript, which I don't think is that easy to slip into wikis like this. Thecoshman (talk) 08:19, 18 October 2012 (UTC)
- that would be awesome if that could be done. It might be easier for the scripting if it didnt say 1.546Mm but if it said 1.546x10^6 m (or just e6). That way it is mathematically the same, just a different representation of the same unit. But I, by far, dont know enough about programming to be certain about it.--Azivegu (talk) 08:34, 18 October 2012 (UTC)
- If we could use a little bit of JavaScript it would be really easy. It would simply require that the data is entered in the base unit, so m rather then Km. I think the templates can do something similar statically, so you enter the precise value and the template will convert it to 'x10^' format. Thecoshman (talk) 10:46, 18 October 2012 (UTC)
Mean Anomaly --> Longitude of Ascending Node and Argument of Periapsis
Where are the Longitude Of Pericenter and the Longitude Ascending Node? These are very important. Has anyone even noticed that they're missing? Also, we should get ready for adding axial tilt, as it may happen.--Mocha2007 (talk) 15:38, 29 October 2012 (UTC)
"Mean anomaly" should be "Mean Anomaly at Epoch." Also, absolutely necessary for specifying the orientation of the orbits in space are Longitude of Ascending Node and Argument of Periapsis. For interested users, these can be found in the Notes section of the Category:Celestials page on this wiki. — Preceding unsigned comment added by Mrrozzer (talk • contribs)
- I looked at the notes to update the values, but it turns out that many of the MAEs already in the wiki are different than the ones that are shown in the spreadsheet. What to do about those? Masasin (talk) 12:57, 14 July 2013 (CDT)
- Now I don't know why the values differ, but you can edit the data template for each celestial body (like Duna/Param) and fix the values (and could add the argument of periapsis/ascending node). I guessed MAE = mean anomaly at epoch? — xZise [talk] 04:09, 15 July 2013 (CDT)
- Okay I added when for what time the mean anomaly is given and the argument of periapsis and ascending node. Unfortunately all boxes have to be updated. Is this what you suggested? — xZise [talk] 16:07, 27 May 2013 (CDT)
Apoapsis/periapsis
Programmatically, the game reports apoapsis and periapsis as measured from the center of one body to the center of another. This is how they're calculated in astronomy, too. But in-game, the apoapsis/periapsis numbers that are displayed onscreen have the parent body's radius subtracted from them (presumably because your distance from the surface is a more useful number than your distance from the center).
We should pick one or another for the planetbox and stick with it. I don't really have a preference, but I notice this has confused editors (and perhaps readers), so I figured I'd start a discussion on which numbers to display. =) — Elembis (talk) 18:03, 20 November 2012 (UTC)
Difference between “real” atm and KSP atm pressure
Hi, according to the English Wikipedia about the unit atm it measures 101.325 kPa. Exactly 2 Pa lower than the value used here. I added an automatic conversion so you only have to add one pressure (either in atm or in kPa) and it will calculate the other value. Now I used the “incorrect” value of 101.327, but I'm not sure where the error comes from. At the moment I can't check if KSP shows there pressure in atm or kPa to check which value is “canon”. --XZise (talk) 05:34, 7 February 2013 (CST)
Atmospheric Height data is consistently wrong
I'm new to wiki editing and such so I don't really know how to go about this but the Atmospheric Height data for all the planets other than Kerbin is wrong, sometimes by very large margins. It appears that that value is calculated based on a model derived from Kerbin's atmosphere which doesn't fit the other bodies with atmospheres. For Eve the wiki states an atmospheric height of ~108km but if you actually fly to Eve in game its atmosphere doesn't start until ~98km. Laythe (54km from wiki, 55km from game), Jool (165km wiki vs. 138km game), and Duna (36.5km wiki vs. 41.5km game) also have similar inconsistencies. Is there any way to go about fixing this? — Preceding unsigned comment added by Varses (talk • contribs)
- Okay this is strange. The atmospheric pressure at a specific altitude is calculated with following formula:
- Now for Kerbin at the “atmospheric height” the pressure is 10⁻⁶ atm = 1 atm × e-69077.553 m / 5000 m. Now at about 138 km Jool's pressure is instead 15×10⁻⁶ atm. So my assumption was – as it doesn't make sense that 15×10⁻⁶ atm generate drag on Kerbin but not on Jool – that the formula to determine the atmospheric height altitudeatmosphere = -ln(10⁻⁶) × H (use this formula in the formula above you get that patmospheric height = p0 × 10⁻⁶ completely ignores the pressure at “sea level”. I reverted the formula so it is consistent with the game behaviour. Or did I miss something? —XZise (talk) 20:01, 9 March 2013 (CST)
- For more information about this problem: See my forum thread —XZise (talk) 09:49, 10 March 2013 (CDT)
Body type being translated
I noticed that the type of celestial body (Star, Planet, Moon) will get translated, but the link will then point to the translation of the type, not to the translated subpage (Stern, Planet, Mond instead of Star/de, Planet/de, Moon/de). I am not experienced at editing complex templates and don't want to mess things up, so could someone else maybe fix this? --Dgelessus (talk) 16:29, 20 May 2013 (CDT)
Rename to “Template:Infobox planet”
- → Please participate in the discussion on Template talk:Infobox/Part which also affects this template. Don't answer here. — xZise [talk] 19:10, 8 June 2013 (CDT)
Miscalculated orbital periods
So I was just checking some figures on Kerbin, when I found an error in the orbital period.
So this is the answer according to the wiki: 9 203 545 seconds
But when i calculate it with: T=2π√(a³/(G(M1+M2)))
T = time (in seconds)
a = semi-major axis (in meters): 13 599 840 256m
G = gravitational parameter (in m³kg-1s-2)
M1 = mass Kerbol (in kg): 1.7565670×1028 kg
M2 = mass Kerbin (in kg): 5.2915793×1022 kg
besides G, all figures I used came from this wiki.
The answer is: 9 203 640.996s ≈ 9 203 641s
Not a big difference, but it is quit alarming that what should be a simple mathematical calculation has an error of 1½ minutes. Anybody know where this comes from? I would look myself, but I am for some reason having trouble accessing the page needed for it. No idea why and I am going to look into that as well.
- According the spreadsheet the orbital period is 9 203 545 seconds. Now this template uses {{OrbitPeriod}} which used only the parent's mass. I added also the orbiting mass, but this only reduces the time measured. The template uses {{G}} to use G in the calculations which may cause the difference:using KSP's G and [using real world G (With Kerbin's mass: KSP's G and real world G). Now I don't know what the correct sideral period is. Maybe there is again a physics glitch with doesn't take this into account. — xZise [talk] 11:46, 27 June 2013 (CDT)
Scientific Value / Readability of Sourcecode
I tried my best to add the scientific value multiplier of orbit, atmosphere and surface to this template, but I was unsuccessful at comprehending the sourcecode. I tried to add some new lines to it, but they wouldn't show up in preview. Can someone who is more familiar with the MediaWiki template language please do this? I also wonder if it would be technically possible to format the template in a way which makes it more maintainable. --Crush (talk) 07:22, 26 October 2013 (CDT)
- Okay there are three points:
- The preview doesn't work, because the example visible, is a template inclusion and those can't be previewed. Unfortunately it is not easy and would the code make harder to read, if you want to have that feature. What I mean with template inclusion is that you have your code like <includeonly>{{#expr: {{{1}}} + {{{2}}}}}</includeonly> and somewhere on the same page you have something like {{templatename|42|1337}}. When you then preview it, it will always use the saved version: You need to save it first and then reload the page (maybe with ?action=purge added to the link to reload the cache). One way to test it, is to use only the template code and test it on a page in your userspace (like User:Crush/test). Then you can preview it and apply the changes back to the original.
- About making the template easier to understand: I agree this template is HUGE and complex, but unfortunately there can be done only a little. One main problem is the template expansion depth. The Mun page for example already has a depth of 36 with a maximum of 40. And if you put a part of this template into a separate subtemplate this depth is easily increasing and going beyond 40. We already had a situation and some values didn't work then anymore. Maybe somebody else has a good suggestion, because I haven't any. (And the MediaWiki syntax is awful regarding to this problem)
- And now to your original suggestion: This is actually not that hard, I'll try to add something.
- — xZise [talk] 06:14, 27 October 2013 (CDT)
- So the scientific multipliers are added, if anybody has a suggestion please let me know. One note on how to add those to the others bodies (I only add them for Kerbin): Add a value for sci surf, sci lower atmo, sci outer atmo, sci near space and sci outer space to the /Param sub page of the body (e.g. Kerbin/Param for Kerbin). If the value is ≤ 0 it will show N/A (e.g. for bodies without a surface). The values sci lower atmo and sci outer atmo are not required if the body has no atmosphere. — xZise [talk] 06:34, 27 October 2013 (CDT)
Synodic period not getting expanded
It would be great to see the synodic period in days/hours/minutes/seconds. I see that {{ExpandTime}} is supposed to do this, and I think it's actually in the synodic period section, but it doesn't seem to be working. I'm hesitant to tinker at this time, but I'll put it on my to-do list unless I get beaten to the punch. (It might also be a caching/refreshing issue as well, if the updated template hasn't fully propagated to all of the pages.) --Kerbas ad astra (talk) 13:06, 29 January 2015 (CST)
One more "important" addition
Another number that is missing is the transition altitude from "near space" to "outer space". Besides being here: Science#Celestial_body_multipliers, I'd suggest also putting it in this template section. So on the Kerbin page, it should say "Near Space (< 250Km)". On Mun, it should say "Near Space (< 60Km)". On Minmus, "Near Space (< 30Km)". It would hardly take up any additional space, and it would be useful. Bewing (talk) 14:49, 1 February 2016 (UTC)