Examples/Parameter: execandexit (example 2): Difference between revisions

m
Move side-by-side for blank producing statement to reduce unintended whitespace
imported>FrozenPlum
(Determine a description that fits this example)
imported>FrozenPlum
m (Move side-by-side for blank producing statement to reduce unintended whitespace)
 
Line 8:
Calling the following page with <code>&DPL_cat=Country examples</code> would list countries, omitting the <code>&cat</code> parameter would trigger the error text message (without DPL3 going to the database):
<pre>
{{#dpl:execandexit=geturlargs}}{{#dplvar:set|DPL_cat|Category:Dessert examples}}
{{#dplvar:set|DPL_cat|Category:Dessert examples}}
{{#dpl:
| execandexit = {{#if:{{#dplvar:DPL_cat}}||please specify a category via &DPL_cat= in the URL!}}
Line 20 ⟶ 19:
 
==Result==
{{#dpl:execandexit=geturlargs}}{{#dplvar:set|DPL_cat|Category:Dessert examples}}
{{#dplvar:set|DPL_cat|Category:Dessert examples}}
{{#dpl:
| execandexit = {{#if:{{#dplvar:DPL_cat}}||please specify a category via &DPL_cat= in the URL!}}
Anonymous user