User:Utcursch/Migrate Infobox Indian Jurisdiction to Infobox settlement/main.js: Difference between revisions

Content deleted Content added
per Dr. Blofeld's suggestion
m +pushpin_map_caption
Line 117:
// Location map
var pushpin_map = "India";
var pushpin_map_caption = "India";
 
// don't have ___location map templates for these
Line 128 ⟶ 129:
if (state_name != "" && (! states_with_no_map[state_name]) ) {
pushpin_map = "India " + state_name;
pushpin_map_caption = state_name + ", India";
}
if (state_name == "Punjab, India" ) {
// don't want "India Punjab, India"
pushpin_map = "India Punjab";
pushpin_map_caption = "Punjab, India";
}
// these cities have a ___location map template -- use it as the pushpin_map
Line 146 ⟶ 149:
if (orig_infobox_params["metro"] && metros_with_map[orig_infobox_params["metro"]] ) {
pushpin_map = "India " + orig_infobox_params["metro"];
pushpin_map_caption = orig_infobox_params["metro"] + ", India";
}
 
Line 366 ⟶ 370:
"| pushpin_label_position = " + (orig_infobox_params["locator_position"] ? orig_infobox_params["locator_position"] : "") + "\n" +
"| pushpin_map_alt = " + "\n" +
"| pushpin_map_caption = " + (orig_infobox_params["pushpin_map_caption"] ? orig_infobox_params["pushpin_map_caption"] : ("Location in " + pushpin_map_caption)) + "\n" +
"| latd = " + (orig_infobox_params["latd"] ? orig_infobox_params["latd"] : "") + "\n" +
"| latm = " + (orig_infobox_params["latm"] ? orig_infobox_params["latm"] : "") + "\n" +
Line 537 ⟶ 541:
return new_infobox_str;
}
 
 
/**