Page MenuHomePhabricator

References in templates
Closed, ResolvedPublic

Description

Author: xyz91234

Description:
A template that includes references does not show up in the page that includes the template.

For example a template called "foo":

Foo 

<ref>www.bar.com</ref>

The page:

{{foo}}

<references/>

The page should render this:

Foo 

www.bar.com

However, it actually render this (missing the reference):

Foo

Version: unspecified
Severity: enhancement

Details

Reference
bz10343

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:50 PM
bzimport set Reference to bz10343.
bzimport added a subscriber: Unknown Object (MLST).

xyz91234 wrote:

A template that includes references does not show up in the page that includes
the template.

For example a template called "Foo":

Foo <ref>www.bar.com</ref>

The page:

{{foo}} <ref>www.baz.com</ref>

<references/>

The page should render this:

Foo [1] [2]

1. www.bar.com
2. www.baz.com

However, it actually render this (missing the www.bar.com template):

Foo [1] [1]

1. www.baz.com

xyz91234 wrote:

A template that includes references does not show up in the page that includes
the template.

For example a template called "Foo":

Foo <ref>www.bar.com</ref>

The page:

{{foo}} <ref>www.baz.com</ref>

<references/>

The page should render this:

Foo [1] [2]

    1. ^www.bar.com
    2. ^www.baz.com

However, it actually render this (missing the www.bar.com template):

Foo [2] [1]

    1. ^www.baz.com

xyz91234 wrote:

A template that includes references does not show up in the page that includes
the template.

For example a template called "foo_template":

Foo <ref>www.bar.com</ref>

The page:

{{foo_template}} <ref>www.baz.com</ref>

<references/>

The page should render this:

Foo [1] [2]

    1. ^ www.bar.com
    2. ^ www.baz.com

However, it actually render this (missing the www.bar.com template):

Foo [2] [1]

    1. ^ www.baz.com

ayg wrote:

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