Jump to content

Template talk:Infobox bridge: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
m Archiving 1 discussion(s) to Template talk:Infobox bridge/Archive 2) (bot
 
(36 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{{Permanently protected}}
{{WikiProject Infoboxes}}
{{WikiProject Bridges and Tunnels}}
{{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|
{{WikiProject Infoboxes}}
{{WikiProject Bridges and Tunnels}}
}}
}}
{{archives|search=yes}}
{{archives|search=yes}}


== Template-protected edit request on 20 December 2023 ==
==mapframe_* parameters==

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)
{{edit template-protected|Template:Infobox bridge|answered=yes}}
: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)
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)
::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)
:::The correct parameter was {{para|mapframe-zoom}} (note the hyphen). – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 18:15, 9 September 2022 (UTC)
:{{done}}<!-- Template:ETp --> – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 20:39, 20 December 2023 (UTC)
::::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)
:::::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)


== Overall unknown parameters. ==
== Marker of locator ==


Hi, the marker should be "bridge", so please correct that on data86 this way:
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
<syntaxhighlight>
*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.
| header85 = Location
*mapframe_* entries, it appears these *should* be kept, the rejection list just has to match this.
| data86 = {{#invoke:Infobox mapframe|auto|onByDefault=yes|mapframe-frame-width=250|mapframe-marker=bridge}}
*pushpin_* entries, are these deleted or are they like map_frame?
| data87 = {{#invoke:Infobox mapframe|autocaption}}
[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 17:46, 9 September 2022 (UTC)
</syntaxhighlight>
:{{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)
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}}<!--
==Complete==
|bridge_name = Khaju Bridge
At this moment [[:Category:Pages using infobox bridge with unknown parameters]] is empty[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 04:04, 11 September 2022 (UTC)
|image = Khaju Bridje at night.jpg
:Nicely done. Thanks for this gnoming. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 16:17, 11 September 2022 (UTC)
|crosses = [[Zayanderud]]
|locale = [[Isfahan]], [[Iran]]
|designer =
|design = [[Arch bridge]]
|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)


== refs= ==
== Edit request mapframe ==


{{edit template-protected|answered=yes}}
No documentation in the article about the usage of refs=, so assuming a standard ref and cite template would work in the field. The template validates but doesnt show the reference. Referring to [[w:Frank J. Wood Bridge|Frank J. Wood Bridge]] [[User:Jake-jakubowski|Jake-jakubowski]] ([[User talk:Jake-jakubowski|talk]]) 19:38, 22 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)
:{{done}}<!-- Template:ETp --> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:40, 10 September 2024 (UTC)


== Regex pattern error ==
:I may be wrong, but I think giving references for data in infoboxes is largely deprecated these days. It is better to provide the reference for the fact in the body of the article. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:46, 22 September 2022 (UTC)
::Gotcha, thank you! [[User:Jake-jakubowski|Jake-jakubowski]] ([[User talk:Jake-jakubowski|talk]]) 19:54, 22 September 2022 (UTC)


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)
== Template-protected edit request on 18 February 2023 ==


:Not sure what's wrong but those coordinates seem to be causing the error. I've commented them out for now &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:52, 13 September 2024 (UTC)
{{edit template-protected|Template:Infobox bridge|answered=no}}
::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)
Change " --- <span style="font-family: 'Verdana';"><span style="color:red"><span style="font-size:120%">'''Tbf69'''</span></span></span> [[User:Tbf69|P]]&nbsp;&bull;&#32;[[User talk:Tbf69|T]] 10:24, 18 February 2023 (UTC)
:::Thanks for reverting. @[[User:Abductive|Abductive]] was following your suggestion to add mapframe-wikidata &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[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-protected edit request on 20 December 2023

[edit]

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)[reply]

 DoneJonesey95 (talk) 20:39, 20 December 2023 (UTC)[reply]

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)[reply]

Please make the change in the sandbox and show it at work on the testcases page. – Jonesey95 (talk) 05:25, 2 April 2024 (UTC)[reply]
@Jonesey95:  Done Sandboxed here and tested successfully here:

{{Infobox bridge/sandbox}}

Thanks for the testing. This seems like an uncontroversial enhancement, so  Done. – Jonesey95 (talk) 15:09, 2 April 2024 (UTC)[reply]

Edit request mapframe

[edit]

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)[reply]

 Done — Martin (MSGJ · talk) 10:40, 10 September 2024 (UTC)[reply]

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 (talkcontribs) 07:40, 13 September 2024 (UTC)[reply]

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)[reply]
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)[reply]
Thanks for reverting. @Abductive was following your suggestion to add mapframe-wikidata — Martin (MSGJ · talk) 12:35, 13 September 2024 (UTC)[reply]
Was it because the Wikipedia (or Wikidata) coordinates missed the bridge(s) as shown on OSM? Abductive (reasoning) 12:50, 13 September 2024 (UTC)[reply]