Jump to content

Template talk:DGRA

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

Bug in this template

[edit]

{{SmithDGRA|author=[[George Long (scholar)|George Long]]|article=Praetor|page=956-957|year=1875}}

The above expands as follows:

This article incorporates text by George Long from the article "Praetor" in the public domain Dictionary of Greek and Roman Antiquities by William Smith (1875), p. 956-957.

This says "p." instead of "pp.", as if there were just one page. It also has a hyphen where an en-dash belongs. I tried to correct it by changing "page" to "pages" and the hyphen to an en-dash:

{{SmithDGRA|author=[[George Long (scholar)|George Long]]|article=Praetor|pages=956–957|year=1875}}

No page numbers!

If I correct only the dash, it works:

Public Domain This article incorporates text from a publication now in the public domainSmith, William, ed. (1875). "Praetor". Dictionary of Greek and Roman Antiquities. London: John Murray. p. 956–957.

Obviously "pages" needs to get fixed. Michael Hardy (talk) 11:31, 13 June 2011 (UTC)[reply]

This template currently does not have a "pages" parameter. I may try to add one if I have the time. Paul August 12:56, 30 August 2011 (UTC)[reply]
I have now added a "pages" parameter, so that:
{{SmithDGRA|author=[[George Long (scholar)|George Long]]|article=Praetor|pages=956–957|year=1875}}
now expands as:
Public Domain This article incorporates text from a publication now in the public domainSmith, William, ed. (1875). "Praetor". Dictionary of Greek and Roman Antiquities. London: John Murray. pp. 956–957.
Paul August 18:31, 30 August 2011 (UTC)[reply]

Optional parameter "article"

[edit]

The documentation states that the parameter "article" is optional and the template is used without any parameters in some articles, but it currently ends up calling {{cite encyclopedia}} erroneously without its required "title" parameter in that case instead of rendering it as a citation of the whole publication. – MwGamera (talk) 00:42, 18 April 2023 (UTC)[reply]