Template talk:Infobox bridge: Difference between revisions
→Complete: thanks |
m Archiving 1 discussion(s) to Template talk:Infobox bridge/Archive 2) (bot |
||
(44 intermediate revisions by 15 users not shown) | |||
Line 1: | Line 1: | ||
{{Permanently protected}} |
|||
⚫ | |||
⚫ | |||
{{User:MiszaBot/config |
{{User:MiszaBot/config |
||
|archiveheader = {{talkarchivenav}} |
|archiveheader = {{talkarchivenav}} |
||
Line 9: | Line 8: | ||
|algo = old(100d) |
|algo = old(100d) |
||
|archive = Template talk:Infobox bridge/Archive %(counter)d |
|archive = Template talk:Infobox bridge/Archive %(counter)d |
||
}} |
|||
{{WikiProject banner shell| |
|||
⚫ | |||
⚫ | |||
}} |
}} |
||
{{archives|search=yes}} |
{{archives|search=yes}} |
||
== Template-protected edit request on 20 December 2023 == |
|||
== Image and map widths == |
|||
{{re|MSGJ}} I am attempting to simply make graphics (images and maps) as wide as the infobox by default. There's no reason to have unnecessary whitespace by a narrow image, or a too-wide image jutting out. And if someone had a reason, they can easily change from the defaults. This is a norm in most other highly-used infoboxes. What problem do you have with it? [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 21:22, 12 July 2022 (UTC) |
|||
:I continue to object to this default image sizing in infoboxes, per [[MOS:IMGSIZE]] ({{tq|Except with very good reason, a fixed width in pixels (e.g. 17px) should not be specified}}). When I look at [[Template:Infobox bridge/testcases]], the Sydney Harbor Bridge image is a reasonable size for me in the live template (no default size, so it uses my preferred thumb size), and the sandbox version ({{U|Ɱ}}'s preferred version) is too small. I have not bothered to revert changes that Ɱ has made to other infoboxes, because I don't care to start edit wars over something that is not actually broken, but I do object to the default pixel sizing and think that MOS should govern. If the image size is too small for the default reader, get the default MediaWiki thumb size increased, or do something else systematic that is not contrary to MOS. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 22:35, 12 July 2022 (UTC) |
|||
::This objection is full of bad logic. For starters, you cite [[MOS:IMGSIZE]], which actually '''supports''' what I am doing: {{green|"Cases where fixed sizes may be used include for standardization of size via templates (such as within infobox templates or the display of country flag icons)"}}. As a secondary item, you need to consider the infobox's display to the public. When viewed on desktop and mobile views, to me, to logged-out users, (and I suspect to you especially), the sandbox version displays with the least amount of unnecessary whitespace, and with images and maps lining up by default, unlike in the current version. May I reiterate that this is not just some random wild task I am embracing - it has been discussed multiple times in infobox discussions, and this is a clear preference among users. [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 23:27, 12 July 2022 (UTC) |
|||
:::Please link to one of those many discussions. The section quoted from [[MOS:IMGSIZE]] links to [[WP:INFOBOXIMAGE]], which recommends using [[Module:InfoboxImage]], which in its documentation says the image size defaults to <code>frameless</code>. If the module is not used, [[WP:INFOBOXIMAGE]] recommends using <code>frameless</code>, which respects thumbnail preferences. That seems like multiple consensus recommendations to avoid a default size specification in pixels. The documentation at the module, which was specifically created for use in infoboxes, says {{tq|When "size", "sizedefault", and "maxsize" are not defined, "frameless" is added, which displays the image at the default thumbnail size (220px, but logged in users can change this at Special:Preferences) and is required if using "upright" to scale the default size.}} If somehow 250px is a better default size for infobox images, perhaps that module's default settings should be modified to scale the default size. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 01:00, 13 July 2022 (UTC) |
|||
::::Again, incredibly frayed logic. I am directly quoting to you what MOS:IMGSIZE, the ''primary guide to sizing images'', says about how to size infobox images. This is ultra-clear guidance, while neither of the other sources you provided give any actual guidance on the issue whatsoever. This is plain wikilawyering, to wildly come up with an opposite solution to what our Manual of Style clearly states. It allows us to change infobox default sizing; many infoboxes have done so for years and years; and we are be able to here too. I can look into modifying the module as well, thank you for looking into it. [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 02:28, 13 July 2022 (UTC) |
|||
:::::[[WP:INFOBOXIMAGE]] is a guideline specifically for infoboxes and is part of the MOS. It appears that, as sometimes happens, pieces of the MOS, which is a sprawling set of pages, are not properly aligned. I find nothing wild about the logical sequence of conclusions I reached above, but I can see that, by looking at only one sentence on one MOS page, a person could arrive at a different conclusion. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 05:58, 13 July 2022 (UTC) |
|||
::::::[[WP:INFOBOXIMAGE]] does not provide guidance on how we should size images. [[MOS:IMGSIZE]] clearly does. For you to ignore one and read into the other to make an argument contrary to what is plainly stated is not sincere. [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 16:05, 13 July 2022 (UTC) |
|||
:::::::[[WP:NPA|I am not ignoring anything, and I am engaging sincerely]]. [[WP:INFOBOXIMAGE]] clearly says to use [[Module:InfoboxImage]], which defaults to <code>frameless</code>, which has a default size, so there is definitely sizing guidance there. Regardless, let's try to work together on a fix to the module rather than quibbling over MOS, the latter of which I have never found to be productive. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 17:09, 13 July 2022 (UTC) |
|||
Thank you for starting this discussion, it is clearly a contentious issue. I am not dead set against the change but I think changes to widely used templates should be discussed, especially protected ones. Looking at the examples on the testcases I agree that on my browser the wider image does look slightly better. But, like Jonesey, I inherently dislike fixing sizes of images. I would like to know how the numbers 250px and 325px were arrived at. I must admit that I don't understand what ''frameless'' does, but why in your opinion, is it not ideal in these situations? If all you are trying to achieve is to fill the width of the infobox, then I suspect there is a better way to achieve this. In which case I may support a change to the default parameters of [[Module:InfoboxImage]]. Setting this at the level of individual templates seems like the wrong approach to me — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:47, 13 July 2022 (UTC) |
|||
:It is not a contentious issue except to one person so far, who chooses to set their images to a large size, which already makes for a poorly-formatted infobox. That is their right - what is not their right is to make a great many infoboxes by-default poorly formatted for every member of the public. I am willing to discuss more. 250px makes the image as wide as the infobox by default, while 325px is a norm for max image size in the infobox. MOS:IMGSIZE specifies even more conservatively - 300px as a max size for the lead image. [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 16:09, 13 July 2022 (UTC) |
|||
:<code>frameless</code> displays the image without a border or a caption, at the default thumbnail size, which is 220px, or at the editor's chosen thumbnail size, which can be set in the editor's preferences. So for logged-out readers, the Sydney Harbor image shown is 220px, which leaves some white space in the infobox. For me, that same image is 300px, since that is my preference, and 250px is smaller. I believe that the default width of an infobox is 22em, which I could be wrong about, but which is probably relevant, whatever the default width equates to in pixels. I think that a discussion at [[Module talk:InfoboxImage]] with a notice at [[Wikipedia talk:Manual of Style/Infoboxes]] might be helpful. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:22, 13 July 2022 (UTC) |
|||
::250px is the default width of the infobox, and MOS:IMGSIZE says that for standardization of infobox sizes, image sizes can be fixed, as opposed to scalable, within the infobox. I would be happy to discuss at those pages if you insist - you are the only person with an objection to it so far. [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 16:14, 13 July 2022 (UTC) |
|||
::{{re|Jonesey95}} is the ideal solution to modify "frameless" to 250px, as opposed to 220px? Allowing you to scale your infoboxes? Scaling images in infoboxes is clearly not preferred in the MOS, but if you won't allow me to modify infobox image sizes any other way (even though I have the guidelines on my side), I can look into it. The only problem is that many frameless images not used in infoboxes will be changed. Truly the best solution is to follow the MOS and simply change Module:InfoboxImage and/or Template:Infobox bridge. [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 16:21, 13 July 2022 (UTC) |
|||
:::I think the ideal solution would be for [[Module:InfoboxImage]] to assign a default size that is compatible with the default width of infoboxes but that respects editors' thumb size preferences. I ''think'' that might be doable with something like a default of <code>upright=1.14</code> (1.14=250px/220px), but it would require testing. The idea would be to make it so that the infobox image default of <code>frameless</code> applies a size of 250px, but applies a 1.14 scaling factor to whatever thumb size editors have chosen for themselves. Making this change would not affect frameless or thumb images outside of infoboxes, or infobox images that do not use [[Module:InfoboxImage]]. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 17:09, 13 July 2022 (UTC) |
|||
::::Okay, this sounds like a valid solution, if possible. I'm not familiar with Lua, do you know how this can be implemented? [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 17:14, 13 July 2022 (UTC) |
|||
::::{{re|Jonesey95}} Do you have an update on this, or do you know anyone who can assist with it? [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 17:57, 5 August 2022 (UTC) |
|||
== Default parameters == |
|||
I see from above that there apparently are some parameters automatically filled from WD if not specified in the transclusion (although this doesn't appear to be documented). This may be valid for stand-alone infoboxes, but I have an embedded bridge infobox displaying coordinates that are redundant with the parent infobox. Need a way to override this. Embedded infoboxes should only contain unique information with respect to the parent infobox. See [[Harpersfield Covered Bridge]]. [[User:MB|<b style="color:#034503">MB</b>]] 06:53, 26 July 2022 (UTC) |
|||
:You're right, this does need documenting. I have fixed the article you mentioned above. We could perhaps change the default behaviour when {{para|embed|yes}} is used? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:21, 26 July 2022 (UTC) |
|||
::Setting fetch wikidata to off as you did in this article is probably sufficient, I was unaware that was an option. Changing the default behavior when embedded will work too. [[User:MB|<b style="color:#034503">MB</b>]] 14:18, 26 July 2022 (UTC) |
|||
{{edit template-protected|Template:Infobox bridge|answered=yes}} |
|||
== map_* parameters == |
|||
In the caption line, the template includes <nowiki><big>Big text</big></nowiki>, such that the text "Big text" appears uselessly at the end of the image caption for each instance of the infobox. Please fix by removing the extra wikicode. [[User:Hamtechperson|<span style="color: BLUE;">Ham</span>]][[User talk:Hamtechperson|<span style="color: GREEN;">tech</span>]][[Special:Contributions/Hamtechperson|<span style="color: RED;">person</span>]] 20:13, 20 December 2023 (UTC) |
|||
⚫ | |||
== Marker of locator == |
|||
There are a *lot* (> 1,000, I think) of pages with map_image and other map_ related parameters which I see were deleted. For which of these can the parameter and its data simply be deleted, and are there any where the parameter should change?[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 17:16, 8 September 2022 (UTC) |
|||
:It appears that all {{para|map_*}} parameters were [https://en.wikipedia.org/enwiki/w/index.php?title=Template%3AInfobox_bridge&type=revision&diff=992542054&oldid=986058432 removed in December 2020], so there should be no harm in removing those parameters from articles. If the article is not showing a map, adding {{para|coordinates}} may be needed. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 20:33, 8 September 2022 (UTC) |
|||
::I'm going to clean them out using AWB. I'll start with a subset of 100 or so.[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 23:56, 8 September 2022 (UTC) |
|||
Hi, the marker should be "bridge", so please correct that on data86 this way: |
|||
<syntaxhighlight> |
|||
| header85 = Location |
|||
| data86 = {{#invoke:Infobox mapframe|auto|onByDefault=yes|mapframe-frame-width=250|mapframe-marker=bridge}} |
|||
| data87 = {{#invoke:Infobox mapframe|autocaption}} |
|||
</syntaxhighlight> |
|||
Thanks, [[User:Hooman Mallahzadeh|Hooman Mallahzadeh]] ([[User talk:Hooman Mallahzadeh|talk]]) 10:38, 30 March 2024 (UTC) |
|||
:Please make the change in the sandbox and show it at work on the testcases page. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 05:25, 2 April 2024 (UTC) |
|||
:: {{ping|Jonesey95}} {{Done}} Sandboxed [[Template:Infobox bridge/sandbox|here]] and tested successfully here: |
|||
{{tl|Infobox bridge/sandbox}}<!-- |
|||
==mapframe_* parameters== |
|||
|bridge_name = Khaju Bridge |
|||
Are these valid or not, I don't see them in the main part of the template?[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 17:13, 9 September 2022 (UTC) |
|||
|image = Khaju Bridje at night.jpg |
|||
:Yes, they are part of header85, as part of #invoke:Infobox mapframe. [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 17:16, 9 September 2022 (UTC) |
|||
|crosses = [[Zayanderud]] |
|||
::It appears that it still makes them go to [[:Category:Pages using infobox bridge with unknown parameters]]. For example, [[Sarah Mildred Long Bridge]] has mapframe_zoom = 13 as one of the parameters. It shows up as an error in the preview and is in the unknown parameters cat.[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 17:34, 9 September 2022 (UTC) |
|||
|locale = [[Isfahan]], [[Iran]] |
|||
⚫ | |||
|designer = |
|||
::::I'll set to a regex to change parameters that are mapframe_ to mapframe- and rerun. Not sure that will get rid of a *huge amount*, but a start.[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 18:46, 9 September 2022 (UTC) |
|||
|design = [[Arch bridge]] |
|||
:::::Good call. Please check {{cl|Pages using duplicate arguments in template calls}} when you are done, in case there was already a mapframe-* parameter present. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 19:01, 9 September 2022 (UTC) |
|||
|material = [[Rock (geology)|Stone]] and [[brick]] |
|||
|spans =21 |
|||
|mainspan = |
|||
|length ={{cvt|137|m}} |
|||
|width ={{cvt|12|m}} |
|||
|begin = |
|||
|complete = 1650 |
|||
| coordinates = {{WikidataCoord|Q1740490|display=i}} |
|||
| mapframe-zoom = 15 |
|||
}}--> |
|||
:::Thanks for the testing. This seems like an uncontroversial enhancement, so {{done}}. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:09, 2 April 2024 (UTC) |
|||
== Edit request mapframe == |
|||
== Demolished should be added to the acceptable. == |
|||
{{edit template-protected|answered=yes}} |
|||
Demolished is a valid parameter, but it still causes the page to go to [[:Category:Pages using infobox bridge with unknown parameters]] [[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 17:16, 9 September 2022 (UTC) |
|||
Per [https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)/Archive_213#%22coords%22_vs_%22coordinates%22_in_infoboxes this discussion], could somebody make the change required [https://en.wikipedia.org/enwiki/w/index.php?title=Template%3AInfobox_park&diff=1232440197&oldid=1167321771 (example)] to have the red outline appear in the map? <span style="font-family: Cambria;"> [[User:Abductive|<span style="color: teal;">'''Abductive'''</span>]] ([[User talk:Abductive|reasoning]])</span> 08:24, 10 September 2024 (UTC) |
|||
:Should be fixed now. [[User:Ɱ|<span style="text-shadow:#bbb 0.1em 0.1em 0.1em;" class="texhtml">'''ɱ'''</span>]] [[User talk:Ɱ|(talk)]] 17:17, 9 September 2022 (UTC) |
|||
:{{done}}<!-- Template:ETp --> — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:40, 10 September 2024 (UTC) |
|||
== |
== Regex pattern error == |
||
A heads-up that an error shows up below the Location header, such as in [[Norfolk Southern–Gregson Street Overpass]]. [[User:LightNightLights|LightNightLights]] ([[User talk:LightNightLights|talk]] • [[Special:Contributions/LightNightLights|contribs]]) 07:40, 13 September 2024 (UTC) |
|||
I went through and cleaned out using what I could from the map_ parameters and a few manual entries. What is left appears to be the following |
|||
*map_caption entries, some of which are *very* complicated inclusion having other templates in the value, so trying to write a regex to clean it is difficult. |
|||
*mapframe_* entries, it appears these *should* be kept, the rejection list just has to match this. |
|||
*pushpin_* entries, are these deleted or are they like map_frame? |
|||
[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 17:46, 9 September 2022 (UTC) |
|||
:{{para|pushpin*}} are related to the old map parameters and can be removed. All of the {{para|mapframe-*}} parameters use hyphens, not underscores, AFAICT. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 18:18, 9 September 2022 (UTC) |
|||
::Getting rid of the pushpin ones as well.[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 18:47, 9 September 2022 (UTC) |
|||
:Not sure what's wrong but those coordinates seem to be causing the error. I've commented them out for now — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:52, 13 September 2024 (UTC) |
|||
==Complete== |
|||
::I fixed the problem in the template. A recent change was causing this error message in 500+ pages. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 12:01, 13 September 2024 (UTC) |
|||
: |
:::Thanks for reverting. @[[User:Abductive|Abductive]] was following your suggestion to add mapframe-wikidata — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 12:35, 13 September 2024 (UTC) |
||
::::Was it because the Wikipedia (or Wikidata) coordinates missed the bridge(s) as shown on OSM? <span style="font-family: Cambria;"> [[User:Abductive|<span style="color: teal;">'''Abductive'''</span>]] ([[User talk:Abductive|reasoning]])</span> 12:50, 13 September 2024 (UTC) |
Latest revision as of 14:14, 13 September 2024
Template:Infobox bridge is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
|
|
||
This page has archives. Sections older than 100 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Template-protected edit request on 20 December 2023
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
In the caption line, the template includes <big>Big text</big>, such that the text "Big text" appears uselessly at the end of the image caption for each instance of the infobox. Please fix by removing the extra wikicode. Hamtechperson 20:13, 20 December 2023 (UTC)
- Done – Jonesey95 (talk) 20:39, 20 December 2023 (UTC)
Marker of locator
[edit]Hi, the marker should be "bridge", so please correct that on data86 this way:
| header85 = Location
| data86 = {{#invoke:Infobox mapframe|auto|onByDefault=yes|mapframe-frame-width=250|mapframe-marker=bridge}}
| data87 = {{#invoke:Infobox mapframe|autocaption}}
Thanks, Hooman Mallahzadeh (talk) 10:38, 30 March 2024 (UTC)
- Please make the change in the sandbox and show it at work on the testcases page. – Jonesey95 (talk) 05:25, 2 April 2024 (UTC)
- Thanks for the testing. This seems like an uncontroversial enhancement, so Done. – Jonesey95 (talk) 15:09, 2 April 2024 (UTC)
Edit request mapframe
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Per this discussion, could somebody make the change required (example) to have the red outline appear in the map? Abductive (reasoning) 08:24, 10 September 2024 (UTC)
- Done — Martin (MSGJ · talk) 10:40, 10 September 2024 (UTC)
Regex pattern error
[edit]A heads-up that an error shows up below the Location header, such as in Norfolk Southern–Gregson Street Overpass. LightNightLights (talk • contribs) 07:40, 13 September 2024 (UTC)
- Not sure what's wrong but those coordinates seem to be causing the error. I've commented them out for now — Martin (MSGJ · talk) 07:52, 13 September 2024 (UTC)
- I fixed the problem in the template. A recent change was causing this error message in 500+ pages. – Jonesey95 (talk) 12:01, 13 September 2024 (UTC)
- Thanks for reverting. @Abductive was following your suggestion to add mapframe-wikidata — Martin (MSGJ · talk) 12:35, 13 September 2024 (UTC)
- Was it because the Wikipedia (or Wikidata) coordinates missed the bridge(s) as shown on OSM? Abductive (reasoning) 12:50, 13 September 2024 (UTC)
- Thanks for reverting. @Abductive was following your suggestion to add mapframe-wikidata — Martin (MSGJ · talk) 12:35, 13 September 2024 (UTC)
- I fixed the problem in the template. A recent change was causing this error message in 500+ pages. – Jonesey95 (talk) 12:01, 13 September 2024 (UTC)