Difference between revisions of "User talk:XZise/Archives/2013/04"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Robot: Archiving 2 threads from User talk:XZise.)
 
m (/Data)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
Hello XZise. Your recent edits to these two templates caused an error message on the page [[Mün]] ([http://wiki.kerbalspaceprogram.com/w/index.php?title=M%C3%BCn&oldid=12827 old version with the error message]). I fixed it temporarily by removing the Sigfigs template around the OrbitalAltitude template, but you might want to look into it. --[[User:Crush|Crush]] ([[User talk:Crush|talk]]) 07:50, 7 April 2013 (CDT)
 
Hello XZise. Your recent edits to these two templates caused an error message on the page [[Mün]] ([http://wiki.kerbalspaceprogram.com/w/index.php?title=M%C3%BCn&oldid=12827 old version with the error message]). I fixed it temporarily by removing the Sigfigs template around the OrbitalAltitude template, but you might want to look into it. --[[User:Crush|Crush]] ([[User talk:Crush|talk]]) 07:50, 7 April 2013 (CDT)
:This is simply because {{Tl|OrbitAltitude}} doesn't return only a number (like 1337.42) and instead format it (<span style="white-space:nowrap;">{{#formatnum:1337.42|2|.|t}}</span>). Now {{Tl|Sigfigs}} expects a plain number. To fix this either remove sigfigs (preferred as it's not useful to use it in cases like your's) or use {{Tl|OrbitAltitude/Core}}. Unfortunately every [[celestials]] article uses <nowiki>{{</nowiki>OrbitAltitude<nowiki>}}</nowiki> indirectly via the {{Tl|Planetbox}} so “What links here” is not of great use. — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 08:03, 7 April 2013 (CDT)
+
:This is simply because {{Tl|OrbitAltitude}} doesn't return only a number (like 1337.42) and instead format it (<span style="white-space:nowrap;">{{#formatnum:1337.42|2|.|t}}</span>). Now {{Tl|Sigfigs}} expects a plain number. To fix this either remove sigfigs (preferred as it's not useful to use it in cases like your's) or use {{Tl|OrbitAltitude/Core}}. Unfortunately every [[celestials]] article uses <nowiki>{{</nowiki>OrbitAltitude<nowiki>}}</nowiki> indirectly via the {{Tl|Infobox/Body}} so “What links here” is not of great use. — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 08:03, 7 April 2013 (CDT)
 
::Okay I looked in all articles. I couldn't find any new location of this error. As there is no need to make OrbitAltitude compatible with Sigfigs I would leave it as it is. — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 08:26, 7 April 2013 (CDT)
 
::Okay I looked in all articles. I couldn't find any new location of this error. As there is no need to make OrbitAltitude compatible with Sigfigs I would leave it as it is. — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 08:26, 7 April 2013 (CDT)
 
:PS: {{Tl|Tl}} creates easily those cool looking clickable templates. — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 08:08, 7 April 2013 (CDT)
 
:PS: {{Tl|Tl}} creates easily those cool looking clickable templates. — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 08:08, 7 April 2013 (CDT)
Line 12: Line 12:
 
XZise, the problem of using one data template is that the template is in english. [[User:Gusta|Gusta]] ([[User talk:Gusta|talk]]) 12:31, 7 April 2013 (CDT)
 
XZise, the problem of using one data template is that the template is in english. [[User:Gusta|Gusta]] ([[User talk:Gusta|talk]]) 12:31, 7 April 2013 (CDT)
 
:Hmmm but [[Kerbol/de]] or [[Kerbol/ru]] have it in German/Russian? In some languages (e.g. Swedish) the translations are missing. But then somebody with Swedish skills should do it. — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 12:47, 7 April 2013 (CDT)
 
:Hmmm but [[Kerbol/de]] or [[Kerbol/ru]] have it in German/Russian? In some languages (e.g. Swedish) the translations are missing. But then somebody with Swedish skills should do it. — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 12:47, 7 April 2013 (CDT)
:Ah I saw that you are active in the Portuguese Wikipedia and [[Template:Planetbox#Translating|Planetbox]] doesn't support this language. I guess you saw [http://wiki.kerbalspaceprogram.com/w/index.php?title=Kerbol%2Fpt&diff=13332&oldid=13233 this edit] and marking [[Kerbol/pt/Data]] for deletion. If you want to add the Portuguese translation simply edit {{Tl|Planetbox}}. — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 12:53, 7 April 2013 (CDT)
+
:Ah I saw that you are active in the Portuguese Wikipedia and [[Template:Infobox/Body#Translating|Infobox/Body]] doesn't support this language. I guess you saw [http://wiki.kerbalspaceprogram.com/w/index.php?title=Kerbol%2Fpt&diff=13332&oldid=13233 this edit] and marking '''Kerbol/pt/Data''' for deletion. If you want to add the Portuguese translation simply edit {{Tl|Infobox/Body}}. — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 12:53, 7 April 2013 (CDT)
::You mean creating [[Template:Planetbox/pt]] ? [[User:Gusta|Gusta]] ([[User talk:Gusta|talk]]) 12:55, 7 April 2013 (CDT)
+
::You mean creating '''Template:Infobox/Body/pt''' ? [[User:Gusta|Gusta]] ([[User talk:Gusta|talk]]) 12:55, 7 April 2013 (CDT)
:::“If you want to add the Portuguese translation simply edit {{Tl|Planetbox}}” No not creating a /pt translation (there is no {{Tl|Planetbox/de}}. For example I want to add the translation of mass for Klingon I can do this by adding “<tt>tlh=ngI'</tt>” to
+
:::“If you want to add the Portuguese translation simply edit {{Tl|Infobox/Body}}” No not creating a /pt translation (there is no '''Infobox/Body/de'''. For example I want to add the translation of mass for Klingon I can do this by adding “<tt>tlh=ngI'</tt>” to
 
:::<pre>{{lang|en=[[w:Mass|Mass]]|nl=[[w:nl:Massa|Massa]]|fr=[[w:fr:Masse|Masse]]|pl=[[w:pl:Masa_(fizyka)|Masa]]|ru=[[w:ru:Масса|Масса]]|de=[[w:de:Masse (Physik)|Masse]]}}</pre>
 
:::<pre>{{lang|en=[[w:Mass|Mass]]|nl=[[w:nl:Massa|Massa]]|fr=[[w:fr:Masse|Masse]]|pl=[[w:pl:Masa_(fizyka)|Masa]]|ru=[[w:ru:Масса|Масса]]|de=[[w:de:Masse (Physik)|Masse]]}}</pre>
 
:::As you can see there are already translations into Dutch, French, Polish, Russian and German. Now if you are on a page with /fr as suffix (e.g. [[Kerbol/fr]]) it selects the French text. If there is no text in the “active” language it will use by default English. <small>''As {{Tl|lang}} doesn't understand tlh/Klingon it won't work ;)''</small> — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 13:19, 7 April 2013 (CDT)
 
:::As you can see there are already translations into Dutch, French, Polish, Russian and German. Now if you are on a page with /fr as suffix (e.g. [[Kerbol/fr]]) it selects the French text. If there is no text in the “active” language it will use by default English. <small>''As {{Tl|lang}} doesn't understand tlh/Klingon it won't work ;)''</small> — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 13:19, 7 April 2013 (CDT)
 
::::Ohh, understood now. Thanks a lot!. [[User:Gusta|Gusta]] ([[User talk:Gusta|talk]]) 13:29, 7 April 2013 (CDT)
 
::::Ohh, understood now. Thanks a lot!. [[User:Gusta|Gusta]] ([[User talk:Gusta|talk]]) 13:29, 7 April 2013 (CDT)

Latest revision as of 09:31, 7 March 2020

This page is an archive of discussions for User talk:XZise. If you wish to continue a discussion displayed on this page, please start it a new on the main talk page.

Error caused by Template:Sigfigs and Template:OrbitAltitude

Hello XZise. Your recent edits to these two templates caused an error message on the page Mün (old version with the error message). I fixed it temporarily by removing the Sigfigs template around the OrbitalAltitude template, but you might want to look into it. --Crush (talk) 07:50, 7 April 2013 (CDT)

This is simply because {{OrbitAltitude}} doesn't return only a number (like 1337.42) and instead format it (1 337.42). Now {{Sigfigs}} expects a plain number. To fix this either remove sigfigs (preferred as it's not useful to use it in cases like your's) or use {{OrbitAltitude/Core}}. Unfortunately every celestials article uses {{OrbitAltitude}} indirectly via the {{Infobox/Body}} so “What links here” is not of great use. — xZise [talk] 08:03, 7 April 2013 (CDT)
Okay I looked in all articles. I couldn't find any new location of this error. As there is no need to make OrbitAltitude compatible with Sigfigs I would leave it as it is. — xZise [talk] 08:26, 7 April 2013 (CDT)
PS: {{Tl}} creates easily those cool looking clickable templates. — xZise [talk] 08:08, 7 April 2013 (CDT)

/Data

XZise, the problem of using one data template is that the template is in english. Gusta (talk) 12:31, 7 April 2013 (CDT)

Hmmm but Kerbol/de or Kerbol/ru have it in German/Russian? In some languages (e.g. Swedish) the translations are missing. But then somebody with Swedish skills should do it. — xZise [talk] 12:47, 7 April 2013 (CDT)
Ah I saw that you are active in the Portuguese Wikipedia and Infobox/Body doesn't support this language. I guess you saw this edit and marking Kerbol/pt/Data for deletion. If you want to add the Portuguese translation simply edit {{Infobox/Body}}. — xZise [talk] 12:53, 7 April 2013 (CDT)
You mean creating Template:Infobox/Body/pt ? Gusta (talk) 12:55, 7 April 2013 (CDT)
“If you want to add the Portuguese translation simply edit {{Infobox/Body}}” No not creating a /pt translation (there is no Infobox/Body/de. For example I want to add the translation of mass for Klingon I can do this by adding “tlh=ngI'” to
{{lang|en=[[w:Mass|Mass]]|nl=[[w:nl:Massa|Massa]]|fr=[[w:fr:Masse|Masse]]|pl=[[w:pl:Masa_(fizyka)|Masa]]|ru=[[w:ru:Масса|Масса]]|de=[[w:de:Masse (Physik)|Masse]]}}
As you can see there are already translations into Dutch, French, Polish, Russian and German. Now if you are on a page with /fr as suffix (e.g. Kerbol/fr) it selects the French text. If there is no text in the “active” language it will use by default English. As {{lang}} doesn't understand tlh/Klingon it won't work ;)xZise [talk] 13:19, 7 April 2013 (CDT)
Ohh, understood now. Thanks a lot!. Gusta (talk) 13:29, 7 April 2013 (CDT)