Jump to content

Template talk:Canmore

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

accessdate errors

[edit]

@EdwardUK: I just fixed 25 articles that were in Category:CS1 errors: redundant parameter, such as Knockfarrel:

  • Before: {{canmore |num=12782 |desc=Knock Farril |accessdate=October 11, 2020}} generates Historic Environment Scotland. "Knock Farril (12782)". Canmore. Retrieved October 11, 2020.
  • After: {{canmore |num=12782 |desc=Knock Farril |access-date=October 11, 2020}} generates Historic Environment Scotland. "Knock Farril (12782)". Canmore. Retrieved October 11, 2020.

Since {{canmore}} was added to Knockfarrel last year, I'm wondering if this new error is somehow related to your recent edit to this template. GoingBatty (talk) 19:58, 28 October 2021 (UTC)[reply]

yes - just spotted this myself and am working on fixing it EdwardUK (talk) 19:59, 28 October 2021 (UTC)[reply]
I think this was due to "accessdate" being missing from the exclude section at the top of the code, something I missed when testing - hopefully it is corrected now. EdwardUK (talk) 20:06, 28 October 2021 (UTC)[reply]
The problem was the result of changing this template into a wrapper template, which meant it tried to use the one from Cite web in addition to the parameter that was already being used for it here - I have removed the accessdate parameter from the code for it is no longer needed here. EdwardUK (talk) 20:21, 28 October 2021 (UTC)[reply]

Canmore retiral

[edit]

I chanced on this announcement (12 May 2025) which indicates that Canmore is at end-of-life.

It also indicates future impact on several other resources frequently used for referencing, so, depending on how they become structured under the new trove.scot, this may become the occasion for a consolidated template. AllyD (talk) 12:14, 23 May 2025 (UTC)[reply]

It appears that the trove.scot site is using URLs that end with ID numbers; the same as is used for Canmore and {{Historic Environment Scotland}}. It would be possible change the HES template to use the trove website by changing the URL to https://www.trove.scot/designation/.... That template could then be changed to add a switch (equivalent to the class= parameter used in Canmore) which would adjust the URL for archive, image, place etc.
The 5500 uses of the HES we already have would not need to be changed, but this would mean replacing the 1500 uses of the Canmore template, with the updated HES template: for most this could be done by changing {{Canmore| to {{Historic Environment Scotland|class=P|, and for the 37 that link to collection: {{Canmore|class=C| to {{Historic Environment Scotland|class=I|. Looking at the examples from the Canmore documentation:
  • Lewis, Dun Carloway: https://canmore.org.uk/site/4121 becomes https://www.trove.scot/place/4121
  • View of Andrew Carnegie Statue... :https://canmore.org.uk/collection/383697 becomes https://www.trove.scot/image/383697
  • J. S. Lees Grocers (Former): https://canmore.org.uk/event/904119 has no direct equivalent, but the same text is here: https://www.trove.scot/image/1279755 under "related activites",
Suitable replacements would need to be found for "event", but this may not be too difficult as class=E is only used 9 times. EdwardUK (talk) 16:26, 23 May 2025 (UTC)[reply]
I have made some changes to the HES sandbox and testcases and it appears to work, but probably should have some more testing before being updated. Instead of adding a class= parameter to HES I have expanded the cat= parameter to so that it will display the name of the record type (image, place, etc.) and adjust the URL accordingly. As above no change will be needed for the existing HES templates, but the change for Canmore to HES templates will be to replace those without class= with cat=PLA (place), and class=C (collection) with cat=IMG (image). I have also added options for cat=ARC, DEC, and OBJ (archive, decision, and object) so that the template can be used for these too. EdwardUK (talk) 14:26, 25 May 2025 (UTC)[reply]