Template talk:Infobox city Japan

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Japan (Rated Template-class)
WikiProject icon This template is within the scope of the WikiProject Japan, a collaborative effort to improve the coverage of Japan-related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the project, participate in relevant discussions, and see lists of open tasks. Current time in Japan: 05:22, April 12, 2018 (JST, Heisei 30) (Refresh)
 Template  This template does not require a rating on the project's quality scale.


(Based on Nagoya.)

{{Infobox City Japan
|Region=[[Chūbu region|Chūbu]], [[Tokai region|Tokai]]
|Prefecture=[[Aichi prefecture]]
|Mayor=Takehisa Matsubara 
|Coords={{coor dm|35|07|N|136|56|E|type:city_region:JP}}
|Tree=[[Camphor Laurel]]
|Bird=Nagoya symbolic bird
|CityHallAddress=3-1-1 Sannomaru, Naka-ku, Nagoya-shi, Aichi-ken
|CityHallLink=[http://www.city.nagoya.jp/ City of Nagoya] 

misspelled parameters[edit]

The longitude parameters (LongtitudeDegrees, LongtitudeMinutes, LongtitudeSeconds, LongtitudeDegrees1, LongtitudeMinutes1, and LongtitudeSeconds1) are all misspelled. --Stepheng3 (talk) 20:06, 19 March 2010 (UTC)

Template problem[edit]

There is a small red dot (bullet icon?) and text overlaying "Country" just below the map coordinates, and it doesn't belong there. I'm not sure how to fix it, though. Lambtron (talk) 20:39, 12 April 2010 (UTC)

It looks wrong on this page, but on the actual article page it looks fine (see Naha). It's a position marker to mark the city on the map. Moberg (talk) 11:45, 13 April 2010 (UTC)
As the documentation says, locations in Okinawa and Ōshima must use LatitudeDegrees1, LatitudeMinutes1, LatitudeSeconds1, LongtitudeDegrees1, LongtitudeMinutes1, and LongtitudeSeconds1 in place of LatitudeDegrees, LatitudeMinutes, LatitudeSeconds, LongtitudeDegrees, LongtitudeMinutes, and LongtitudeSeconds. That's why the infobox at Naha, Okinawa works great while the one on this page has the dot in the wrong place. This is a horrible kludge and makes me want to get rid of this infobox and use {{Infobox settlement}} in its place.--Stepheng3 (talk) 17:53, 13 April 2010 (UTC)
Good idea - why don't we just do that? Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 21:33, 13 April 2010 (UTC)
I see this has been proposed before and there were no objections. If it's good enough for Tokyo it should work for just about any Japanese city. I'll look into initiating a conversion. --Stepheng3 (talk) 22:39, 13 April 2010 (UTC)
I've set up a conversion template in Template:Infobox City Japan/sandbox and some testcases in Template:Infobox City Japan/testcases. I've also used {{subst:Infobox City Japan/sandbox}} to convert Kobe and Naha, Okinawa. If there are no objections, I will convert a few more articles and eventually take the sandbox version live. --Stepheng3 (talk) 01:17, 14 April 2010 (UTC)
Could someone please explain exactly what this "kludge" is? I understand that the map of Japan used in the infobox is a bit odd because it has Okinawa in a location where it doesn't actually exist due to it being so far southwest of the rest of Japan. However, I don't see what the proposed infobox does differently which would make it work. No one has bothered to explain this yet (other than to call it a "kludge", which is less than useless), so I have nothing on which to base an opinion. Thanks. ···日本穣? · 投稿 · Talk to Nihonjoe 05:04, 14 April 2010 (UTC)
{{Infobox settlement}} allows an editor to specify the pushpin_map directly, using a documented parameter. While this could possibly be implemented in {{Infobox City Japan}} as well, that would leave a number of other flaws in the template, such as the fact that several of the other parameter-names are misspelled.
{{Infobox City Japan}} appears to be a fork of {{Infobox settlement}}. This means that enhancements and fixes to {{Infobox settlement}} (which has more features and better support) may fail to reach {{Infobox City Japan}}. Until recently, {{Infobox City Japan}} apparently lacked testcases. It makes sense to phase out the weaker template in favor of the one that has greater functionality, is better supported, and gets tested more carefully. --Stepheng3 (talk) 20:51, 14 April 2010 (UTC)
Thanks. As long as changing it doesn't break anything, I'm fine with updating it to that. ···日本穣? · 投稿 · Talk to Nihonjoe 21:13, 14 April 2010 (UTC)
I'm aware that this is a heavily-used template and will take care not to break things. Testing is underway, and I am still tweaking the sandbox version.--Stepheng3 (talk) 21:26, 14 April 2010 (UTC)
Looks like I removed the obviously broken version which was previously here to refer to. It's in the archive now. ···日本穣? · 投稿 · Talk to Nihonjoe 21:27, 14 April 2010 (UTC)

In my testing, I came across a bug related to the kludge. When LatitudeMinutes1 is used (to specify a location in Okinawa via the kludge) the live version of {{Infobox City Japan}} fails to display any Coordinates, Country, Region, or Prefecture. Again, probably fixable, but I think the best long-term solution is to switch to {{Infobox settlement}} or base {{Infobox City Japan}} thereupon. --Stepheng3 (talk) 22:01, 14 April 2010 (UTC)

I believe the sandbox version is almost ready to go live. This is a new implementation of the infobox (based on {{Infobox settlement}}) and involves some changes to the appearance of the infobox. You can compare the two versions at the testcases page. If there are concerns, I'd appreciate hearing about them as soon as possible. --Stepheng3 (talk) 04:35, 19 April 2010 (UTC)
The new version is live. I'll try to respond quickly to issues that crop up. Feel free to revert if there are major problems. --Stepheng3 (talk) 01:54, 20 April 2010 (UTC)
Cool. Will you update the documentation page, to reflect your changes. ···日本穣? · 投稿 · Talk to Nihonjoe 02:28, 20 April 2010 (UTC)
My changes should not alter any parameters of the infobox, but I'll glance over the documentation page and correct any issues I see. --Stepheng3 (talk) 02:59, 20 April 2010 (UTC)
I was mostly concerned about the "LatitudeDegrees1" series of parameters because I thought your changes got rid of the need for those. ···日本穣? · 投稿 · Talk to Nihonjoe 07:17, 20 April 2010 (UTC)
I didn't change the interface because that would've broken existing articles. Going forward, I would recommend that editors use {{Infobox settlement}} which allows the pushpin map to be specified directly. Those accustomed to the {{Infobox City Japan}} interface can fill out the infobox and then subst it using {{subst:Infobox City Japan|subst=subst:|...}} which will perform the conversion to {{Infobox settlement}}. --Stepheng3 (talk) 20:24, 20 April 2010 (UTC)

Japanese city vs. town vs. village[edit]

Should this template be used only for Japanese cities (e.g., Funabashi, Chiba), or also towns (e.g., Ōtaki, Chiba), and villages (e.g., Nichinan, Tottori)? Thanks always, Prburley (talk) 11:53, 18 July 2012 (UTC)

In the archive someone mentioned this, and noted that the info box can also be suitable for towns as well as villages. However this was back in 2008, when it was noted that {{Infobox settlement}} template wasn't used for Japanese towns, but looking at your examples it now is. 私の旅 (talk) 23:54, 26 July 2012 (UTC)

Longtitude → Longitude[edit]

I see above that this was brought up about five years ago, but would it be possible to fix the spelling of "Longtitude" to "Longitude" without the extra "t"? I would be happy to do any clean up work necessary. Thank you.  SchreiberBike | ⌨  18:50, 20 August 2015 (UTC)

SchreiberBike, there was already a fix in the code, so I just updated the documentation. Frietjes (talk) 23:14, 3 September 2015 (UTC)
@Frietjes: Thank you. I also see that Yobot is going through and doing cleanup. Keep up the good work.  SchreiberBike | ⌨  00:14, 5 September 2015 (UTC)

Date of establishment parameter[edit]

Is the establishment date parameter in use for this template? It isn't shown in the template documentation. Senator2029 “Talk” 08:14, 29 September 2016 (UTC)

User:Senator2029, yes, now added. Frietjes (talk) 23:46, 27 October 2016 (UTC)

Different location map[edit]

Hello, I would like to use

Japan natural location map with side map of the Ryukyu Islands.jpg

rather than

Japan location map with side map of the Ryukyu Islands.svg

for the coordinate-based location maps in the city infoboxes - but cannot work out how to use / amend the template to do this. Thanks, Maculosae tegmine lyncis (talk) 00:41, 17 November 2016 (UTC)

@Maculosae tegmine lyncis: Why? ···日本穣 · 投稿 · Talk to Nihonjoe · Join WP Japan! 00:46, 17 November 2016 (UTC)
Largely for aesthetic reasons...Maculosae tegmine lyncis (talk) 00:53, 17 November 2016 (UTC)
I don't think that a reason like that is sufficient to change the map. ···日本穣 · 投稿 · Talk to Nihonjoe · Join WP Japan! 18:27, 17 November 2016 (UTC)