Issue:List (transclude) sections of a page

From FollowTheScore
Revision as of 22:39, 5 February 2008 by Gero (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Description: list all sectionnames of a Page in an other one
Extension / Version: DPL   /   1.6.5
Type / Status: Change Request   /   open

Problem

Hello,

is there any simple (or very complex) way to list (transclude) all sectionnames (headings) of an Wikipage in an other one?

Example:

Page A:
Section 1
Section 2
...
Section n
Page B:
list all sectionnames of Page A (yes, just the headings, not the whole text of the section)

I tried using DPL for that issue, but for that you have to know the names of the sections or the number of sections. Perhaps there is a option I haven't discovered.


Thank you!

Reply

Currently it is not possible. But the source code of DPL could be a good starting point for this if you can program in php. It should not be too complicated. Another way to do this might be to export the pages with standard tools and use some XSLT to create a very simple text format of the raw text. Then a classical unix tool like 'egrep' could do the job ...

Gero 22:39, 5 February 2008 (CET)