Template talk:NDB

Latest comment: 24 days ago by Trappist the monk in topic Template for the new digital collection at NBD
WikiProject iconGermany Template‑class
WikiProject iconThis template is within the scope of WikiProject Germany, a collaborative effort to improve the coverage of Germany on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

error: External link in |chapter= edit

This template is producing an "External link in |chapter=" error, which shows up on any page using the template. I can't seem to diagnose the issue. Any ideas? Paul2520 (talk) 11:14, 11 October 2015 (UTC)Reply

Strange I couldn't find any error. In May 2015, when I did two minor updates, it still worked. Unfortunately the template is different from the German de:Vorlage:NDB and uses {{Citation}}. @PDD: Can you help? --Kolja21 (talk) 00:10, 12 October 2015 (UTC)Reply
@Kolja21: Just saw this now; the problem has apparently been fixed already. Cheers, PDD 06:28, 15 October 2015 (UTC)Reply

Link to wrong page image edit

The article on Reinmar von Brennenberg has a problematic NDB reference. The "full text online" link works correctly but the link to the page image takes you to a page two pages after the start of the relevant article (to quite another Reinmar). As far as I can see the actual reference in the WP article is correct. Any ideas? --Pfold (talk) 11:44, 8 February 2016 (UTC)Reply

I have fixed the underlying template, {{NDB/Seite}}, to adjust the page count for volume 21, which fixed the link in Reinmar von Brennenberg. It is possible that this change will break other references to volume 21. If you know a way to check those, please do so. – Jonesey95 (talk) 15:03, 8 February 2016 (UTC)Reply
OK, thanks. I will have a look at some of the other entries and report back. --Pfold (talk) 15:19, 8 February 2016 (UTC)Reply
I've checked a few other articles up to 200 pages away and in all cases the online text matches the image. Thanks for the fix. --Pfold (talk) 17:25, 8 February 2016 (UTC)Reply

Off-by-two page error edit

I'm writing up de:Momme Andresen for English Wiki. {{NDB}} is giving me a page number error - he's on pp. 286-287 in NDB vol. 1, but I have to enter pp. 284-285 to get his NDB article - Carl Graf von Klinckowström [de] (1953), "Andresen, Momme", Neue Deutsche Biographie (in German), vol. 1, Berlin: Duncker & Humblot, pp. 284–285 {{citation}}: Check |author= value (help)CS1 maint: multiple names: authors list (link) CS1 maint: numeric names: authors list (link); (full text online). Can anyone help? (This looks very like #Link to wrong page image, immediately above my post.) Narky Blert (talk) 09:46, 14 August 2017 (UTC)Reply

I have boldly edited {{NDB/Seite}} to match the German version of that page, on the assumption that the German WP does a better job of keeping this template up to date. This bold change means that I may have broken page links for any number of volumes. Someone may want to check a random sample of pages from "What links here" in the left bar of this template's page to check my work. – Jonesey95 (talk) 00:41, 16 August 2017 (UTC)Reply
@Jonesey95: TY for that - the link I want to use now works with the correct page numbers :-) I haven't checked any of the other incoming links. Narky Blert (talk) 22:38, 16 August 2017 (UTC)Reply

Check date values in: |date= edit

Use of this template results in a Check date values in: |date= error, because the default date in Template:NDB/Jahr (used in this template) is "not yet published", and this is not a valid date according to CS1: Dates. For example, see Note 7 on Leopold I, Holy Roman Emperor#Notes.

I'm not sure what the recommended workaround would be. Leaving a blank date is probably not ideal, and saying 2019 (when Neue Deutsche Biographie says it is scheduled to be completed) also results in a date error. = paul2520 (talk) 13:52, 16 August 2017 (UTC)Reply

The volume number in that citation was invalid. I have fixed that citation, added a better error message to indicate the problem, and added an error-tracking category, Category:NDB template error, to this NDB family of templates. – Jonesey95 (talk) 15:05, 16 August 2017 (UTC)Reply
Excellent. Thanks, Jonesey95. = paul2520 (talk) 17:33, 16 August 2017 (UTC)Reply

Wrong page image edit

I was editing Günther Klaffenbach and the NDB image is off by about eight pages. I would fix it but I'm not very good at tinkering with the template. Thought I'd flag it up! Atchom (talk) 23:22, 4 September 2021 (UTC)Reply

"ref duplicates default" edit

This template is producing citations that generate CS1 maint: ref duplicates default maintenance messages. I think that is because the line

  • |ref={{harvid|{{#if:{{{5|}}}|{{{5}}}|NDB|}}|{{{date|{{{year|{{NDB/Jahr|{{{1}}}}}}}}}}}}}

generates – by design – a |ref= param that matches exactly the default when neither author nor year are passed explicitly. I attempted to fix the problem (in an unsaved sandbox edit) but my grasp of template syntax proved insufficient. Pinging @User-duck:, whose edsum on March 12 alerted me to the problem. Best, Wham2001 (talk) 19:28, 23 February 2022 (UTC)Reply

"CS1 maint: ref duplicates default" warning edit

Can anything be done to eliminate the "CS1 maint: ref duplicates default" warning message generated by this template? User-duck (talk) 09:48, 27 February 2022 (UTC)Reply

@User-duck, @Wham2001: is the workaround I just described in the documentation something you are interested in? —Kusma (talk) 15:21, 24 November 2022 (UTC)Reply
OK, that doesn't work to eliminate that bit :( The maintenance message seems wrong, I will investigate. —Kusma (talk) 16:01, 24 November 2022 (UTC)Reply
What are you seeing? According to this search, at the time of this writing, only this version of Botho von Hülsen has the ref duplicates default message for this citation:
{{NDB|9|736|737|Hülsen, Botho von|[[Hans Knudsen]]|117048836|ref={{SfnRef|Hans Knudsen|1972}}}}
Hans Knudsen (1972), "Hülsen, Botho von", Neue Deutsche Biographie (in German), vol. 9, Berlin: Duncker & Humblot, pp. 736–737{{citation}}: CS1 maint: ref duplicates default (link); (full text online)
That happens because the rendering of the {{sfnref}} template is the same as what {{NDB}}'s underlying {{citation}} template would produce on its own. Compare:
{{SfnRef|Hans Knudsen|1972}} → CITEREFHans_Knudsen1972
and {{NDB}} without {{sfnref}} (look for the id attribute in the <cite> tag):
{{NDB|9|736|737|Hülsen, Botho von|[[Hans Knudsen]]|117048836}}
Hans Knudsen (1972), "Hülsen, Botho von", Neue Deutsche Biographie (in German), vol. 9, Berlin: Duncker & Humblot, pp. 736–737; (full text online)
'"`UNIQ--templatestyles-00000010-QINU`"'<cite id="CITEREFHans_Knudsen1972" class="citation cs2 cs1-prop-foreign-lang-source">[[Hans Knudsen]] (1972), [https://daten.digitale-sammlungen.de/0001/bsb00016326/images/index.html?seite=750 "Hülsen, Botho von"], ''[[Neue Deutsche Biographie]]'' (in German), vol.&nbsp;9, Berlin: Duncker & Humblot, pp.&nbsp;736–737</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=bookitem&rft.atitle=H%C3%BClsen%2C+Botho+von&rft.btitle=Neue+Deutsche+Biographie&rft.place=Berlin&rft.pages=736-737&rft.pub=Duncker+%26+Humblot&rft.date=1972&rft.au=Hans+Knudsen&rft_id=https%3A%2F%2Fdaten.digitale-sammlungen.de%2F0001%2Fbsb00016326%2Fimages%2Findex.html%3Fseite%3D750&rfr_id=info%3Asid%2Fen.wikipedia.org%3ATemplate+talk%3ANDB" class="Z3988"></span>&#59;&nbsp;([https://www.deutsche-biographie.de/ppn117048836.html full text online])
Because the CITEREF ID produced by {{sfnref}} is exactly the same as the CITEREF ID produced by {{citation}}, the maintenance message is correct.
Trappist the monk (talk) 16:22, 24 November 2022 (UTC)Reply
@Trappist the monk: There it is correct, yes. I am drafting an article in my sandbox where I have several authors and try to use last1=|first1=|last2=|first2= to display them without an error message, but I can't get both {{sfn}} to work with a reasonable author format and get rid of the maintenance message at the same time. —Kusma (talk) 16:36, 24 November 2022 (UTC)Reply
It looks to me as if TTM's edit on February 27 fixed the problem – I can't see the warning message on March 12 any longer, for example. Best, Wham2001 (talk) 16:31, 24 November 2022 (UTC)Reply
Here is a {{harvnb}} in place of {{sfn}}:
{{harvnb|Deplazes-Haefliger|Brunold|2001}}Deplazes-Haefliger & Brunold 2001
and the sanbox version of {{NDB}} (there is no {{cite NDB/sandbox}}):
{{NDB/sandbox|20|502|504|Planta||last1=Deplazes-Haefliger|first1=Anna-Maria|last2=Brunold|first2=Ursus|121979652|mode=cs1}}
Deplazes-Haefliger, Anna-Maria; Brunold, Ursus (2001). "Planta". Neue Deutsche Biographie (in German). Vol. 20. Berlin: Duncker & Humblot. pp. 502–504; (full text online)
This is what you want, right?
Trappist the monk (talk) 16:52, 24 November 2022 (UTC)Reply
@Trappist the monk: Yes, that is what I want, looks good! I hope it will make it easier to use {{NDB}} (and possibly its sister template {{Cite ADB}}) together with other citations and keep a consistent style (while benefitting from the automated links in the NDB/ADB templates). —Kusma (talk) 17:21, 24 November 2022 (UTC)Reply
done.
Trappist the monk (talk) 17:52, 24 November 2022 (UTC)Reply

Assistance needed edit

As I have no knowledge regarding the editing of templates, maybe more experienced users like Trappist the monk or Kusma (or anyone else!) could kindly assist me. I would like to raise two issues:

  • While editing Georg Dietloff von Arnim-Boitzenburg I added the "cite ndb" template and experienced that the template is off be two pages. This seems to have happened before so maybe someone could fix it again. Example: In the first citation of the linked article I used page 371 but page 369 is linked instead.
  • My second issue is a bigger point: As I value consistency quite highly it bothers me a bit that the formatting of cite NDB is off with regards to the usual wiki-citation styling:
    • Currently it is like this: "Gollwitzer, Heinz (1953), "Arnim, Georg Dietloff von", Neue Deutsche Biographie (in German), vol. 1, Berlin: Duncker & Humblot, pp. 371–372; (full text online)"
    • For consistency's sake it should be: "Gollwitzer, Heinz (1953). "Arnim, Georg Dietloff von". In Neue Deutsche Biographie (in German). Vol. 1. Berlin: Duncker & Humblot. pp. 371–372 (full text online)."
  • Maybe someone more knowledgeable then me could reprogram it like this (if at all possible and consensus to change it could be achieved)? Thanks in advance! WatkynBassett (talk) 08:45, 27 January 2024 (UTC)Reply

@WatkynBassett, the page offset issue should be fixed by my recent edit to {{NDB/Seite}}. The citation style can be nearly fixed by using |mode=cs1. I typically use {{sfn}} and then write NDB citations such as

{{cite NDB|9|685|686|Huber, Michael|Segebrecht, Wulf|117031933|mode=cs1|ref={{sfnref|Segebrecht|1972}}}}

to obtain

I don't know whether there is a way to get rid of the .; though. —Kusma (talk) 10:27, 27 January 2024 (UTC)Reply

Thank you so much for the quick page fix. Much appreciated! The fix for cs1-style is neat too, but - as you have already mentioned - the ending ".; (full text online)" is not optimal. Maybe someone finds a way to fix this in the future. Hope you have a nice weekend! WatkynBassett (talk) 10:44, 27 January 2024 (UTC)Reply
To properly fix the .; issue requires a change in Module:Citation/CS1 (see Help talk:Citation Style 1 § {{citation}} with |mode=cs1 and |postscript=none). I have made the fix in {{NDB/sandbox}} which uses Module:Citation/CS1/sandbox. Here is the example template from above (not using the {{cite NDB}} redirect because there is no {{cite NDB/sandbox}}):
{{NDB/sandbox|9|685|686|Huber, Michael|Segebrecht, Wulf|117031933|mode=cs1|ref={{sfnref|Segebrecht|1972}}}}
Segebrecht, Wulf (1972). "Huber, Michael". Neue Deutsche Biographie (in German). Vol. 9. Berlin: Duncker & Humblot. pp. 685–686; (full text online)
Trappist the monk (talk) 16:53, 27 January 2024 (UTC)Reply

Template for the new digital collection at NBD edit

Hi Folks!! There is a new NDB digital collection that doesn't have the traditional volume, page number, number naming and doesn't work with the NDB template. This is an example:[1] Is there template for these types of articles or is it just a case of using cite web? Thanks. scope_creepTalk 13:31, 6 April 2024 (UTC)Reply

Currently only two articles link to https://www.deutsche-biographie.de/dbo...: Cothenius Medal and Paul Giesler. One is an ext link and the other uses {{cite web}}. You could write a wrapper template around {{cite web}} so that continuing use of this source is standardized across the encyclopedia; or not.
Trappist the monk (talk) 13:45, 6 April 2024 (UTC)Reply