Jump to content

Help:269

From DynamicPageList3 Manual


The old documentation's include section states:

There is an alternate syntax to specify a surrogate template. It has the advantage that the surrogate template may reside in a different namespace than the original template. Also, the surrogate template's name can be completely different from the original template name: {template¦surrogate template}. For example, you may specify something like {my template¦Help:Substitution for my template}

Regular template name include

[edit source]
{{#dpl:
|debug=0
|namespace=main
|category=Fruit examples
|uses=Template:Fruit-Infobox¦Template:Fruit
|include={Fruit-Infobox}:image:grows
|table = class="wikitable sortable",Page,Props,Requirements
|count=10
|noresultsfooter='''No results found'''
}}
Gives
Page Props Requirements
Pear
Apple Red Apple Fruit With Black Background.jpeg On trees
Grape Grapes on White Table.jpeg On vines
Orange Orange, orange peel.jpg On trees
Plum Plum on tree.jpg
Banana Banana-Single.jpg On a tree-like plant
Mango Mango 2008-3-1.JPG On trees
Apricot Apricot_whole444.jpg On trees
Data source

Template:Fruit-Infobox

Alternate template name include

[edit source]
The following
{{#dpl:
|debug=0
|namespace=main
|category=Fruit examples
|uses=Template:Fruit-Infobox¦Template:Fruit
|include={Fruit-Infobox¦Fruit}:image:grows
|table = class="wikitable sortable",Page,Props,Requirements
|count=10
|noresultsfooter='''No results found'''
}}
Gives
Page Props Requirements
Pear
Apple
Grape
Orange
Plum
Banana
Mango
Apricot
Data source

Template:Fruit

Content appears only partially included?

I'm not sure what is going on here. FrozenPlum (talk) 04:20, 31 August 2025 (UTC)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.