Misplaced Pages

Template talk:Cite ODNB: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 17:35, 16 October 2011 editCarcharoth (talk | contribs)Administrators73,576 editsm ODNB citation style: typo← Previous edit Latest revision as of 14:04, 15 September 2024 edit undoClueBot III (talk | contribs)Bots1,375,751 editsm Archiving 1 discussion to Template talk:Cite ODNB/Archive 1. (BOT) 
(129 intermediate revisions by 31 users not shown)
Line 1: Line 1:
{{WikiProject banner shell|
The leading bullet here seems non-standard, and a bit awkward for use in footnotes. I'd like to remove it before matters go further. ] (]) 08:36, 8 November 2010 (UTC)
{{WikiProject Dictionary of National Biography}}
:yes, definitely agree. ] (]) 09:39, 8 November 2010 (UTC)
}}
:agree that it should be done, anyway. If it is removed early will the 8K pages using it at present need to be repaired before doing anything else? ] (]) 09:41, 8 November 2010 (UTC)
<!--2160 ÷24 = 90 days -->
{{User:ClueBot III/ArchiveThis
|age=2160
|archiveprefix=Template talk:Cite ODNB/Archive
|archivebox=yes
|box-advert=yes
| numberstart=1
| maxarchsize=75000
| header={{Automatic archive navigator}}
| minkeepthreads=5
| minarchthreads=1
| format= %%i
}}


== Author ==
It's not on 8,000 pages! Currently fewer than 100 occurrences by what links to the template page. So it's manageable by hand right now. ] (]) 13:28, 8 November 2010 (UTC)
:pleased to hear I'd got my wires crossed!] (]) 20:14, 8 November 2010 (UTC) 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. ] (]) 09:34, 8 December 2021 (UTC)
:From the template's documentation:
::This template supports all parameters that are supported by {{tlx|cite encyclopedia}}.
:Can you show an example where {{para|author{{var|n}}}}, {{para|last{{var|n}}}}, {{para|first{{var|n}}}}, etc do not work with {{tlx|cite ODNB}}?
:—] (]) 12:22, 8 December 2021 (UTC)
::Ah, sorry, my mistake. I missed that. I read the documentation too quickly and just scanned the parameters that were specifically mentioned. ] (]) 18:42, 8 December 2021 (UTC)


==Overriding automatic links==
Done, and I've made a pass through all the places where the template is used. ] (]) 08:24, 10 November 2010 (UTC)
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 - ] (]) 09:07, 3 April 2023 (UTC)
:The documentation was wrong about overriding. I have fixed it. – ] (]) 11:16, 3 April 2023 (UTC)
::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. - ] (]) 11:37, 3 April 2023 (UTC)
::
::{{tq|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.
::—] (]) 12:40, 3 April 2023 (UTC)
:::The evidence is in the template code, as far as I can tell:
<pre>
|encyclopedia=]
|edition=online
|publisher=Oxford University Press
</pre>
:::{{Cite ODNB|encyclopedia=Foo|title=Bar|edition=Baz}}
:::<s>If I am wrong, as I often am, corrections are welcome.</s> I added an example above, and overriding appears to work fine. Magic. – ] (]) 11:35, 4 April 2023 (UTC)
::::Excellent - that works well and I won't get pulled up on it during a source review. Thanks very much! - ] (]) 12:15, 4 April 2023 (UTC)


== Template-protected edit request on 19 March 2024 ==
== Links broken? ==


{{edit template-protected|Template:Cite ODNB|answered=yes}}
When I use the template it creates the text perfectly fine, as well as links to the ODNB's WP article and the library subscription page on the external ODNB site. But the main link just points to which brings up a 404 page on the DOI website. No matter what is in the template it still seems to point to this URL. (see ] for a recent example of usage).
The template is invoked on ] itself with a harmless but unsightly warning about a missing title parameter. With {{Tag|includeonly|o}} inserted at the code start and {{Tag|includeonly|c}} before the {{Tag|noinclude|o}}, the warning should go away (similar to the code for ]). The full text of the template should read:
<syntaxhighlight lang="text">
<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=]
Any idea what might be wrong? or have I made an error in usage? The link for the particlar article should point to . ] (]) 13:34, 18 January 2011 (UTC)
|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|]}}<!--
-->{{#if:{{both|{{{id|}}}|{{{doi|}}}}}|]|<!-- id with doi
--> {{#if:{{{id|}}}|]}}}}<!-- id without doi
--></includeonly><noinclude>
{{Documentation}}
</noinclude>
</syntaxhighlight> ] (]) 06:01, 19 March 2024 (UTC)


: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 &mdash;&nbsp;Martin <small>(]&nbsp;·&nbsp;])</small> 09:09, 19 March 2024 (UTC)
:You can't omit the names of the fields; I have fixed that example. ] (]) 13:40, 18 January 2011 (UTC)
::{{done}}<!-- Template:ETp --> — with <syntaxhighlight lang=wikitext inline>{{Cite ODNB|title={{{title}}}}}</syntaxhighlight> added to the <code>noinclude</code> section to still show an indication of the output per MSGJ. ] ] 13:38, 19 March 2024 (UTC)
:::Nice &mdash;&nbsp;Martin <small>(]&nbsp;·&nbsp;])</small> 13:42, 19 March 2024 (UTC)


== Date parameter ==
==Documentation==
The documentation on this appears to be out of date as using the example it does not work. ] (]) 01:51, 22 February 2011 (UTC)


In the process of building out ], I found that <code>date=</code> does not work. It is present in ], 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? ~ ] (]) 17:41, 12 May 2024 (UTC)
:I've partially fixed the documentation now. ] (]) 20:13, 22 February 2011 (UTC)
:What do you mean by {{tq|does not work}}? Here is an example from the template's doc page to which I have added {{para|date|2024}} (a bogus date):
::Thanks. I will look again at using it. ] (]) 21:33, 22 February 2011 (UTC)
::<syntaxhighlight lang="wikitext" inline="1">{{Cite ODNB|doi=10.1093/ref:odnb/29986|title=Worsley, Sir Richard |date=2024}}</syntaxhighlight>
:::{{Cite ODNB|doi=10.1093/ref:odnb/29986|title=Worsley, Sir Richard |date=2024}}
:Clearly, the 2024 date is rendered in the citation which suggests that {{para|date}} does work.
:—] (]) 18:28, 12 May 2024 (UTC)
::Using the Feather Taverns petition reference on ], adding <code>date=2005</code> 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 <nowiki>{{cite encyclopedia}}</nowiki> templates have maintenance messages; messages may be hidden (help).
::What might be the cause of this issue? ~ ] (]) 18:52, 12 May 2024 (UTC)
:::This one? – 'Feathers tavern' not 'Feather Taverns'. I've added {{para|date|2005}}:
::::<syntaxhighlight lang="wikitext" inline="1">{{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}}}}</syntaxhighlight>
:::::{{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}}}}
:::As written, that template adds the article to {{cl|CS1 maint: ref duplicates default}} because the value assigned to {{para|ref}} (a <code>CITEREF</code> anchor id) is the same as the <code>CITEREF</code> anchor id that ] created from {{para|last|Ditchfield}} and {{para|date|2005}} so {{para|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.
:::—] (]) 19:12, 12 May 2024 (UTC)
::::Thank you, my issue is resolved. ~ ] (]) 21:28, 12 May 2024 (UTC)


== ODNB citation style == == Co-authors ==


How do we fit author2 into this template? '''<span style="font-family:Trebuchet MS;">]]</span>''' 10:27, 14 September 2024 (UTC)
I've raised some issues with this template at ]. To briefly summarise what I said there, I'd like to see this template actually crediting the authors of the articles cited (that would be ethical) and to end up with a format like that seen ]. Probably best discussed there, but if discussed here, please leave a note at the other discussion location as well. ] (]) 23:44, 13 October 2011 (UTC)
:Have you tried typing? {{cite ODNB|title=Foo|last=Smith|first=Kate|last2=Brown|first2=Sam}} – ] (]) 10:58, 14 September 2024 (UTC)

::Thank you. I'll try that. '''<span style="font-family:Trebuchet MS;">]]</span>''' 17:48, 14 September 2024 (UTC)
Now in sandbox:

'''ODNBweb'''
{{pre2|<nowiki>{{ODNBweb |doi=10.1093/ref:odnb/34601 |last=Stocker |first=Mark |month=September |year=2004
|title=Louise, Princess, duchess of Argyll (1848–1939) |publisher=] |edition=online, January 2008 |accessdate=23 January 2008 |id=34601 |ref={{sfnRef|Stocker 2004, Louise, Princess, duchess of Argyll}}}}</nowiki>}}

:{{ODNBweb |doi=10.1093/ref:odnb/34601 |last=Stocker |first=Mark |month=September |year=2004
|title=Louise, Princess, duchess of Argyll (1848–1939) |publisher=] |edition=online, January 2008 |accessdate=23 January 2008 |id=34601 |ref={{sfnRef|Stocker 2004, Louise, Princess, duchess of Argyll}}}}

'''Cite doi'''
{{pre2|<nowiki>{{Cite doi/10.1093.2Fref:odnb.2F34601}}</nowiki>}}

:{{Cite doi/10.1093.2Fref:odnb.2F34601}}

'''ODNBweb/sandbox'''
{{pre2|<nowiki>{{ODNBweb/sandbox |doi=10.1093/ref:odnb/34601 |last=Stocker |first=Mark |month=September |year=2004
|title=Louise, Princess, duchess of Argyll (1848–1939) |publisher=] |edition=online, January 2008 |accessdate=23 January 2008 |id=34601 |ref={{sfnRef|Stocker 2004, Louise, Princess, duchess of Argyll}}}}</nowiki>}}

:{{ODNBweb/sandbox |doi=10.1093/ref:odnb/34601 |last=Stocker |first=Mark |month=September |year=2004
|title=Louise, Princess, duchess of Argyll (1848–1939) |publisher=] |edition=online, January 2008 |accessdate=23 January 2008 |id=34601 |ref={{sfnRef|Stocker 2004, Louise, Princess, duchess of Argyll}}}}

---'''''—&nbsp;]<span style="color:darkblue">&nbsp;'''''</span><sup>]</sup> 09:39, 14 October 2011 (UTC)

::Many thanks for that. I'm not quite sure how the bots that fill in citations work, but I assume the above would have to be filled in by hand rather than bots doing it? Back at the other discussion (that I linked above) you said that 'cite doi' draws on 'cite journal', and I pointed out that 'cite encyclopedia' fits better. Does the above incorporate 'cite encyclopedia', or is it a template purely designed to replicate the ODNB-preferred citation style, with the 'subscription needed' details added? The other issues that sometimes come up with citing to the ODNB:
::*People outside the UK sometimes access library volumes of the 2004 print edition, citing page numbers. Can that be incorporated somehow, along with a courtesy link to the current online version of the article, though that may be less desirable as it may be different from the initially published 2004 version of any particular article (see below). Also, as this template is named "ODNBweb" it makes less sense to incorporate page numbers from the print edition (future updates are, I think, intended to be entirely online).
::*The online entries are updated periodically (around three times a year, I think). This is not all the entries, but a rolling program of updates. Also, new entries are also added that were written after the 2004 edition. The online versions are the most current ones (though sometimes with no actual changes made, presumably the update is to tell the reader that the article was checked even if not updated), but links are also provided to the previous versions of the articles (a typical example would be an initial version in 2004, a new version in 2008, and the latest version in 2011). The point here is that the version accessed online may vary from the one initially cited. What is the best way to handle this, and is there a way to make it easy for editors to update to the latest version if they verify that it still supports the material cited? Also, the author citation may change as extensive revisions bring in the new author and co-credits them and the initial author.
::Thanks for doing this, and I hope the above isn't too complicated to consider. ] (]) 07:04, 15 October 2011 (UTC)

:* {{tl|Cite doi}} uses {{tl|cite journal}} which in turn uses {{tl|citation/core}}. The current {{tl|ODNBweb}} uses {{tl|citation}} which uses {{tl|citation/core}}. The sandbox version uses {{tl|citation/core}} directly. The key is that they all give the same output. I did class it as 'encyclopedia' so that will show up in metadata.
:* There is no guarantee that the print and online versions are the same. You need to cite the version that you actually read. We could have a variant for the print version but it needs to be a separate citation.
:* If the online version is updated, you will have to manually update the citation. Since this site requires a subscription, a bot cannot do the updates.
:---'''''—&nbsp;]<span style="color:darkblue">&nbsp;'''''</span><sup>]</sup> 11:39, 15 October 2011 (UTC)
::Many thanks for explaining all that. That also answers my question about the hundreds of uses of the template, which would have to be manually updated. Though I think some of the data can be accessed without a subscription? i.e. There is a public page for each entry that doesn't require a subscription (you can see this by following the links above). Maybe you are only referring to the edition date as needed a manual update, but I think that public page has that information anyway - the distinction will be between the most up-to-date page (which the doi link will presumably take you too anyway, and the access date). Anyway, I'm very happy with the sandbox version you have produced here. If it goes live, I presume it won't break any existing use, but will allow for addition of more citation information. I would like to get more input before any switch, though, so will leave notes with the three editors who have edited it most. ] (]) 03:24, 16 October 2011 (UTC)

:::Thank you for inviting me to this conversation. I have had a look quick at the template in the sandbox (]) and I think you may be making a mistake. My initial thoughts are that it would be better to call {{tl|cite encyclopedia}} from this template, otherwise AFAICT there is a large maintenance overhead. I am open persuasion that that is not so. -- ] (]) 06:15, 16 October 2011 (UTC)
::::So future editors would find it easier to edit a template based on {{tl|cite encyclopedia}} (which calls {{tl|citation/core}}) than to edit a template based on {{tl|citation/core}} directly? ---'''''—&nbsp;]<span style="color:darkblue">&nbsp;'''''</span><sup>]</sup> 12:53, 16 October 2011 (UTC)

If we could just go back a bit: some of the features requested actually exist in the current {{tl|ODNBweb}}, and have done so for some time? In particular authors, and access date. ] (]) 17:29, 16 October 2011 (UTC)
:Hmm. Yes. The documentation never got updated. FWIW, I agree with PBS (and said so somewhere above) that cite encyclopedia makes more sense. However, it depends on whether you want to cite the ODNB using a hybrid Misplaced Pages style, or cite the ODNB using something closely approximating the style they suggest on their site. What are the main options here? ] (]) 17:34, 16 October 2011 (UTC)

Latest revision as of 14:04, 15 September 2024

This template does not require a rating on Misplaced Pages's content assessment scale.
It is of interest to the following WikiProjects:
Dictionary of National Biography
This template is within the scope of WikiProject Dictionary of National Biography, a collaborative effort to improve British historical biographies on Misplaced Pages by providing access to the Dictionary of National Biography. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.Dictionary of National BiographyWikipedia:WikiProject Dictionary of National BiographyTemplate:WikiProject Dictionary of National BiographyDictionary of National Biography

Archives (Index)



This page is archived by ClueBot III.

Author

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)

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)
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)

Overriding automatic links

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)

The documentation was wrong about overriding. I have fixed it. – Jonesey95 (talk) 11:16, 3 April 2023 (UTC)
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)
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)
The evidence is in the template code, as far as I can tell:
  |encyclopedia=]
  |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)
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)

Template-protected edit request on 19 March 2024

This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.

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=]
  |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|]}}<!--
-->{{#if:{{both|{{{id|}}}|{{{doi|}}}}}|]|<!-- id with doi
-->      {{#if:{{{id|}}}|]}}}}<!-- id without doi
 --></includeonly><noinclude>
{{Documentation}}
</noinclude>

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

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)
 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)
Nice — Martin (MSGJ · talk) 13:42, 19 March 2024 (UTC)

Date parameter

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)

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)
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)
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)
Thank you, my issue is resolved. ~ Pbritti (talk) 21:28, 12 May 2024 (UTC)

Co-authors

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

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)
Thank you. I'll try that. Tim riley talk 17:48, 14 September 2024 (UTC)