Jump to content

Help:269

From DynamicPageList4 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
Apricot Apricot_whole444.jpg On trees
Banana Banana-Single.jpg On a tree-like plant
Grape Grapes on White Table.jpeg On vines
Mango Mango 2008-3-1.JPG On trees
Orange Orange, orange peel.jpg On trees
Plum Plum on tree.jpg
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
Apricot
Banana
Grape
Mango
Orange
Plum
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.