Last modified: 2013-02-07 08:40:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40077, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38077 - #lsth: Cannot transclude a section by heading more than once
#lsth: Cannot transclude a section by heading more than once
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
LabeledSectionTransclusion (Other open bugs)
master
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-29 05:15 UTC by David Nagle
Modified: 2013-02-07 08:40 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description David Nagle 2012-06-29 05:15:13 UTC
When transcluding content by heading (using #lsth:), a given heading can only be transcluded one time in a given article. Subsequent transclusions will yield a link to the article instead of the section's content.

For example, suppose I have a page named "Test" that contains this content (using three dashes to show start/stop):

---
== Example ==
This is an example.
---

If I then create a page with the following:

---
{{#lsth:Test|Example}}
{{#lsth:Test|Example}}
---

The output I -expect- would be:

---
This is an example.
This is an example.
---

The output I -actually- receive is:

---
This is an example.
[[Test]]
---
Comment 1 Merlijn van Deen (test) 2012-11-27 14:50:16 UTC
This should also be fixed in https://gerrit.wikimedia.org/r/#/c/31330/ , which is being deployed in the current deployment cycle.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links