Template talk:Infobox settlement

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Geography (Rated Template-class)
WikiProject icon This template is within the scope of WikiProject Geography, a collaborative effort to improve the coverage of geography on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 Template  This template does not require a rating on the project's quality scale.
 
WikiProject Cities (Rated Template-class)
WikiProject icon This template is within the scope of WikiProject Cities, a collaborative effort to improve the coverage of cities, towns and various other settlements on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 Template  This template does not require a rating on the project's quality scale.
 

Several parameters of {{infobox German state}} not used in template {{infobox settlement}}?[edit]

When previewing my edits on Saxony-Anhalt I get the warnings

Warning: Page using Template:Infobox settlement with unknown parameter "dot_y" (this message is shown only in preview).
Warning: Page using Template:Infobox settlement with unknown parameter "dot_mapsize" (this message is shown only in preview).
Warning: Page using Template:Infobox settlement with unknown parameter "national anthem" (this message is shown only in preview).
Warning: Page using Template:Infobox settlement with unknown parameter "dot_map_alt" (this message is shown only in preview).
Warning: Page using Template:Infobox settlement with unknown parameter "dot_map_base_alt" (this message is shown only in preview).
Warning: Page using Template:Infobox settlement with unknown parameter "dot_map_caption" (this message is shown only in preview).
Warning: Page using Template:Infobox settlement with unknown parameter "date" (this message is shown only in preview).
Warning: Page using Template:Infobox settlement with unknown parameter "dot_x" (this message is shown only in preview).

which apparently stem from the use of the template {{infobox German state}} on that page. I don't feel confident editing these templates, could one of you experts please look into this? Thanks, AxelBoldt (talk) 16:52, 17 March 2016 (UTC)

AxelBoldt, fixed, thank you for noticing and reporting the problem. Frietjes (talk) 17:10, 17 March 2016 (UTC)
  • Ahem... Seen some of the above myself in recent days, and can add these just now seen the first time tweaking Lehigh Valley:

Template:Infobox settlement(edit talk links history) {{Infobox settlement |MSA_name = Allentown-Bethlehem-Easton |name = Lehigh Valley, PA-NJ MSA<br/><small>[[List of United States Metropolitan Statistical Areas|Metropolitan Statistical Area]]</small><br/><small>Eastern Pennsylvania</small>}} & Etc.

Warning: Page using Template:Infobox settlement with unknown parameter "density_mi2" (this message is shown only in preview).
Warning: Page using Template:Infobox settlement with unknown parameter "density_km2" (this message is shown only in preview).
Warning: Page using Template:Infobox settlement with unknown parameter "MSA_name" (this message is shown only in preview).
  • Unlike the AxelBoldt, I'm not even brave enough to look. SUSPECT however, someone might assign a dummy category or template call to such parameters, and can run a bot to eliminate same.
Setting ... {{Edit protect}} in a blatant attempt to have the problem looked at by someone annoyed enough to solve these issues... issues which likely wouldn't exist if template coding hadn't gone overboard in consolidating templates a few years back.
  • OTHERWISE, championing the principle of "If you break it, you fix it!", the no longer used parameters ought at least to be trapped IN THE TEMPLATE and NOT reported as an error.
  • Otherwise suggest you lot of over coders get off your butt and run a bot to kill them off. Getting these messages is alarming, hence inconsiderate. // FrankB 21:41, 4 May 2016 (UTC)
Red information icon with gradient background.svg Not done: Those errors are deliberate--in the particular article of interest, you should remove the parameters in question, since the template no longer uses them. Izno (talk) 01:39, 5 May 2016 (UTC)

Template-protected edit request on 12 June 2016[edit]

In Kalmar County the parameter | image_blank_emblem is used to show a map. If this use is adequate the code title=Official logo of should be changed to something else. So that when you hoover your mouse over the image it doesn't show the wrong text. – GeMet [gemet|ʇǝɯǝƃ] 20:21, 12 June 2016 (UTC)

@GeMet: I think |image_blank_emblem= was not designed to be used that way. You could use |image_map=, but if the concern is infobox length (due to the map dimensions), we could introduce |blank_emblem_prefix= to override "Official logo of", which would solve your problem. I'm on the fence about whether this needs consensus. I made this testcase, which uses |blank_emblem_prefix= from the sandbox to customize hovertext. Any comments from others are welcome. — Andy W. (talk ·ctb) 20:39, 12 June 2016 (UTC)
(edit conflict) X mark.svg Not done This is not the correct usage for |image_blank_emblem=. I have moved the map to |image_map=. — JJMC89(T·C) 20:41, 12 June 2016 (UTC)
@GeMet: The following code will get you a result similar to, but not exactly equal to, the result you seek:
Extended content
{{Infobox settlement
| official_name          = Kalmar
| native_name            =
| native_name_lang       = se
| settlement_type        = [[Counties of Sweden|County of Sweden]]
| image_flag             =
| image_shield           = Kalmar län vapen.svg
| shield_size            = 75px
| pushpin_map             = Sweden
| pushpin_mapsize         = <!--omit "px"-->
| pushpin_label_position  = bottom
| pushpin_map_alt         = Location in Sweden
| pushpin_map_caption     = Location in Sweden
| pushpin_map_narrow      = yes

| latd = 56 |latm  = 44|latNS  = N
| longd = 15 |longm = 54|longEW = E

...
— Andy W. (talk ·ctb) 20:54, 12 June 2016 (UTC)

Template-protected edit request on 13 June 2016[edit]

Presently, the infobox pipes "UTC" and the specified offset, to Coordinated Universal Time, eg "UTC+1". It also does this again for daylight saving time (piped to a section, but unnecessary since the label links to Daylight saving time), and two more times if a second time zone is specified. This is contrary to MOS, piping unnecessarily and over linking. Please correct the pipe in the first instance (so only "UTC" is piped) and remove the links in the following three instances. ie from:

Extended content
<!-- ***Time Zones*** -->
| rowclass82 = mergedtoprow
| label82 = {{#if:{{{timezone2|}}}|[[Time zone]]s|[[Time zone]]}}
|  data82 = {{#if:{{{timezone1|{{{timezone|}}}}}}|{{{timezone1|{{{timezone}}}}}} {{#if:{{{utc_offset1|{{{utc_offset|}}} }}}|([[Coordinated Universal Time|UTC{{{utc_offset1|{{{utc_offset}}}}}}]])}} }}

| rowclass83 = mergedrow
| label83 = <nowiki />
|  data83 = {{#if:{{{timezone1|{{{timezone|}}}}}}|{{#if:{{{timezone2|}}}|{{{timezone2}}} {{#if:{{{utc_offset2|{{{utc_offset2|}}} }}}|([[Coordinated Universal Time|UTC{{{utc_offset2|{{{utc_offset2}}}}}}]])}} }} }}

| rowclass84 = mergedrow
| label84 = <span style="white-space:nowrap"> • Summer ([[Daylight saving time|DST]])</span>
|  data84 = {{#if:{{{timezone1|{{{timezone|}}}}}}|{{#if:{{{timezone1_DST|{{{timezone_DST|}}}}}}|{{{timezone1_DST|{{{timezone_DST|}}}}}} ([[Coordinated Universal Time|UTC{{{utc_offset1_DST|{{{utc_offset_DST|}}}}}}]])}} }}

| rowclass85 = mergedrow
| label85 = <nowiki />
|  data85 = {{#if:{{{timezone1|{{{timezone|}}}}}}|{{#if:{{{timezone1_DST|{{{timezone_DST|}}}}}}|{{#if:{{{timezone2_DST|}}}|{{{timezone2_DST}}} ([[Coordinated Universal Time#Daylight saving time|UTC{{{utc_offset2_DST|}}}]])}} }} }}

To

<!-- ***Time Zones*** -->
| rowclass82 = mergedtoprow
| label82 = {{#if:{{{timezone2|}}}|[[Time zone]]s|[[Time zone]]}}
|  data82 = {{#if:{{{timezone1|{{{timezone|}}}}}}|{{{timezone1|{{{timezone}}}}}} {{#if:{{{utc_offset1|{{{utc_offset|}}} }}}|([[Coordinated Universal Time|UTC]]{{{utc_offset1|{{{utc_offset}}}}}})}} }}

| rowclass83 = mergedrow
| label83 = <nowiki />
|  data83 = {{#if:{{{timezone1|{{{timezone|}}}}}}|{{#if:{{{timezone2|}}}|{{{timezone2}}} {{#if:{{{utc_offset2|{{{utc_offset2|}}} }}}|(UTC{{{utc_offset2|{{{utc_offset2}}}}}})}} }} }}

| rowclass84 = mergedrow
| label84 = <span style="white-space:nowrap"> • Summer ([[Daylight saving time|DST]])</span>
|  data84 = {{#if:{{{timezone1|{{{timezone|}}}}}}|{{#if:{{{timezone1_DST|{{{timezone_DST|}}}}}}|{{{timezone1_DST|{{{timezone_DST|}}}}}} (UTC{{{utc_offset1_DST|{{{utc_offset_DST|}}}}}})}} }}

| rowclass85 = mergedrow
| label85 = <nowiki />
|  data85 = {{#if:{{{timezone1|{{{timezone|}}}}}}|{{#if:{{{timezone1_DST|{{{timezone_DST|}}}}}}|{{#if:{{{timezone2_DST|}}}|{{{timezone2_DST}}} (UTC{{{utc_offset2_DST|}}})}} }} }}

Thanks, Rob984 (talk) 10:21, 13 June 2016 (UTC)

I brought your suggestion to the template's sandbox to make it easier to diff. The diff is Special:Diff/721771151/725099556. — Andy W. (talk ·ctb) 15:32, 13 June 2016 (UTC)
@Rob984: In April 2006, the timezone code was updated in Special:Diff/46422131 to [[UTC{{{utc_offset}}}]], which resulted in links like UTC-4 and UTC+8. The reversion to Coordinated Universal Time happened with Special:Diff/656160199 by Mlpearc in April 2015. I wasn't able to find discussion about this in Template talk:Infobox settlement/Archive 25. I'm willing to undo the link retargets unless there are objections. — Andy W. (talk ·ctb) 17:42, 13 June 2016 (UTC)
@Rob984: If my edits are somehow disturbing the flow of the template then by all means revert them. Mlpearc (open channel) 17:49, 13 June 2016 (UTC)
None, that would be my preference actually. Thanks, Rob984 (talk) 18:29, 13 June 2016 (UTC)
@Rob984 and Mlpearc: Actually, piping is more fail-safe, to prevent redlinks when (for example) |utc_offset= is "1:30" or "+1:30", or even "hello" (it would need to be "+01:30"). But I think we can trust users to look up the links at {{UTC time offsets}}. — Andy W. (talk ·ctb) 19:55, 13 June 2016 (UTC)
Marking done for now. Please ping if there are any issues. — Andy W. (talk ·ctb) 20:16, 13 June 2016 (UTC)

Dividing line above image_map missing?[edit]

I think there should be a dividing line above the map, between it and the abbreviations / symbols (flag, coat of arms and motto). One seems to appear when a pushpin_map is used, but not when a image_map is used. For example at Bristol it is missing, whereas at Barcelona it is shown.

Also there should probably be a dividing line between abbreviations and the symbols, since these aren't really related. Maybe the abbreviations field should be moved up to below the official_name and nickname fields?

Rob984 (talk) 01:11, 7 August 2016 (UTC)

There is also a dividing line missing between seat and parts. Rob984 (talk) 16:31, 14 August 2016 (UTC)

One missing below the time zone when postal_code is not given, but area_code is (for example at Catalonia). I assume due to incautious use of mergerow, not considering that many parameters will not be used. Rob984 (talk)

Unresolved

Flag image - official v. unofficial[edit]

For the field "image_flag", what is the position on use of official v. unofficial community flags? The template documentation currently only mentions the intent of the field as "Used for a flag". I tried locating an applicable policy or guidelines; but WP:MOSFLAG is phrased to address flag icons, while WP:WikiProject Cities appears to omit any guidance as well. I couldn't locate this question in the archives.

The reason for this question; at Bellingham, Washington (edit | talk | history | protect | delete | links | watch | logs | views), there appears to be a dispute over the use of File:Bellingham Flag.svg (edit | talk | history | links | watch | logs). The flag did win a Downtown Bellingham Partnership contest to design a community flag in Sept 2015 (here). However, as of July this year, per a Kickstarter page that promotes the flag (here), "The Bellingham government has yet to adopt any official flag, but with your support we are hoping the City will make this one official".

So, is a non-official but community developed flag appropriate for this field in the infobox? --- Barek (talkcontribs) - 04:07, 25 August 2016 (UTC)

IMO it is not desirable to rigidly define the use of this field here, but it would be better to decide it on a case-by-case basis. I suggest to get a consensus at Talk:Bellingham, Washington, or at Wikipedia talk:WikiProject United States. -- P 1 9 9   12:48, 25 August 2016 (UTC)
Official only, otherwise anyone can make up a flag for any community and push it onto Wikipedia. The flag needs to reside on the official community website. • SbmeirowTalk • 13:37, 25 August 2016 (UTC)