Jump to content

Template talk:Cite ODNB

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Cite ODNB/doc)

Author

[edit]

Recent ODNB entries nomally have a named author. It would be good to add first and lastname parameters so that we can give proper attribution where it's due. MichaelMaggs (talk) 09:34, 8 December 2021 (UTC)[reply]

From the template's documentation:
This template supports all parameters that are supported by {{cite encyclopedia}}.
Can you show an example where |authorn=, |lastn=, |firstn=, etc do not work with {{cite ODNB}}?
Trappist the monk (talk) 12:22, 8 December 2021 (UTC)[reply]
Ah, sorry, my mistake. I missed that. I read the documentation too quickly and just scanned the parameters that were specifically mentioned. MichaelMaggs (talk) 18:42, 8 December 2021 (UTC)[reply]
[edit]

The documentation states "Several parameters have pre-set defaults (but may be overridden)", but does not give any information on how to override, for example, the automatic link to Oxford Dictionary of National Biography. Could some let me now a. how to do this; and b. add this to the documentation so others can also do it. Many thanks - SchroCat (talk) 09:07, 3 April 2023 (UTC)[reply]

The documentation was wrong about overriding. I have fixed it. – Jonesey95 (talk) 11:16, 3 April 2023 (UTC)[reply]
OK, so can these be set so they can be overridden? At the moment I have a list of sources where no similar titles are linked, but there are four repeated links to the the ONDB. We need to be able to manage the output to some level if this template is to be used, or I will just go back to put everything in a different template so that the output can be managed appropriately. - SchroCat (talk) 11:37, 3 April 2023 (UTC)[reply]
The documentation was wrong about overriding. Evidence to support that claim? Every parameter preset by this template should be overridable. If there are any that cannot be overridden, that should be fixed, not the documentation.
Trappist the monk (talk) 12:40, 3 April 2023 (UTC)[reply]
The evidence is in the template code, as far as I can tell:
  |encyclopedia=[[Dictionary of National Biography#Oxford Dictionary of National Biography|Oxford Dictionary of National Biography]]
  |edition=online
  |publisher=Oxford University Press
"Bar". Foo (Baz ed.). Oxford University Press. (Subscription or UK public library membership required.)
If I am wrong, as I often am, corrections are welcome. I added an example above, and overriding appears to work fine. Magic. – Jonesey95 (talk) 11:35, 4 April 2023 (UTC)[reply]
Excellent - that works well and I won't get pulled up on it during a source review. Thanks very much! - SchroCat (talk) 12:15, 4 April 2023 (UTC)[reply]

Template-protected edit request on 19 March 2024

[edit]

The template is invoked on Template:Cite ODNB itself with a harmless but unsightly warning about a missing title parameter. With <includeonly> inserted at the code start and </includeonly> before the <noinclude>, the warning should go away (similar to the code for Template:Cite OED). The full text of the template should read:

<includeonly>{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
  |_exclude=freearticle, id, _debug
  |_alias-map=accessdate:access-date,authorlink:author-link,origyear:orig-date

  |encyclopedia=[[Dictionary of National Biography#Oxford Dictionary of National Biography|Oxford Dictionary of National Biography]]
  |edition=online
  |publisher=Oxford University Press
  |doi={{#if:{{{id|}}}|10.1093/ref:odnb/{{{id|}}}}}
  |doi-access={{#if:{{{doi|}}}{{{id|}}}|{{#if:{{{freearticle|}}}|free}}}}
  |url-access={{#if:{{{url|}}}|{{#if:{{{freearticle|}}}||subscription}}}}
}}{{#if:{{{freearticle|}}}| |&#x20;{{ODNBsub|sentence=yes}}}}<!--
-->{{main other|[[Category:Wikipedia articles incorporating a citation from the ODNB]]}}<!--
-->{{#if:{{both|{{{id|}}}|{{{doi|}}}}}|[[Category:Pages using cite ODNB with both doi and id parameters]]|<!-- id with doi
-->      {{#if:{{{id|}}}|[[Category:Pages using cite ODNB with id parameter]]}}}}<!-- id without doi
 --></includeonly><noinclude>
{{Documentation}}
</noinclude>

73.37.211.177 (talk) 06:01, 19 March 2024 (UTC)[reply]

I think I'd prefer the warning stay rather than lose all the output of the template on the page. If you can suppress the warning on the template without hiding everything else, that would be okay — Martin (MSGJ · talk) 09:09, 19 March 2024 (UTC)[reply]
 Done — with {{Cite ODNB|title={{{title}}}}} added to the noinclude section to still show an indication of the output per MSGJ. SilverLocust 💬 13:38, 19 March 2024 (UTC)[reply]
Nice — Martin (MSGJ · talk) 13:42, 19 March 2024 (UTC)[reply]

Date parameter

[edit]

In the process of building out Free and Candid Disquisitions, I found that date= does not work. It is present in Template:Cite encyclopedia, so I figured that it was at least at some point functional on this template. There appears to have been discussion on the ODNB template back in 2011 on this parameter, but I don't quite understand the content of that technical discussion. Is there a way to insert a date of publication for a particular entry from the ODNB? ~ Pbritti (talk) 17:41, 12 May 2024 (UTC)[reply]

What do you mean by does not work? Here is an example from the template's doc page to which I have added |date=2024 (a bogus date):
{{Cite ODNB|doi=10.1093/ref:odnb/29986|title=Worsley, Sir Richard |date=2024}}
"Worsley, Sir Richard". Oxford Dictionary of National Biography (online ed.). Oxford University Press. 2024. doi:10.1093/ref:odnb/29986. (Subscription or UK public library membership required.)
Clearly, the 2024 date is rendered in the citation which suggests that |date= does work.
Trappist the monk (talk) 18:28, 12 May 2024 (UTC)[reply]
Using the Feather Taverns petition reference on Free and Candid Disquisitions, adding date=2005 renders "(2005)" but, as visible in the preview window, also introduces some sort of issue resulting in the following notice displayed at the top of the page:
  • Script warning: One or more {{cite encyclopedia}} templates have maintenance messages; messages may be hidden (help).
What might be the cause of this issue? ~ Pbritti (talk) 18:52, 12 May 2024 (UTC)[reply]
This one? – 'Feathers tavern' not 'Feather Taverns'. I've added |date=2005:
{{cite ODNB|doi=10.1093/ref:odnb/93823|title=Feathers tavern petitioners|first=Grayson&nbsp;M.|last=Ditchfield|edition=online|date=2005|ref={{harvid|Ditchfield|2005}}}}
Ditchfield, Grayson M. (2005). "Feathers tavern petitioners". Oxford Dictionary of National Biography (online ed.). Oxford University Press. doi:10.1093/ref:odnb/93823.{{cite encyclopedia}}: CS1 maint: ref duplicates default (link) (Subscription or UK public library membership required.)
As written, that template adds the article to Category:CS1 maint: ref duplicates default because the value assigned to |ref= (a CITEREF anchor id) is the same as the CITEREF anchor id that Module:Citation/CS1 created from |last=Ditchfield and |date=2005 so |ref= is redundant and should be removed.
Follow the help link from the preview message you quoted to learn how to make maintenance messaging visible.
Trappist the monk (talk) 19:12, 12 May 2024 (UTC)[reply]
Thank you, my issue is resolved. ~ Pbritti (talk) 21:28, 12 May 2024 (UTC)[reply]

Co-authors

[edit]

How do we fit author2 into this template? Tim riley talk 10:27, 14 September 2024 (UTC)[reply]

Have you tried typing? Smith, Kate; Brown, Sam. "Foo". Oxford Dictionary of National Biography (online ed.). Oxford University Press. (Subscription or UK public library membership required.)Jonesey95 (talk) 10:58, 14 September 2024 (UTC)[reply]
Thank you. I'll try that. Tim riley talk 17:48, 14 September 2024 (UTC)[reply]