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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Created page with "<noinclude>{{note|Please '''do not edit''' this page unless you're wanting to edit the manual itself, it is an example included in the manual.|error}}</noinclude><!-- This is the example preloaded for testing, press "Show Preview" to see the example working (at the bottom of the page). If you save this page, it saves as a new section at the bottom of your '''User:Username/Sandbox''' --> ==Example== '''EXAMPLE TEXT HERE''' <pre> A) {{#dpl: |category=notArealCategory |n...")
 
imported>FrozenPlum
m (Would be ideal to show all 3)
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.
'''EXAMPLE TEXT HERE'''


<pre>
<pre>
Line 18: Line 18:
{{#dpl:
{{#dpl:
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|category=notArealCategory
}}

C)
{{#dpl:
|noresultsheader=\n
|category=notArealCategory
|category=notArealCategory
}}
}}
Line 32: Line 38:
{{#dpl:
{{#dpl:
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|category=notArealCategory
}}

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

Revision as of 05:11, 17 April 2022

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 so the noresultsheader output is displayed, 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 }}