Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a271f4441a60d806

Jump to content

Template talk:DGRA

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Template talk:DGRA/testcases)
Latest comment: 3 years ago by MwGamera in topic Optional parameter "article"

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 domain: Smith, 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 domain: Smith, 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