User:Utcursch/Migrate Infobox Indian Jurisdiction to Infobox settlement/main.js: Difference between revisions
Content deleted Content added
minor |
m m |
||
Line 289:
if (orig_infobox_params["temp_winter"]) {
climate["Avg. winter temperature"] = "{{convert|" + orig_infobox_params["temp_winter"] + "|°C|°F}}";
}
var page_name = wgPageName.replace("_", " ");
var native_name = "";
if (orig_infobox_params["native_name"]) {
orig_infobox_params["native_name"] == page_name ? "" :orig_infobox_params["native_name"];
}
var new_infobox_str =
"{{Infobox settlement" + "\n" +
"| name = " +
"| native_name = " +
"| native_name_lang = " + (orig_infobox_params["native_name_lang"] ? orig_infobox_params["native_name_lang"] : "") + "\n" +
"| other_name = " + (orig_infobox_params["other_name"] ? orig_infobox_params["other_name"] : "") + "\n" +
|