Examples/Parameter: noresultsheader (example 1): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Would be ideal to show all 3)
imported>FrozenPlum
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
==Example==
==Example==


The first example selects articles from a nonexistent category so the noresultsheader output is displayed, the second uses a non-breaking space <code>&amp;nbsp;</code> to output no result, and the third uses <code>\n</code> to display output no result.
The first example selects articles from a nonexistent category, to cause the <code>noresultsheader</code> output to display (for example purposes), the second uses a non-breaking space <code>&amp;nbsp;</code> to output no result, and the third uses <code>\n</code> to display output no result.


<pre>
<pre>
Line 47: Line 47:
}}
}}
<noinclude>
<noinclude>
[[Category:Controlling output volume (examples)‎]]
[[Category:Defining header and footer for the result]]
[[Category:Uses category parameter]]
[[Category:Uses category parameter]]
[[Category:Uses noresultsheader parameter]]
[[Category:Uses noresultsheader parameter]]

Latest revision as of 01:15, 1 April 2023

Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

The first example selects articles from a nonexistent category, to cause the noresultsheader output to display (for example purposes), the second uses a non-breaking space &nbsp; to output no result, and the third uses \n to display output no result.

A)
{{#dpl:
|category=notArealCategory
|noresultsheader=<i>No results found</i>
}}

B)
{{#dpl:
|noresultsheader= 
|category=notArealCategory
}}

C)
{{#dpl:
|noresultsheader=\n
|category=notArealCategory
}}

Result

A) {{#dpl: |category=notArealCategory |noresultsheader=No results found }}

B) {{#dpl: |noresultsheader=  |category=notArealCategory }}

C) {{#dpl: |noresultsheader=\n |category=notArealCategory }}