Edge Rewrite
Jump to content

Template talk:Infobox dam

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 1 month ago by MSGJ in topic Pushpin map cleanup

Pushpin map marker lacks text

[edit]

Hi, for example in W. A. C. Bennett Dam and Longhorn Dam, the pushpin maps can have title text nearby its locator in the map, lacking now. Please inspect. It should become something like pushpin map of Template:Infobox body of water template in the article E.V. Spence Reservoir. Thanks, Hooman Mallahzadeh (talk) 16:36, 12 April 2025 (UTC)Reply

Support. It would be good if the pushpin label field from location map was added to this template. SnowyRiver28 (talk) 09:24, 12 September 2025 (UTC)Reply
@SnowyRiver28 Sandboxed here, and tested successfully. Hooman Mallahzadeh (talk) 12:40, 12 September 2025 (UTC)Reply

@Joy: Hi, please apply these two changes:

| image2        = {{#if:{{both|{{{location_map|}}}|{{{coordinates|}}}{{#property:P625}}}}|{{Location map|{{{location_map}}}
| relief        = {{yesno|{{{location_map_relief|{{{relief|yes}}}}}}|no=|def=yes}}
| coordinates   = {{{coordinates|}}}
| float         = center
| border        = infobox
| width         = {{{location_map_size|}}}
| default_width = 235
| alt           = {{{location_map_alt|}}}
| caption       = {{#if:{{{location_map_caption|}}}|{{{location_map_caption|}}}|Location of {{{name|{{PAGENAMEBASE}}}}} in {{#invoke:Location map|data|{{{location_map|}}}|name}}}} 
|label = {{#ifeq: {{lc: {{{pushpin_label_position|}}} }} | none | | {{if empty|{{{pushpin_label|}}}|{{{name|}}}|{{PAGENAMEBASE}} }} }}
}}
}}

| image3      = {{ifeq|{{{ShowMap|}}}|yes| 
{{#invoke:Infobox mapframe|auto|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}|mapframe-width=250|mapframe-frame-width=250|mapframe-marker=dam|mapframe-wikidata = yes | mapframe-zoom = 13}}
}}

Thanks alot, Hooman Mallahzadeh (talk) 12:47, 12 September 2025 (UTC)Reply

@Paine Ellsworth Hi and sorry for taking your time. I don't know why this request is still not done. I will appreciate you if you apply that. Thanks, Hooman Mallahzadeh (talk) 08:18, 27 September 2025 (UTC)Reply
To editor Hooman Mallahzadeh:  completed – please update the documentation page as needed. P.I. Ellsworth, ed.  welcome!  17:13, 30 October 2025 (UTC)Reply
@Paine Ellsworth Hi, the above code was for about 2 months ago. And by that code, showing both pushpin and OSM maps needs another paramerter named "ShowMap", which is not true. For example see Three Gorges Dam and pay attention to lack of OSM in its infobox. So please apply this code again:
| image3      = {{#invoke:Infobox mapframe
 | auto
 | onByDefault = {{#if:{{{location_map|}}}|no|yes}}
 |mapframe-marker=dam|mapframe-wikidata = yes | mapframe-zoom = {{{mapframe-zoom|13}}}
}}
sandboxed and tested successfully at Template:Infobox dam/sandbox. By this code by the argument "mapframe = yes" we can show both OSM and pushpin, which has been applied in many articles. Thank you, Hooman Mallahzadeh (talk) 03:44, 31 October 2025 (UTC)Reply
@Paine Ellsworth@Jonesey95 I am really sorry for pinging you. But this request is very urgent and should be done as soon as possible, because many Infoboxes now lack OSM. Hooman Mallahzadeh (talk) 04:33, 1 November 2025 (UTC)Reply
 Completed. P.I. Ellsworth, ed.  welcome!  14:19, 1 November 2025 (UTC)Reply
Thank you so much. Hooman Mallahzadeh (talk) 14:26, 1 November 2025 (UTC)Reply
Happy to help! Paine  14:36, 1 November 2025 (UTC)Reply

Child

[edit]

Please add child to the list of valid parameters in Check for unknown parameters — it is an alias for embedGhostInTheMachine talk to me 10:00, 31 July 2025 (UTC)Reply

 Completed. P.I. Ellsworth, ed.  welcome!  19:12, 12 September 2025 (UTC)Reply

Dam and spillways

[edit]

Dam and spillways section should have parameter "dam_name" (say, above "dam_type").

},
"dam_name": {
  "lable": "Dam name",
"description": "Name of dam. If name of dam is different from name of power plant; sometimes dam and power plant are far apart,  located in different locations with different names.",
"type": "string"
       },

As I explained in above description, the name of a dam is often different from the name of a power plant, because they are often far apart, located in different locations with different names. There are even case where the names are different even though dam and power plant are literally next to each other (like Gorica Dam (forms Gorica Lake) and Trebinje-2 hydroelectrical power station; same is with Grnčarevo Dam with Trebinje-2 hydroelectrical power station.) ౪ Santa ౪99° 00:16, 4 October 2025 (UTC)Reply

Makes sense. Would you be able to sandbox your proposal?  Martin (MSGJ · talk) 10:52, 4 October 2025 (UTC)Reply
I am not sure, I can try. If I fail, I will leave the message here. ౪ Santa ౪99° 12:45, 4 October 2025 (UTC)Reply
No idea how to do that. I tried, but I am not even sure I understand what should I do. I tried to change Template in a sandbox, but it still gives me usual Preview warning: Page using Template:Infobox dam with unknown parameter "dam_name" and in the Template data Unexpected property "params.dam_name.lable". Same for the second parameter inclusion concerning lower_dam_name ౪ Santa ౪99° 13:18, 4 October 2025 (UTC)Reply

Pushpin map cleanup

[edit]

As part of a larger refactor of Module:Location map, I will be refactoring the way that this Infobox calls the location map code. The only noticeable change for most will be that the parameter names related to the pushpin maps will now all start with |pushpin_...=. This is part of a larger effort to make things consistent across Infoboxes. When this is done, ALL infoboxes using pushpin maps will use the same parameters. For more information about this, please see this post. As part of this cleanup, I am also going to resolving any conflicting parameters that I can find and cleaning up parameter names that fail to conform to MOS:INFOBOXNAME. Note that this follows a long list of similar clean ups that I have done on countless other Infoboxes. The parameters I plan to replace are the following:

Deprecate Replace with
|location_map= |pushpin_map=
|location_map_relief= |pushpin_relief=
|relief= |pushpin_relief=
|location_map_size= |pushpin_map_size=
|location_map_alt= |pushpin_alt=

Please chime in below with any questions, comments or concerns about this cleanup. Zackmann (Talk to me/What I been doing) 04:56, 1 July 2026 (UTC)Reply

You made this change 2 minutes after posting above - hardly time for people to comment or ask questions  Martin (MSGJ · talk) 11:32, 1 July 2026 (UTC)Reply
@MSGJ: This is a pretty uncontroversial cleanup... I didn't feel there was a need to wait at all. This is merely a notice of what changes I am making. Renaming parameters that have already been discussed in multiple other venues does not require consensus before making that simple change. This is merely a notice of why those changes are being made to this specific template. Zackmann (Talk to me/What I been doing) 15:32, 1 July 2026 (UTC)Reply
To be clear, if you have an issue with the changes, PLEASE speak up and I'm happy to address them, but I genuinely feel that this is uncontroversial. The purpose of the post was to explain in more detail that I can in an edit summary why the changes are being made. Zackmann (Talk to me/What I been doing) 16:03, 1 July 2026 (UTC)Reply
I have no issue! Just questionning your timing :)  Martin (MSGJ · talk) 07:42, 2 July 2026 (UTC)Reply