Topic on Project:Support desk

How to Include Page Sections in DPL?

5
Summary by Johnywhy

Here's transclude using Extension:DynamicPageList3.

{{#dpl:

  |category = Deep-Dives

  |include = #Rebuttal

}}

It returns a bulleted list of all page titles in category "Deep-Dives", including all body text in page section called "Rebuttal". There are no errors for pages which don't have that section.

Notes:

  • The gamepedia.com manual shows the older "require_once" installation syntax. The mediawiki.org extension page contains the newer "wfLoadExtension" syntax.
  • The output list displays a link to a non-existent Template at the top of the list. This can be suppressed by creating "Template:Extension DPL" and saving it as blank. It can even be deleted at this point, and it's display will continue to be suppressed in the DPL. More info on how to use that template to capture info when you have several DPL pages.

Since Extension:DynamicPageList3 description says it's re-written from the ground up, with improved performance, i don't see a strong reason to investigate the other two DPL extensions.

Johnywhy (talkcontribs)
AhmadF.Cheema (talkcontribs)
Johnywhy (talkcontribs)
AhmadF.Cheema (talkcontribs)

The link I gave also uses the exact same example (with different variable names) for including page SECTION.

Johnywhy (talkcontribs)

Fantastic. This works great! Here's my transclude:

{{#dpl:
  |category = Rebuttal_Deep-Dives
  |include = #Rebuttal
}}

It returns a bulleted list of all page titles in category "Rebuttal_Deep-Dives", including all body text in page section called "Rebuttal".

It displays a link to a non-existent Template at the top of the list. This can be suppressed by creating "Template:Extension DPL" and saving it as blank. It can even be deleted at this point, and it's display will continue to be suppressed in the DPL. More info.

Since Extension:DynamicPageList3 description says it's re-written from the ground up, with improved performance, i don't see a strong reason to investigate the other two DPL extensions.