Revision as of 02:19, 30 October 2018 editLowercase sigmabot III (talk | contribs)Bots, Template editors2,305,781 editsm Archiving 5 discussion(s) to Template talk:Infobox lighthouse/Archive 1) (bot← Previous edit | Latest revision as of 22:01, 1 July 2024 edit undoCewbot (talk | contribs)Bots7,838,164 editsm Maintain {{WPBS}}: 2 WikiProject templates. Create {{WPBS}}.Tag: Talk banner shell conversion | ||
(153 intermediate revisions by 17 users not shown) | |||
Line 1: | Line 1: | ||
{{WikiProject banner shell| | |||
{{talkheader}} | |||
{{WikiProject |
{{WikiProject Infoboxes}} | ||
{{WikiProject Lighthouses}} | |||
}} | |||
{{todo}} | |||
{{User:MiszaBot/config | {{User:MiszaBot/config | ||
|archiveheader = {{talkarchivenav}} | |archiveheader = {{talkarchivenav}} | ||
|maxarchivesize = 90K | |maxarchivesize = 90K | ||
|counter = 1 | |counter = 1 | ||
|minthreadsleft = |
|minthreadsleft = 10 | ||
|minthreadstoarchive = |
|minthreadstoarchive = 2 | ||
|algo = old( |
|algo = old(180d) | ||
|archive = Template talk:Infobox lighthouse/Archive %(counter)d | |archive = Template talk:Infobox lighthouse/Archive %(counter)d | ||
}} | }} | ||
{{Archives |age= |
{{Archives |age=180}} | ||
== Use of wikidata == | |||
I am reviewing the use of Wikidata in this template, and considering whether any other fields can be fetched. — Martin <small>(] · ])</small> 21:16, 1 March 2021 (UTC) | |||
{| class="wikitable" | |||
!Field !! Properties !!Status | |||
|- | |||
|Title || label || {{tick}} 2017 | |||
|- | |||
|Image || {{Q|P18}}, {{Q|P2096}} || {{tick}} 2017 | |||
|- | |||
|Location || {{Q|P706}}, {{Q|P276}}, {{Q|P131}}, {{Q|P17}} || {{tick}} 2017 | |||
|- | |||
|Coordinates || {{Q|P625}} || {{tick}} 2017 | |||
|- | |||
|Automated || {{Q|P793}} - {{Q|Q24410992}} / {{Q|P585}} || {{tick}} 2017 | |||
|- | |||
|Deactivated || {{Q|P730}} ||{{tick}} 2017 | |||
|- | |||
|Tower shape || {{Q|P1419}} || {{tick}} 2017 | |||
|- | |||
|Tower height || {{Q|P2048}} || {{tick}} 2017 | |||
|- | |||
|Focal height || {{Q|P2923}} || {{tick}} 2017 | |||
|- | |||
|Range || {{Q|P2929}} || {{tick}} 2017 | |||
|- | |||
|Characteristic || {{Q|P1030}} || {{tick}} 2017 | |||
|- | |||
|Racon || {{Q|P3994}} || {{tick}} 2017 | |||
|- | |||
|Managing agent || {{Q|P137}} || {{tick}} 2017 | |||
|- | |||
|Heritage || {{Q|P1435}} || {{tick}} 2017 | |||
|- | |||
|OS grid || {{Q|P613}} || {{done}} | |||
|- | |||
|Year first constructed || {{Q|P571}} || {{done}} | |||
|- | |||
|Year first lit || {{Q|P729}} || {{done}} | |||
|- | |||
|Intensity || {{Q|P3041}} || {{done}} | |||
|- | |||
|Light source || {{Q|P618}} || {{xmark}} not the same | |||
|- | |||
|Admiralty number || {{Q|P3562}} || {{done}} | |||
|- | |||
|NGA number || {{Q|P3563}} || {{done}} | |||
|- | |||
|ARLHS number || {{Q|P2980}} || {{done}} | |||
|- | |||
|USCG number || {{Q|P3723}} || {{done}} | |||
|- | |||
|Construction || {{Q|P186}} || {{done}} | |||
|- | |||
|Markings/pattern || {{Q|P462}}, {{Q|P5422}} || {{done}} | |||
|- | |||
|Built by || {{Q|P287}}, {{Q|P193}} || {{done}} | |||
|- | |||
|CCG number || {{Q|P3920}} || {{done}} | |||
|- | |||
|Lens || {{Q|P9597}} || {{done}}} May 2021 | |||
|} | |||
=== Additional identifiers === | |||
Is there interest in adding any of the following identifiers to the infobox? — Martin <small>(] · ])</small> 21:59, 1 March 2021 (UTC) | |||
*{{Q|P3601}} | |||
*{{Q|P3223}} | |||
*Country specific: | |||
**{{Q|P4038}} | |||
**{{Q|P4143}} | |||
**{{Q|P4055}} | |||
**{{Q|P3993}} | |||
**{{Q|P3211}} | |||
**{{Q|P3863}} | |||
**{{Q|P4423}} | |||
My personal opinion is that these kinds of identifiers should generally be kept to a minimum in the infobox, because they are not human-readable. However I think country specific identifiers could be useful for lighthouses from those specific countries, and if the identifier links to a reliable source of information for that lighthouse (e.g. NGA) then that is quite useful for verifying details. — Martin <small>(] · ])</small> 11:07, 2 March 2021 (UTC) | |||
===Year first constructed=== | |||
If a lighthouse takes several years to construct (not unusual) should this field record the start of construction or the end of construction? — Martin <small>(] · ])</small> 16:35, 2 March 2021 (UTC) | |||
:I don't know if anyone else is watching and would like to comment? My opinion is that "Constucted" should logically give the date of start of construction. If it was the end of construction, then it would in most cases coincide with the "First lit" field. — Martin <small>(] · ])</small> 14:26, 4 March 2021 (UTC) | |||
===Light source=== | |||
What kind of values does this field take? I would be interested to see some examples of it in use. I suspect it is not equivalent to {{Q|P618}} (which would be solar power/battery for most lighthouses nowadays) — Martin <small>(] · ])</small> 16:48, 3 March 2021 (UTC) | |||
:{{ping|Stuffed cat}} would you be able to explain your reasoning for adding this field to the infobox, and give some examples of its use? And if possible, could the documentation be for this parameter be made clearer? Thanks — Martin <small>(] · ])</small> 08:48, 11 March 2021 (UTC) | |||
::I think the best list of options comes from the series of light sources I put on the ] page: Paraffin wick lamp, Pressurised paraffin burner, Tungsten filament lamp, CDM T lamp, High intensity LED lamp. | |||
::The trouble is that most of these are obsolete and I suspect only a limited range of sources are used today. As for the reasoning it's a matter of documenting and characterising the lighthouse. As you suggest the 'Power source' might also be a good one to have and this might take values like: Mains electricity, Hydrogen fuel cell, Photovoltaic cells. I'm not confused about what |lightsource is but I think the examples should clear up any confusion there may be. Anyway I've modified the Usage part and I hope all concerned are happy with it. I note that there's a lot of red warnings on the preview page - I don't think that has anything to do with me. ] (]) 02:30, 13 March 2021 (UTC) | |||
:::Thanks for the clarification Stuffed cat. That is a really nice comprehensive article there, and well sourced! I think a list of possible values would be useful. It won't be exhaustive, but should guide editors. — Martin <small>(] · ])</small> 10:09, 13 March 2021 (UTC) | |||
In my experience most uses of this field are using it incorrectly. The most common value is "solar power" or occasionally "mains power", which is of course not the "light source" but the "power source". I am proposing to add a new field to the infobox called '''Power source''' and get its data from {{Q|P618}}. I will look into whether the erroneous values in {{para|lightsource}} can be transferred over in due course. — Martin <small>(] · ])</small> 09:14, 1 April 2021 (UTC) | |||
:I have created ] to find articles where editors have wrongly used "solar powered" in the "light source" field. I plan to move these over to the "power source" field instead. — Martin <small>(] · ])</small> 12:49, 21 May 2021 (UTC) | |||
::This is now {{done}} — Martin <small>(] · ])</small> 11:50, 16 June 2021 (UTC) | |||
===Qualifiers=== | |||
The infobox will now recognise some qualifiers from Wikidata. For example: | |||
{{Statement+ | |||
|rank=+1 | |||
|P={{P-|P186}} | |||
|V={{Q-|Q287}} | |||
|qp={{P-|P518}} | |||
|qv={{Q-|Q12518}} | |||
}}{{Statement+ | |||
|rank=+1 | |||
|P={{P-|P462}} | |||
|V={{Q-|Q23444}} | |||
|q1.p={{P-|P518}} | |||
|q1.v1={{Q-|Q12518}} | |||
|V2={{Q-|Q23445}} | |||
|V2.q1.p={{P-|P518}} | |||
|V2.q1.v1={{Q-|Q2618398}} | |||
}} | |||
{{Infobox lighthouse|construction=wood (tower)|marking=white (tower), black (lantern)}} | |||
yields the example on the right. I will endeavour to document these features shortly — Martin <small>(] · ])</small> 19:02, 16 March 2021 (UTC) | |||
== Lens == | |||
{| | |||
|- | |||
|{{Infobox|label1=Original lens|data1=1st order 920mm fixed lens|label2=Current lens|data2=Fourth order ]}} || {{Infobox|label1=Lens|data1=1st order 920mm fixed lens (original),<br>Fourth order ] (current)}} | |||
|} | |||
I suggest merging '''Original lens''' and '''Current lens''' into simply '''Lens'''. If both fields are used then qualifiers (original) and (current) could be added automatically. If just one is used, then no qualifier is needed. | |||
The reason is that if the current is the same as the original, then the infobox looks a little silly. — Martin <small>(] · ])</small> 15:53, 16 March 2021 (UTC) | |||
{| | |||
|- | |||
|{{Infobox|label1=Original lens|data1=Fourth order ]|label2=Current lens|data2=Fourth order Fresnel lens}} || {{Infobox|label1=Lens|data1=Fourth order ]}} | |||
|} | |||
I have created a tracking category ] and intend to merge the two parameters shortly — Martin <small>(] · ])</small> 12:46, 21 May 2021 (UTC) | |||
:I have emptied ] by renaming the "currentlens" parameter to "lens". I am planning to start on the remaining articles in ] by appending (original) and (current) to the values and merging, i.e. for example, from | |||
<pre> | |||
| lens = Fourth order ] | |||
| currentlens = 375 mm lens | |||
</pre> | |||
to | |||
<pre> | |||
| lens = Fourth order ] (original), 375 mm lens (current) | |||
</pre> | |||
— Martin <small>(] · ])</small> 22:36, 10 June 2021 (UTC) | |||
:{{done}} All instances have been converted, and the currentlens parameter will be removed shortly — Martin <small>(] · ])</small> 20:16, 16 June 2021 (UTC) | |||
== CHS number == | |||
I don't think CHS number (linked to ]) is an accurate name for this. The list of lights appears to be maintained by the ]. Editors have got around the issue by prefixing the number with CCG. I suggest renaming this label to '''] number''' and then these prefixes would be redundant. — Martin <small>(] · ])</small> 12:03, 7 May 2021 (UTC) | |||
:{{done}} — Martin <small>(] · ])</small> 09:48, 13 May 2021 (UTC) | |||
The prefix CCG on these numbers is now unnecessary. I have created a tracking category ] to find these for removal. — Martin <small>(] · ])</small> 12:48, 21 May 2021 (UTC) | |||
==lighthouse pushpin misplaced== | |||
:These have now been cleared — Martin <small>(] · ])</small> 22:44, 10 June 2021 (UTC) | |||
Thank y'all for your work on the technical side, but there's a UI problem. | |||
== Owner parameter? == | |||
It's fine if a viewer already knows the correct placement of the lighthouse and therefore understands that the icon is marking its bottom-right corner, but ''that's non-intuitive''. Is it impossible to correctly position the icon so that the GPS point being marked is at the intuitive location at the ''center'' of its base? If that's impossible, the icon is cute but so misleading it should really be removed and replaced with one of the accurately-placed dots. | |||
Hi, is there any interest in adding an "owner" parameter in the infobox? In most cases a lighthouse is owned by the national government of the site but an exception is possible. Regards, ... ] (]) 13:15, 23 July 2021 (UTC) | |||
See, e.g., the difference between revisions of an article on a North Korean headland whose original GPS image was replaced by this template. The "lighthouse" pushpin not only makes it appear that the lighthouse is located miles inland but that the cape being referenced is an entirely different one from the truth. The "dot" pushpin, however, is completely accurate. — ] 23:16, 10 May 2017 (UTC) | |||
:There is {{para|managing_agent}}, which displays with the heading '''Operator:'''. Since there are probably very few cases where the owner is different that the operator, exceptions can be handled by saying something like "(owned by national government)" after showing the operator. ] 14:19, 23 July 2021 (UTC) | |||
: {{U|Llywelyn}}, I centered the base of the lighthouse in a derivative version of the icon on commons. so, the base should be correctly centered now. ] (]) 15:10, 8 June 2017 (UTC) | |||
:I think adding "owner" would be an excellent idea, but perhaps with advice not to include unless it is different from operator? — Martin <small>(] · ])</small> 17:56, 14 September 2021 (UTC) | |||
== |
== Importing to Wikidata == | ||
For those editors interested in using Wikidata to store the data for the infoboxes, I have been working on a tool to help import directly from the infobox template. | |||
The article ] contains two instances of Infobox lighthouse—one for the eponymous lighthouse and one for the Skunk Bay Memorial Lighthouse, to which part of the Smith Island Light was moved before its destruction (and about which we lack an article). The latter one is, however, picking up from Wikidata an image and some information that applies not to the Skunk Bay Memorial Lighthouse but to the Smith Island Light. Is there some way of getting this template to ignore the stuff on Wikidata when it's inapplicable? Or is the only solution to just delete the second template? ] (]) 09:40, 19 August 2017 (UTC) | |||
:{{re|Deor}} I've tried solving this by adding {{para|fetchwikidata}} (no value) and removing the Wikidata link in the template if the aforementioned parameter is empty. The template documentation should mention this. ] (]) 10:12, 19 August 2017 (UTC) | |||
::Thanks for your help, ]. ] (]) 14:09, 19 August 2017 (UTC) | |||
Adding {{para|qs|yes}} adds a link to ] which can quickly import some of the data from the infobox. For a proof of concept, try clicking the colored arrow ] on the infobox below. | |||
== Infobox not rendering properly, hiding entered data. == | |||
It is not infallible! It needs to be used with care, and the results should be reviewed afterwards. Some known limitations: | |||
Would someone please have a look at this article for me to see why the Infobox Lighthouse is not rendering properly, and so is hiding some of the entered data. The image won't display either. I think most of this was rendering properly earlier today, at least the image was: ] | |||
*Units are fixed to metres (height and focal height) and nautical miles (range). If any different units are used in the infobox, errors will be introduced. | |||
*Any preceding characters in front of values will stop it working. For example {{para|yearlit|~1880}} would not work. | |||
*A character inside a number (e.g. {{para|intensity|15,000}}) will be truncated to 15. | |||
*Statements are marked as imported from enwiki, but should be referenced to a reliable source where possible. — Martin <small>(] · ])</small> 19:59, 14 September 2021 (UTC) | |||
== Admiralty number syncronised with Wikidata == | |||
In comparison, this lighthouse article I did a few years ago is displaying the Infobox Lighthouse correctly.: ] I may be doing something wrong but I can't see what it is. Thank you. ] (]) 00:31, 14 June 2018 (UTC) | |||
I am happy to report that the admiralty number in the template is now fully aligned with {{Q|P3562}} on Wikidata. To keep them synchonised I am proposing to remove the local parameter and just use the value on Wikidata. This will be the first step towards a ] that I proposed earlier in the year. — Martin <small>(] · ])</small> 17:32, 22 September 2021 (UTC) | |||
:Okay, that's weird, the infobox for ] displays correctly today.] (]) 09:14, 14 June 2018 (UTC) | |||
:Update: '''NGA number''' and '''CCG number''' are now fully aligned with their Wikidata values, so the local parameters for these have been turned off. Still to do: '''ARLHS number''' and '''USCG number''' — Martin <small>(] · ])</small> 07:51, 30 September 2021 (UTC) | |||
:Update: '''ARLHS number''' is now aligned with Wikidata and the local parameter has been switched off — Martin <small>(] · ])</small> 13:04, 30 October 2021 (UTC) | |||
== |
== Sections for tower and light == | ||
{{Infobox lighthouse/sandbox| qid = Q639663}} | |||
{{tl|Infobox building}} and {{tl|Infobox shopping mall}} have both recently been updated to automatically show dynamic mapframe maps by default. I am proposing to similarly show such maps by default for this template, with the same optional parameters to adjust the size, frame center point, initial zoom level, and marker icon; and to similarly allow the mapframe map to be turned off using {{para|mapframe|no}}. See ] and ] for further information. {{small|1=(FYI: I'm making similar proposal for other ])}} - <u>''']''37'''''</u> <span style="font-size:95%;">[]]</span> 15:36, 31 August 2018 (UTC) | |||
We are grouping properties of the tower at the top of the infobox and properties of the light at the bottom of the infobox. What do people think about adding some headings to make the distinction clearer? An example is shown right. — Martin <small>(] · ])</small> 13:42, 3 November 2021 (UTC) | |||
:'''Support''', I agree about this update.](]) 11:42, 1 September 2018 (UTC) | |||
: |
:This now been implemented — Martin <small>(] · ])</small> 17:04, 15 November 2021 (UTC) | ||
{{clear}} | |||
== Bug in code == | |||
== Remove deprecated parameter; adjust labeltext == | |||
{{Infobox lighthouse|qid=Q109370544}} | |||
I have discovered that if two images are held on Wikidata and only the second one has a caption, then the template will give the first image but give it the caption of the second image! I will look into fixing this somehow ... — Martin <small>(] · ])</small> 19:16, 3 November 2021 (UTC) | |||
== Image parameter == | |||
1. Parameter {{para|elevation}} is deprecated . Per October 1st, 173 articles used it . I have replaced all instances {{para|elevation}} with the appropriate {{para|focusheight}}, with an extra visual check on whether the "elevation" actually meant focal height (check with tower height). Parameter {{para|elevation}} is no more needed. '''I propose removing it''' from the template (into "non existing parameter", i.e. reported unkown when used). When present, I removed ''parameter'' input text "Focal plane: ..." from these, as this is clear from lefthand labeltext so don't repeat in righthand side. | |||
I think ''image'' would be a simpler parameter name than ''image_name''. The latter is unintuitive and always forces me back to the template documentation when I find that ''image'' doesn't work! I suggest the template should accept the ''image'' parameter as an alternative. — Martin <small>(] · ])</small> 13:38, 7 March 2022 (UTC) | |||
2. Parameter {{para|height}} is intended for construction height (tower height). To avoid confusion, I propose to make change the label (lefthand text) fror thid parameter: from "Height" into "'''Tower height'''". Did remove "Tower: .." text from input parameter (should not be in righthand side). | |||
== Deprecated parameters == | |||
Both changes are in {{tl|Infobox lighthouse/sandbox}} , as proposal. Comments? - ] (]) 18:29, 11 October 2018 (UTC) | |||
I have posted a request at ] to remove several parmeters which are no longer used by this template. They are listed below. | |||
== Template-protected edit request on 29 October 2018 == | |||
{{flatlist| | |||
* Admiralty | |||
* ARLHS | |||
* Canada | |||
* coordinates_footnotes | |||
* NGA | |||
* pushpin | |||
* pushpin_label_position | |||
* pushpin_map | |||
* pushpin_map_alt | |||
* pushpin_map_caption | |||
* pushpin_mapsize | |||
* pushpin_outside | |||
* pushpin_relief | |||
* relief | |||
* USCG}} — Martin <small>(] · ])</small> 13:39, 7 March 2022 (UTC) | |||
:This has now been completed — Martin <small>(] · ])</small> 08:53, 8 March 2022 (UTC) | |||
== History section == | |||
{{edit template-protected|Template:Infobox lighthouse|answered=no}} | |||
Please replace all code with the code from {{tl|Infobox lighthouse/sandbox}}. Changes: 1. Parameter {{para|elevation}} removed (was deprecated for 10 years, not used in articles). 2. Write lefthand label "Tower height" to disambiguatie from "elevation height". Proposed ] 2 weeks ago, with no comments. ] (]) 13:36, 29 October 2018 (UTC) | |||
I'm thinking it would be good to have a section in the infobox for the history of the lighthouse, including all significant dates. We can bring the "constructed", "first lit", "automated" into this section along with other important dates like "commissioned", "electrified", "destroyed", etc. Of course they would need to be in chronological order to make sense. I will make a mock-up to see what it would look like. — Martin <small>(] · ])</small> 20:42, 2 April 2022 (UTC) | |||
:<s>] '''Partly done:'''</s><!-- Template:ETp --> I've removed elevation from the list of known parameters as a first step. I'd rather wait 'til the report you referenced above refreshes in a couple of days before going the whole way. Which isn't to say there aren't folks who may feel bolder than I do, and who feel like doing the whole request right now. ] (]) 17:45, 29 October 2018 (UTC) | |||
:..or wait a few hours for any changes to show up in ] of course. ] (]) 17:47, 29 October 2018 (UTC) | |||
::(ec) No, that was not what is requested, and incorrect at that. Had you done the full edit as requested, any offending articles would show up in the maintenance category for correction -- no problem. And you omitted the second part completely, even not mentioning here. -] (]) 17:52, 29 October 2018 (UTC) | |||
:::"that was not what is requested"? Reverted myself. ] (]) 18:29, 29 October 2018 (UTC) | |||
::re: wait a few hours: yes, that is the process anyway. -] (]) 17:52, 29 October 2018 (UTC) | |||
:::{{U|Cabayi}} Anything wrong with the request? What are you trying to say? Is asked for an update, and you cannot think about rewarding that request as is? -] (]) 20:19, 29 October 2018 (UTC) | |||
::::{{u|DePiep}} I'm not inclined to remove a parameter without first checking that it's not in use. You objected and said that it wasn't what you'd requested, so I reinstated the previous version. ] (]) 20:49, 29 October 2018 (UTC) |
Latest revision as of 22:01, 1 July 2024
This template does not require a rating on Misplaced Pages's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
|
To-do list for Template:Infobox lighthouse: edit · history · watch · refresh · Updated 2022-04-03
|
Archives | |
|
|
This page has archives. Sections older than 180 days may be automatically archived by Lowercase sigmabot III when more than 10 sections are present. |
Use of wikidata
I am reviewing the use of Wikidata in this template, and considering whether any other fields can be fetched. — Martin (MSGJ · talk) 21:16, 1 March 2021 (UTC)
Additional identifiers
Is there interest in adding any of the following identifiers to the infobox? — Martin (MSGJ · talk) 21:59, 1 March 2021 (UTC)
- MarineTraffic Lighthouse ID (P3601)
- Online List of Lights ID (P3223)
- Country specific:
My personal opinion is that these kinds of identifiers should generally be kept to a minimum in the infobox, because they are not human-readable. However I think country specific identifiers could be useful for lighthouses from those specific countries, and if the identifier links to a reliable source of information for that lighthouse (e.g. NGA) then that is quite useful for verifying details. — Martin (MSGJ · talk) 11:07, 2 March 2021 (UTC)
Year first constructed
If a lighthouse takes several years to construct (not unusual) should this field record the start of construction or the end of construction? — Martin (MSGJ · talk) 16:35, 2 March 2021 (UTC)
- I don't know if anyone else is watching and would like to comment? My opinion is that "Constucted" should logically give the date of start of construction. If it was the end of construction, then it would in most cases coincide with the "First lit" field. — Martin (MSGJ · talk) 14:26, 4 March 2021 (UTC)
Light source
What kind of values does this field take? I would be interested to see some examples of it in use. I suspect it is not equivalent to source of energy (P618) (which would be solar power/battery for most lighthouses nowadays) — Martin (MSGJ · talk) 16:48, 3 March 2021 (UTC)
- @Stuffed cat: would you be able to explain your reasoning for adding this field to the infobox, and give some examples of its use? And if possible, could the documentation be for this parameter be made clearer? Thanks — Martin (MSGJ · talk) 08:48, 11 March 2021 (UTC)
- I think the best list of options comes from the series of light sources I put on the South Gare Lighthouse page: Paraffin wick lamp, Pressurised paraffin burner, Tungsten filament lamp, CDM T lamp, High intensity LED lamp.
- The trouble is that most of these are obsolete and I suspect only a limited range of sources are used today. As for the reasoning it's a matter of documenting and characterising the lighthouse. As you suggest the 'Power source' might also be a good one to have and this might take values like: Mains electricity, Hydrogen fuel cell, Photovoltaic cells. I'm not confused about what |lightsource is but I think the examples should clear up any confusion there may be. Anyway I've modified the Usage part and I hope all concerned are happy with it. I note that there's a lot of red warnings on the preview page - I don't think that has anything to do with me. Stuffed Cat (talk) 02:30, 13 March 2021 (UTC)
- Thanks for the clarification Stuffed cat. That is a really nice comprehensive article there, and well sourced! I think a list of possible values would be useful. It won't be exhaustive, but should guide editors. — Martin (MSGJ · talk) 10:09, 13 March 2021 (UTC)
In my experience most uses of this field are using it incorrectly. The most common value is "solar power" or occasionally "mains power", which is of course not the "light source" but the "power source". I am proposing to add a new field to the infobox called Power source and get its data from source of energy (P618). I will look into whether the erroneous values in |lightsource=
can be transferred over in due course. — Martin (MSGJ · talk) 09:14, 1 April 2021 (UTC)
- I have created Category:Solar powered lighthouses using wrong field to find articles where editors have wrongly used "solar powered" in the "light source" field. I plan to move these over to the "power source" field instead. — Martin (MSGJ · talk) 12:49, 21 May 2021 (UTC)
- This is now Done — Martin (MSGJ · talk) 11:50, 16 June 2021 (UTC)
Qualifiers
The infobox will now recognise some qualifiers from Wikidata. For example:
made from material |
| ||||||||||||||||||||||
+ add value |
color |
| ||||||||||||||||||||||||||||||||||||||||||||
+ add value |
Construction | wood (tower) |
---|---|
Markings | white (tower), black (lantern) |
yields the example on the right. I will endeavour to document these features shortly — Martin (MSGJ · talk) 19:02, 16 March 2021 (UTC)
Lens
|
|
I suggest merging Original lens and Current lens into simply Lens. If both fields are used then qualifiers (original) and (current) could be added automatically. If just one is used, then no qualifier is needed.
The reason is that if the current is the same as the original, then the infobox looks a little silly. — Martin (MSGJ · talk) 15:53, 16 March 2021 (UTC)
|
|
I have created a tracking category Category:Lighthouses using current lens parameter and intend to merge the two parameters shortly — Martin (MSGJ · talk) 12:46, 21 May 2021 (UTC)
- I have emptied Category:Lighthouses using current lens parameter only by renaming the "currentlens" parameter to "lens". I am planning to start on the remaining articles in Category:Lighthouses using current lens parameter by appending (original) and (current) to the values and merging, i.e. for example, from
| lens = Fourth order ] | currentlens = 375 mm lens
to
| lens = Fourth order ] (original), 375 mm lens (current)
— Martin (MSGJ · talk) 22:36, 10 June 2021 (UTC)
- Done All instances have been converted, and the currentlens parameter will be removed shortly — Martin (MSGJ · talk) 20:16, 16 June 2021 (UTC)
CHS number
I don't think CHS number (linked to Canadian Hydrographic Service) is an accurate name for this. The list of lights appears to be maintained by the Canadian Coast Guard. Editors have got around the issue by prefixing the number with CCG. I suggest renaming this label to CCG number and then these prefixes would be redundant. — Martin (MSGJ · talk) 12:03, 7 May 2021 (UTC)
- Done — Martin (MSGJ · talk) 09:48, 13 May 2021 (UTC)
The prefix CCG on these numbers is now unnecessary. I have created a tracking category Category:Lighthouses with CCG prefix to find these for removal. — Martin (MSGJ · talk) 12:48, 21 May 2021 (UTC)
- These have now been cleared — Martin (MSGJ · talk) 22:44, 10 June 2021 (UTC)
Owner parameter?
Hi, is there any interest in adding an "owner" parameter in the infobox? In most cases a lighthouse is owned by the national government of the site but an exception is possible. Regards, ... PeterEasthope (talk) 13:15, 23 July 2021 (UTC)
- There is
|managing_agent=
, which displays with the heading Operator:. Since there are probably very few cases where the owner is different that the operator, exceptions can be handled by saying something like "(owned by national government)" after showing the operator. MB 14:19, 23 July 2021 (UTC) - I think adding "owner" would be an excellent idea, but perhaps with advice not to include unless it is different from operator? — Martin (MSGJ · talk) 17:56, 14 September 2021 (UTC)
Importing to Wikidata
For those editors interested in using Wikidata to store the data for the infoboxes, I have been working on a tool to help import directly from the infobox template.
Adding |qs=yes
adds a link to QuickStatements which can quickly import some of the data from the infobox. For a proof of concept, try clicking the colored arrow on the infobox below.
It is not infallible! It needs to be used with care, and the results should be reviewed afterwards. Some known limitations:
- Units are fixed to metres (height and focal height) and nautical miles (range). If any different units are used in the infobox, errors will be introduced.
- Any preceding characters in front of values will stop it working. For example
|yearlit=~1880
would not work. - A character inside a number (e.g.
|intensity=15,000
) will be truncated to 15. - Statements are marked as imported from enwiki, but should be referenced to a reliable source where possible. — Martin (MSGJ · talk) 19:59, 14 September 2021 (UTC)
Admiralty number syncronised with Wikidata
I am happy to report that the admiralty number in the template is now fully aligned with Admiralty number (P3562) on Wikidata. To keep them synchonised I am proposing to remove the local parameter and just use the value on Wikidata. This will be the first step towards a master plan that I proposed earlier in the year. — Martin (MSGJ · talk) 17:32, 22 September 2021 (UTC)
- Update: NGA number and CCG number are now fully aligned with their Wikidata values, so the local parameters for these have been turned off. Still to do: ARLHS number and USCG number — Martin (MSGJ · talk) 07:51, 30 September 2021 (UTC)
- Update: ARLHS number is now aligned with Wikidata and the local parameter has been switched off — Martin (MSGJ · talk) 13:04, 30 October 2021 (UTC)
Sections for tower and light
Location | Ardnamurchan Point, Ardnamurchan, Highland, United Kingdom |
---|---|
OS grid | NM4158767473 |
Coordinates | 56°43′38″N 6°13′34″W / 56.7271°N 6.22602°W / 56.7271; -6.22602 |
Tower | |
Constructed | 1849 |
Built by | Alan Stevenson |
Construction | granite (tower) |
Automated | 1988 |
Height | 35 m (115 ft) |
Operator | Northern Lighthouse Board |
Heritage | category A listed building |
Light | |
Focal height | 55 m (180 ft) |
Range | 24 nmi (44 km; 28 mi) |
Characteristic | Fl(2) W 20s |
We are grouping properties of the tower at the top of the infobox and properties of the light at the bottom of the infobox. What do people think about adding some headings to make the distinction clearer? An example is shown right. — Martin (MSGJ · talk) 13:42, 3 November 2021 (UTC)
- This now been implemented — Martin (MSGJ · talk) 17:04, 15 November 2021 (UTC)
Bug in code
modern replica lighthouse, lit in 2004 | |
Location | Burlington, US |
---|---|
Coordinates | 44°28′12″N 73°13′32″W / 44.470028°N 73.225667°W / 44.470028; -73.225667 |
Tower | |
Constructed | 1857 |
Construction | lumber |
Shape | square pyramid |
Markings | white |
Light | |
First lit | 2003 |
Focal height | 12 ft (3.7 m) |
Range | 7 nmi (13 km; 8.1 mi) |
Characteristic | Fl W 4s |
I have discovered that if two images are held on Wikidata and only the second one has a caption, then the template will give the first image but give it the caption of the second image! I will look into fixing this somehow ... — Martin (MSGJ · talk) 19:16, 3 November 2021 (UTC)
Image parameter
I think image would be a simpler parameter name than image_name. The latter is unintuitive and always forces me back to the template documentation when I find that image doesn't work! I suggest the template should accept the image parameter as an alternative. — Martin (MSGJ · talk) 13:38, 7 March 2022 (UTC)
Deprecated parameters
I have posted a request at WP:BOTREQ to remove several parmeters which are no longer used by this template. They are listed below.
- Admiralty
- ARLHS
- Canada
- coordinates_footnotes
- NGA
- pushpin
- pushpin_label_position
- pushpin_map
- pushpin_map_alt
- pushpin_map_caption
- pushpin_mapsize
- pushpin_outside
- pushpin_relief
- relief
- USCG
— Martin (MSGJ · talk) 13:39, 7 March 2022 (UTC)
- This has now been completed — Martin (MSGJ · talk) 08:53, 8 March 2022 (UTC)
History section
I'm thinking it would be good to have a section in the infobox for the history of the lighthouse, including all significant dates. We can bring the "constructed", "first lit", "automated" into this section along with other important dates like "commissioned", "electrified", "destroyed", etc. Of course they would need to be in chronological order to make sense. I will make a mock-up to see what it would look like. — Martin (MSGJ · talk) 20:42, 2 April 2022 (UTC)
Categories: