Page MenuHomePhabricator

Allow mixed usages of references
Closed, ResolvedPublic

Description

Author: maxime.saintes

Description:
Hello,

what I would like to do is a footpage like this :

References

<references>

  • <ref name="article1">An article about the subject, which is 3 pages long</ref>

<references/>
<references group="A"/>

Which would allow to refer to the article by using <ref name="article1"/>, or to only a specific page of the article by using <ref group="A">p.2</ref>.

It would greatly improve readability of such cases.

Thanks in advance.


Version: unspecified
Severity: enhancement

Details

Reference
bz22300

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:58 PM
bzimport added a project: Cite.
bzimport set Reference to bz22300.
bzimport added a subscriber: Unknown Object (MLST).

*** This bug has been marked as a duplicate of bug 20707 ***

(In reply to comment #2)

  • This bug has been marked as a duplicate of bug 20707 ***

Bug 20707 is about nested refs; this is about adding page number support.

Seems I have misunderstood it. The is description not too clear... :/

(In reply to comment #4)

Seems I have misunderstood it. The is description not too clear... :/

I agree. The title and implementation are unclear. If this can be retitled, I suggest "add page number parameter".

As to implementation, it would be more like:

<ref name="article1" page="2">

Editors keep asking for a page number parameter in Cite.php, but I have never seen a good description of where and how it should appear. If it is to appear inline, then it would be like the en.wiki http://en.wikipedia.org/wiki/Template:R. If in the reference list, then the only way I can see this is like shortened footnotes— http://en.wikipedia.org/wiki/Wikipedia:CITESHORT.

maxime.saintes wrote:

Sorry if the explanation is not clear, i'm not fluent in english.
I think this "feature request" is not the same as Bug 20707, even if they both talk about pages in refs, which is not handled very well at the moment. What I am asking for is to be able to add a ref to an article, and also to add a ref to a subpart of this article.

When I add a ref to a subpart of an article, what I do is using a group, and grouping refs in the bottom of the article like this :

  • Name of an article about the subject, which is 3 pages long

<references group="A"/>

But if I do this, the only way to refer to the article as a whole is to add a ref with "Name of an article about the subject, which is 3 pages long" as text, which will cause this text to be duplicated in the bottom of this article.

So I wanted to write this to avoid duplication of the text :

References

<references>

  • <ref name="article1">An article about the subject, which is 3 pages

long</ref>
<references/>
<references group="A"/>

But it doesn't work.

Sorry if it's still hard to understand. Any feature oriented to add support of subpages in references named would be great.

(In reply to comment #6)

Sorry if the explanation is not clear, i'm not fluent in english.
I think this "feature request" is not the same as Bug 20707, even if they both
talk about pages in refs, which is not handled very well at the moment. What I
am asking for is to be able to add a ref to an article, and also to add a ref
to a subpart of this article.

When I add a ref to a subpart of an article, what I do is using a group, and
grouping refs in the bottom of the article like this :

  • Name of an article about the subject, which is 3 pages long

<references group="A"/>

But if I do this, the only way to refer to the article as a whole is to add a
ref with "Name of an article about the subject, which is 3 pages long" as text,
which will cause this text to be duplicated in the bottom of this article.

So I wanted to write this to avoid duplication of the text :

References

<references>

  • <ref name="article1">An article about the subject, which is 3 pages

long</ref>
<references/>
<references group="A"/>

But it doesn't work.

Sorry if it's still hard to understand. Any feature oriented to add support of
subpages in references named would be great.

Take a look at http://en.wikipedia.org/wiki/Template:rp

That template allows named references to be reused and adds the page number inline.

(In reply to comment #5)

(In reply to comment #4)

Seems I have misunderstood it. The is description not too clear... :/

I agree. The title and implementation are unclear. If this can be retitled, I
suggest "add page number parameter".

As to implementation, it would be more like:

<ref name="article1" page="2">

Editors keep asking for a page number parameter in Cite.php, but I have never
seen a good description of where and how it should appear. If it is to appear
inline, then it would be like the en.wiki
http://en.wikipedia.org/wiki/Template:R. If in the reference list, then the
only way I can see this is like shortened footnotes—
http://en.wikipedia.org/wiki/Wikipedia:CITESHORT.

That should have been http://en.wikipedia.org/wiki/Template:rp

maxime.saintes wrote:

In my opinion, Template:rp adds too much information in text. I think that pages should be specified at the bottom of the page, not in the text.

Show me what that would look like.

Actually it is a duplicate of Bug 13127 - Page number attribute for <ref> tags

  • This bug has been marked as a duplicate of bug 13127 ***