Difference between revisions of "DPL Simple Forms Test"
m |
m |
||
Line 235: | Line 235: | ||
{{#if:{{#request:name}}| | {{#if:{{#request:name}}| | ||
==== {{#request:name}} ==== | ==== {{#request:name}} ==== | ||
− | |}} | + | |}}{{#vardefine:count|0}} |
{{#dpl: resultsheader=<small>²{#vardefine:count¦%PAGES%}²%PAGES% members found.<br><hr></small>\n | {{#dpl: resultsheader=<small>²{#vardefine:count¦%PAGES%}²%PAGES% members found.<br><hr></small>\n | ||
|noresultsheader=<small>There are no results for your query.<br><hr></small>\n | |noresultsheader=<small>There are no results for your query.<br><hr></small>\n | ||
Line 310: | Line 310: | ||
-->{{#ifeq:{{#request:allrevisionsbefore}}|YYYY-MM-DD||allrevisionsbefore={{#request:allrevisionsbefore}}<br>}}<!-- | -->{{#ifeq:{{#request:allrevisionsbefore}}|YYYY-MM-DD||allrevisionsbefore={{#request:allrevisionsbefore}}<br>}}<!-- | ||
-->{{#ifeq:{{#request:allrevisionssince}}|YYYY-MM-DD||allrevisionssince={{#request:allrevisionssince}}<br>}}<!-- | -->{{#ifeq:{{#request:allrevisionssince}}|YYYY-MM-DD||allrevisionssince={{#request:allrevisionssince}}<br>}}<!-- | ||
− | --></small><br> | + | --></small><br>{{#if:{{#dpl: debug=1 |
+ | | {{#ifeq:{{#request:namespace}}|all||{{#if:{{#request:namespace}}|{{#ifeq:{{#request:namespace}}|main|namespace=|namespace={{#request:namespace}}}}}}}} | ||
+ | |{{#ifeq:{{#request:notnamespace}}|-||{{#if:{{#request:notnamespace}}|{{#ifeq:{{#request:notnamespace}}|main|notnamespace=|notnamespace={{#request:notnamespace}}}}}}}} | ||
+ | |{{#ifeq:{{#request:category}}|?||{{#if:{{#request:category}}|category={{#request:category}}}}}} | ||
+ | |{{#ifeq:{{#request:notcategory}}|?||{{#if:{{#request:notcategory}}|notcategory={{#request:notcategory}}}}}} | ||
+ | |{{#ifeq:{{#request:category2}}|?||{{#if:{{#request:category2}}|category={{#request:category2}}}}}} | ||
+ | |{{#ifeq:{{#request:notcategory2}}|?||{{#if:{{#request:notcategory2}}|notcategory={{#request:notcategory2}}}}}} | ||
+ | |{{#ifeq:{{#request:uses}}|?||{{#if:{{#request:uses}}|uses=Template:{{#request:uses}}}}}} | ||
+ | |{{#ifeq:{{#request:notuses}}|?||{{#if:{{#request:notuses}}|notuses=Template:{{#request:notuses}}}}}} | ||
+ | |{{#ifeq:{{#request:createdby}}|?||{{#if:{{#request:createdby}}|createdby={{#request:createdby}}}}}} | ||
+ | |{{#ifeq:{{#request:modifiedby}}|?||{{#if:{{#request:modifiedby}}|modifiedby={{#request:modifiedby}}}}}} | ||
+ | |titlematch={{#request:titlematch}} | ||
+ | |nottitlematch={{#request:nottitlematch}} | ||
+ | |linksto={{#request:linksto}} | ||
+ | |notlinksto={{#request:notlinksto}} | ||
+ | |{{#ifeq:{{#request:randomcount}}|-||randomcount={{#request:randomcount}}}} | ||
+ | |count=1 | ||
+ | |offset={{#expr: {{#if:{{#request:offset}}|{{#request:offset}} +|}} {{#var:count}} }} | ||
+ | |{{#ifeq:{{#request:lastrevisionbefore}}|YYYY-MM-DD||lastrevisionbefore={{#request:lastrevisionbefore}}}} | ||
+ | |{{#ifeq:{{#request:firstrevisionsince}}|YYYY-MM-DD||firstrevisionsince={{#request:firstrevisionsince}}}} | ||
+ | |{{#ifeq:{{#request:allrevisionsbefore}}|YYYY-MM-DD||allrevisionsbefore={{#request:allrevisionsbefore}}}} | ||
+ | |{{#ifeq:{{#request:allrevisionssince}}|YYYY-MM-DD||allrevisionssince={{#request:allrevisionssince}}}} | ||
+ | |noresultsheader=1 | ||
+ | }}||[{{fullurl:{{FULLPAGENAME}} | ||
+ | |&offset={{#expr: {{#if: {{#request:offset}} | ||
+ | |{{#request:offset}} + | ||
+ | }} {{#var:count}} | ||
+ | }}{{#if: {{#request:namespace}} | ||
+ | |&namespace={{#request:namespace}} | ||
+ | }}{{#if: {{#request:notnamespace}} | ||
+ | |¬namespace={{#request:notnamespace}} | ||
+ | }}{{#if: {{#request:category}} | ||
+ | |&category={{#request:category}} | ||
+ | }}{{#if: {{#request:notcategory}} | ||
+ | |¬category={{#request:notcategory}} | ||
+ | }}{{#if: {{#request:category2}} | ||
+ | |&category2={{#request:category2}} | ||
+ | }}{{#if: {{#request:notcategory2}} | ||
+ | |¬category2={{#request:notcategory2}} | ||
+ | }}{{#if: {{#request:uses}} | ||
+ | |&uses={{#request:uses}} | ||
+ | }}{{#if: {{#request:notuses}} | ||
+ | |¬uses={{#request:notuses}} | ||
+ | }}{{#if: {{#request:linksto}} | ||
+ | |&linksto={{#request:linksto}} | ||
+ | }}{{#if: {{#request:notlinksto}} | ||
+ | |¬linksto={{#request:notlinksto}} | ||
+ | }}{{#if: {{#request:createdby}} | ||
+ | |&createdby={{#request:createdby}} | ||
+ | }}{{#if: {{#request:modifiedby}} | ||
+ | |&modifiedby={{#request:modifiedby}} | ||
+ | }}{{#if: {{#request:lastrevisionbefore}} | ||
+ | |&lastrevisionbefore={{#request:lastrevisionbefore}} | ||
+ | }}{{#if: {{#request:firstrevisionsince}} | ||
+ | |&firstrevisionsince={{#request:firstrevisionsince}} | ||
+ | }}{{#if: {{#request:allrevisionsbefore}} | ||
+ | |&allrevisionsbefore={{#request:allrevisionsbefore}} | ||
+ | }}{{#if: {{#request:allrevisionssince}} | ||
+ | |&allrevisionssince={{#request:allrevisionssince}} | ||
+ | }}{{#if: {{#request:shownamespace}} | ||
+ | |&shownamespace={{#request:shownamespace}} | ||
+ | }}{{#if: {{#request:addcategories}} | ||
+ | |&addcategories={{#request:addcategories}} | ||
+ | }}{{#if: {{#request:addpagecounter}} | ||
+ | |&addpagecounter={{#request:addpagecounter}} | ||
+ | }}{{#if: {{#request:addpagesize}} | ||
+ | |&addpagesize={{#request:addpagesize}} | ||
+ | }}{{#if: {{#request:adduser}} | ||
+ | |&adduser={{#request:adduser}} | ||
+ | }}{{#if: {{#request:addeditdate}} | ||
+ | |&addeditdate={{#request:addeditdate}} | ||
+ | }}{{#if: {{#request:addpagetoucheddate}} | ||
+ | |&addpagetoucheddate={{#request:addpagetoucheddate}} | ||
+ | }}{{#if: {{#request:ordermethod}} | ||
+ | |&ordermethod={{#request:ordermethod}} | ||
+ | }}{{#if: {{#request:order}} | ||
+ | |&order={{#request:order}} | ||
+ | }}{{#if: {{#request:escapelinks}} | ||
+ | |&escapelinks={{#request:escapelinks}} | ||
+ | }}{{#if: {{#request:randomcount}} | ||
+ | |&randomcount={{#request:randomcount}} | ||
+ | }}{{#if: {{#request:export}} | ||
+ | |&export={{#request:export}} | ||
+ | }}{{#if: {{#request:titlematch}} | ||
+ | |&titlematch={{#request:titlematch}} | ||
+ | }}{{#if: {{#request:columns}} | ||
+ | |&columns={{#request:columns}} | ||
+ | }}{{#if: {{#request:count}} | ||
+ | |&count={{#request:count}} | ||
+ | }} | ||
+ | }} next] | ||
+ | }} | ||
}} | }} | ||
− | |||
− |
Revision as of 06:52, 6 December 2007
{{#form: id=demo
|{{#input:type=hidden |name=title |value=DPL_Simple_Forms_Test }}
namespace | {{#input: name= namespace | type= select | value = {{#request:namespace}} |
}} |
but not | {{#input: name= notnamespace | type= select | value = {{#request:notnamespace}} |
}} |
category | {{#input: name= category | value = {{#request:category}} | type= select | *?
}} |
but not | {{#input: name= notcategory | value = {{#request:notcategory}} | type= select | *?
}} |
and category | {{#input: name= category2 | value = {{#request:category2}} | type= select | *?
}} |
and not | {{#input: name= notcategory2 | value = {{#request:notcategory2}} | type= select | *?
}} |
uses | {{#input: name= uses | value = {{#request:uses}} | type= select | *?
}} |
but not | {{#input: name= notuses | value = {{#request:notuses}} | type= select | *?
}} |
links to | {{#input: name= linksto | value = {{#request:linksto}}
}} |
but not to | {{#input: name= notlinksto | value = {{#request:notlinksto}}
}} | ||||
created by | {{#input: name= createdby | value = {{#request:createdby}} | type= select | *?
}} |
modified by | {{#input: name= modifiedby | value = {{#request:modifiedby}} | type= select | *?
}} |
last rev. before | {{#input: name= lastrevisionbefore | value = {{#request:lastrevisionbefore}}
}} |
first rev. since | {{#input: name= firstrevisionsince | value = {{#request:firstrevisionsince}}
}} | ||||
all revs. before | {{#input: name= allrevisionsbefore | value = {{#request:allrevisionsbefore}}
}} |
all revs. since | {{#input: name= allrevisionssince | value = {{#request:allrevisionssince}}
}} |
show: namespace {{#input: name= shownamespace
|type= select | value = {{#request:shownamespace}} |
- yes
- no
}}categories {{#input: name= addcategories |type= select | value = {{#request:addcategories}} |
- no
- yes
}}visits {{#input: name= addpagecounter |type= select | value = {{#request:addpagecounter}} |
- no
- yes
}}size {{#input: name= addpagesize |type= select | value = {{#request:addpagesize}} |
- no
- yes
}}user {{#input: name= adduser |type= select | value = {{#request:adduser}} |
- no
- yes
}}editdate {{#input: name= addeditdate |type= select | value = {{#request:addeditdate}} |
- no
- yes
}}touch date: {{#input: name= addpagetoucheddate |type= select | value = {{#request:addpagetoucheddate}} |
- no
- yes
}}
ordermethod: {{#input: name= ordermethod
|type= select | value = {{#request:ordermethod}} |
- -
- category,firstedit
- category,lastedit
- category,pagetouched
- category,sortkey
- categoryadd
- counter
- firstedit
- lastedit
- pagetouched
- size
- title
- titlewithoutnamespace
- user,firstedit
- user,lastedit
}}order: {{#input: name= order |type= select | value = {{#request:order}} |
- ascending
- descending
}}escapelinks: {{#input: name= escapelinks |type= select | value = {{#request:escapelinks}} |
- true
- false
}}randomcount: {{#input: name= randomcount |type= select | value = {{#request:randomcount}} |
- -
- 1
- 3
- 5
- 10
}}export: {{#input: name= export |type= select | value = {{#request:export}} |
- no
- yes
}}
title(%) {{#input: name= titlematch | value = {{#request:titlematch}}
}} columns {{#input: name= columns |
type= select | value = {{#request:columns}} |
}}maxrecords {{#input: name= count |
value = {{#request:count}} | size = 2
}}offset {{#input: name= offset |
value = {{#request:offset}} | size = 2
}} {{#input: type = submit |
value = List members
}} |
}}
==== {{#request:name}} ===={{#vardefine:count|0}}
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:category}}' for parameter 'category'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:category2}}' for parameter 'category'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:ordermethod}}' for parameter 'ordermethod'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:namespace}}' for parameter 'namespace'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:notnamespace}}' for parameter 'notnamespace'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:notcategory}}' for parameter 'notcategory'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:notcategory2}}' for parameter 'notcategory'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option 'Template:{{#request:uses}}' for parameter 'uses'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option 'Template:{{#request:notuses}}' for parameter 'notuses'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:linksto}}' for parameter 'linksto'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:notlinksto}}' for parameter 'notlinksto'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:order}}' for parameter 'order'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:escapelinks}}' for parameter 'escapelinks'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:randomcount}}' for parameter 'randomcount'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:count}}' for parameter 'count'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:shownamespace}}' for parameter 'shownamespace'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:addcategories}}' for parameter 'addcategories'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:addpagecounter}}' for parameter 'addpagecounter'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:addpagesize}}' for parameter 'addpagesize'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:addeditdate}}' for parameter 'addeditdate'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:addpagetoucheddate}}' for parameter 'addpagetoucheddate'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:adduser}}' for parameter 'adduser'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:lastrevisionbefore}}' for parameter 'lastrevisionbefore'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:firstrevisionsince}}' for parameter 'firstrevisionsince'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:allrevisionsbefore}}' for parameter 'allrevisionsbefore'.
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#request:allrevisionssince}}' for parameter 'allrevisionssince'.
There are no results for your query.Your query used the following parameters
namespace={{#request:namespace}}
notnamespace={{#request:notnamespace}}
category={{#request:category}}
category={{#request:category2}}
notcategory={{#request:notcategory}}
notcategory={{#request:notcategory2}}
uses=Template:{{#request:uses}}
notuses=Template:{{#request:notuses}}
createdby={{#request:createdby}}
modifiedby={{#request:modifiedby}}
titlematch={{#request:titlematch}}
nottitlematch={{#request:nottitlematch}}
linksto={{#request:linksto}}
notlinksto={{#request:notlinksto}}
columns={{#request:columns}}
order={{#request:order}}
ordermethod={{#request:ordermethod}}
escapelinks={{#request:escapelinks}}
randomcount={{#request:randomcount}}
count={{#request:count}}
offset={{#request:offset}}
shownamespace={{#request:shownamespace}}
addcategories={{#request:addcategories}}
addpagecounter={{#request:addpagecounter}}
addpagesize={{#request:addpagesize}}
addeditdate={{#request:addeditdate}}
addpagetoucheddate={{#request:addpagetoucheddate}}
adduser={{#request:adduser}}
lastrevisionbefore={{#request:lastrevisionbefore}}
firstrevisionsince={{#request:firstrevisionsince}}
allrevisionsbefore={{#request:allrevisionsbefore}}
allrevisionssince={{#request:allrevisionssince}}