Template talk:NASA-image

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

{{center}}[edit]

I can't seem to get the center attribute to do anything in this template. -- carol 04:14, 4 January 2008 (UTC)[reply]

It works for me. Try something like {{NASA-image|center=JSC|id=1234}}. Cheers, Rocket000 06:07, 4 January 2008 (UTC)[reply]
Thanks, I will give that a try! -- carol 08:21, 4 January 2008 (UTC)[reply]
This image or video was catalogued by one of the centers of the United States National Aeronautics and Space Administration (NASA) under Photo ID: MSFC-8915531.

This tag does not indicate the copyright status of the attached work. A normal copyright tag is still required. See Commons:Licensing.
Other languages:
That 'works' in that it looks pretty on the image page and stuff.
This image or video was catalogued by one of the centers of the United States National Aeronautics and Space Administration (NASA) under Photo ID: [http://nix.larc.nasa.gov/info;?id=MSFC-8915531 NIX MSFC-8915531] and Alternate ID: [http://mix.msfc.nasa.gov/abstracts.php?p=840 MIX 840].

This tag does not indicate the copyright status of the attached work. A normal copyright tag is still required. See Commons:Licensing.
With an alternative center and with the url appearing for the each center, the id can make a link. Like it works in the NARA Template:

{{NARA-image|531328}}

It would be nice if my personal 'iffy' sense was working better. -- carol 09:55, 4 January 2008 (UTC)[reply]
And more, because some of the NASA searches have a sessionid in the url. I only today for the first time attempted stripping that from the url -- a good template like that would help keep that kind of thing from happening. -- carol 09:58, 4 January 2008 (UTC)[reply]

Well, it wasn't made to use NIX as a center (that's why I moved it from the table). Try it with a different center ID. The ID link is a great idea, the only problem is the URL is different for each center. Using the NIX ID may work for most centers, though. For example, I could change the template so when something like {{NASA-image|JSC|1234}} is entered the result is

This image or video was catalogued by Johnson Space Center of the United States National Aeronautics and Space Administration (NASA) under Photo ID: 1234.
This tag does not indicate the copyright status of the attached work. A normal copyright tag is still required. See Commons:Licensing for more information.
Actually, I just looked at this a little more closely -- I was wondering how JSC could be giving a LARC url. You don't have such a bad start there. -- carol 12:06, 4 January 2008 (UTC)[reply]
Actually, with my example, I made it so no matter what center you got the image from it will link to the NIX (or LARC, as you referred to it) url. This was done because nix.larc is a meta search which works for most centers (granted the NIX ID is used). The only reason you enter the center is to change the text, like with the real template. Check out the code and you'll know what I mean. Hopefully ;) Rocket000 12:45, 4 January 2008 (UTC)[reply]

That's using the NIX ID and website, not JSC. I don't think all images have one so it wouldn't work for everything. I guess the URL can change for each center depending on what's entered, but that's a little beyond my template creating knowledge. The resulting link can be something like [{{{1}}}{{{2}}} {{{2}}}] where 1 is the corresponding URL part for the center and 2 is the image's ID. Together they make a working link. Maybe someone more advanced than me can make this work? Rocket000 10:42, 4 January 2008 (UTC)[reply]

I have considered this, but there is are few NASA sites that are capable of this. mostly because they use POST searchforms, and also because only NIX, GRIN and JPL can actually correctly search for NASA ids. Totally stupid. TheDJ 19:17, 4 January 2008 (UTC)[reply]
The acronyms -- I think they were designed to make perfectly good brains a little sloshy, but I am going to try anyways. If there is a NIX id then there is a url that could work in the template. Same thing with MIX and MIX id. Same thing with GRIN and even with the NOAA photo library that has a lot of rocket and other spacey images (probably should not be a part of this discussion however). I noticed while I was going through the NASA images, that the urls pasted by me and other uploaders were a pain in the hind quarters. The sessionid was one of those pains. Many attempted to link directly to the image which if their upload did not contain a description was terrible because all that was was two versions of the same image with no description.
GRIN -- someone (from NASA) should go through that collection and ask themselves this one thing about each of those images. This one thing was the suggestion that my physics teacher made to our class; and that is: 'Does that make sense?'. That question was a way to check our answers when solving classic mechanics problems -- GRIN has a few classic mechanics problems in its archive and NASA shouldn't do that.</end of somewhat related rant> -- carol 11:56, 4 January 2008 (UTC)[reply]

The technology by images of NASA is indeed a disaster. It's the reason I did not include linking in the template, but only the ID. One of the best types of links they have are those of the JPL images actually, simple, consistent and findable/indexable by google and other tools. If they would have pages like that for every imageID than all our problems would be solved. I have tried multiple times to inform NASA of the basic design mistakes behind their various databases, but have so far been unsuccessful in getting in contact with them. I should ask some other folks who might know NASA people. TheDJ 19:15, 4 January 2008 (UTC)[reply]

It seems like someone over there is aware of these problems, but hasn't followed through yet and may have made things temporary worse with these alternate IDs and such. The people at NIX do say they're working on improving it, but some sites just don't have the "minimum technical standards" yet. I don't know how useful it would be, but maybe we can link IDs where we can. This might just cause more problems though :( Rocket000 19:35, 4 January 2008 (UTC)[reply]

Vandenberg Air Force Base[edit]

Why is Vandenberg Air Force Base not an available center? I have an image that is from there, but instead of saying "Vandenberg Air Force Base", the template says "one of the centers". Elisfkc (talk) 16:40, 16 November 2016 (UTC)[reply]

Never mind, added it on Template:NASA-image/en. Elisfkc (talk) 16:43, 16 November 2016 (UTC)[reply]
Good deal. I've actually never seen Vandenberg be credited as an agency location before, since it isn't a NASA center. Very curious. Huntster (t @ c) 18:53, 16 November 2016 (UTC)[reply]

Machine readable[edit]

Since the purpose of this template is machine readable data, is there any way we can get a bot or something to output which photo IDs we currently have? For example, I could go through David Scott and make sure all of the photos have this ID template, but it still does not help me because I have no way to harvest that data. Kees08 (talk) 05:45, 3 May 2019 (UTC)[reply]

@Kees08: it is readable in the sense that it is delimited properly, so one can be sure to find the actual ID when searching through the wikitext. If you need any specific data extracted let me know, and I will see if I cannot get them to you. Askeuhd (talk) 15:52, 8 June 2022 (UTC)[reply]

New search link[edit]

The template generates a link to the database with this code:

https://images.nasa.gov/search-results?q={{urlencode:{{{id}}}|PATH}} {{{id}}}

This results in a URL like this: https://images.nasa.gov/search-results?q=ISS024-E-014263, which gets redirected to a URL like this: https://images.nasa.gov/?q=ISS024-E-014263 leading to the search homepage instead of search results, practically to: https://images.nasa.gov.

The current search URL is more complicated: https://images.nasa.gov/search?q=ISS024-E-014263&page=1&media=image,video,audio&yearStart=1920&yearEnd=2023. I found that if I omit any of the additional search parameters, like the search results page, media type, start or end year, the image is not found. But it should be possible to narrow down the search from the image details stored at Commons like this: https://images.nasa.gov/search?q=ISS024-E-014263&page=1&media=image&yearStart=2010&yearEnd=2010. This search URL works and seems to return the results faster, but it is not required to narrow down the search for the item to be found.

It is also possible to skip searching and link directly to the image details page with a link like this: https://images.nasa.gov/details/iss024e014263. It appears that, to get the correct URL, the hyphens in the ID must be removed and the letters must be turned lower-case. I tried keeping the hyphens or upper-case letters and could not reach the page.

Now, I wonder which approach should be chosen: linking to the search results or linking to the details page directly. I also wonder whether it will work in every case the same way as I expect. Anyway, it is clear that the URL in the template needs to be changed because it is currently not leading to search results. Роман Рябенко (talk) 10:13, 25 February 2023 (UTC)--Роман Рябенко (talk) 15:04, 25 February 2023 (UTC)[reply]