Template talk:Infobox dam
| This is the talk page for discussing improvements to the Infobox dam template. |
|
| Archives: 1, 2Auto-archiving period: 30 days |
| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
| |||||||||||||||
Edit request
[edit]The link for label52 needs to just be Dam#Types. The "of dams" part was removed from the section name over a year ago. lukini (talk | contribs) 18:36, 4 September 2024 (UTC)
Done, thanks for the suggestion — Martin (MSGJ · talk) 20:55, 4 September 2024 (UTC)
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)
- 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)
- @SnowyRiver28 Sandboxed here, and tested successfully. Hooman Mallahzadeh (talk) 12:40, 12 September 2025 (UTC)
This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
@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)
- @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)
- To editor Hooman Mallahzadeh:
completed – please update the documentation page as needed. P.I. Ellsworth , ed. – welcome! – 17:13, 30 October 2025 (UTC)
- @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)

This edit request has been answered. Set the |answered=parameter to no to reactivate your request.- @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)
Completed. P.I. Ellsworth , ed. – welcome! – 14:19, 1 November 2025 (UTC)
- Thank you so much. Hooman Mallahzadeh (talk) 14:26, 1 November 2025 (UTC)
- Happy to help! Paine 14:36, 1 November 2025 (UTC)
- Thank you so much. Hooman Mallahzadeh (talk) 14:26, 1 November 2025 (UTC)
- To editor Hooman Mallahzadeh:
Child
[edit]Please add child to the list of valid parameters in Check for unknown parameters — it is an alias for embed — GhostInTheMachine talk to me 10:00, 31 July 2025 (UTC)
Completed. P.I. Ellsworth , ed. – welcome! – 19:12, 12 September 2025 (UTC)
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)
- Makes sense. Would you be able to sandbox your proposal? — Martin (MSGJ · talk) 10:52, 4 October 2025 (UTC)
- I am not sure, I can try. If I fail, I will leave the message here. ౪ Santa ౪99° 12:45, 4 October 2025 (UTC)
- 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 dataUnexpected property "params.dam_name.lable".Same for the second parameter inclusion concerninglower_dam_name౪ Santa ౪99° 13:18, 4 October 2025 (UTC)