Template:dplquery
3D Game Comparison - Game vs. game. No hype; just facts.™
(Difference between revisions)
Revision as of 12:03, 29 August 2007 (edit) Eep² (t|c) ← Previous diff |
Current revision (19:41, 15 September 2007) (edit) (undo) Eep² (t|c) |
||
(3 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | {{#form: name= demo |action=/wiki/index.php| | + | {{#form: name= demo | action=/wiki/index.php| |
- | {{#input: name= title |type= hidden | value = Special:Call/Catlist }} | + | {{#input: name= title | type= hidden | value = Special:Call/dplquery}} |
+ | <table cellpadding=2 cellspacing=0 margins=0 width=100% border rules=cols> | ||
+ | <tr valign=top><td> | ||
<table cellpadding=0 cellspacing=0 margins=0> | <table cellpadding=0 cellspacing=0 margins=0> | ||
<tr> | <tr> | ||
- | <td align="right"> namespace </td> | + | <td align="right">namespace</td> |
- | <td> {{#input: name= namespace |type= select | value = {{{namespace|}}} |<!-- *? {{#dpl: namespace=* | format=,\n*%TITLE%,, }}--> | + | <td> {{#input: name=namespace | type=select | value = {{{namespace|}}} |<!-- *? {{#dpl: namespace=* | format=,\n*%TITLE%,, }}--> |
*all | *all | ||
*main | *main | ||
Line 15: | Line 17: | ||
*Feature | *Feature | ||
*Effect | *Effect | ||
- | }}</td> | + | }} |
- | <td align="right"> but not </td> | + | </td> |
- | <td> {{#input: name= notnamespace |type= select | value = {{{notnamespace|}}} | | + | |
+ | <td align="right">not</td> | ||
+ | <td> {{#input: name=notnamespace | type=select | value = {{{notnamespace|}}} | | ||
*- | *- | ||
*main | *main | ||
Line 31: | Line 35: | ||
</td> | </td> | ||
</tr> | </tr> | ||
+ | |||
<tr> | <tr> | ||
- | <td align="right"> category </td> | + | <td align="right">category</td> |
- | <td> {{#input: name= category | value = {{{category|}}} |type= select | + | <td> {{#input: name=category | value = {{{category|}}} | type=select | *? {{#dpl: namespace=Category | format=,\n*%TITLE%,,}}}} |
- | | *? {{#dpl: namespace=Category | format=,\n*%TITLE%,, }} }} | + | |
</td> | </td> | ||
- | <td align="right"> but not </td> | + | <td align="right">not</td> |
- | <td> {{#input: name= notcategory | value = {{{notcategory|}}} |type= select | + | <td> {{#input: name=notcategory | value = {{{notcategory|}}} | type= select | *? {{#dpl: namespace=Category | format = ,\n*%TITLE%,,}}}} |
- | | *? {{#dpl: namespace=Category | format = ,\n*%TITLE%,, }} }} | + | |
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
- | <td align="right"> uses </td> | + | <td align="right">template</td> |
- | <td> {{#input: name= uses | value = {{{uses|}}} |type= select | + | <td> {{#input: name=uses | value = {{{uses|}}} | type=select | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,,}}}} |
- | | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,, }} }} | + | |
</td> | </td> | ||
- | <td align="right"> but not </td> | + | <td align="right">not</td> |
- | <td> {{#input: name= notuses | value = {{{notuses|}}} |type= select | + | <td> {{#input: name=notuses | value = {{{notuses|}}} | type=select | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,,}}}} |
- | | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,, }} }} | + | |
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
- | <td align="right"> links to </td> | + | <td align="right">links to</td> |
- | <td> {{#input: name= linksto | value = {{{linksto|}}} }} | + | <td> {{#input: name=linksto | value = {{{linksto|}}} }} |
</td> | </td> | ||
- | <td align="right"> but not to </td> | + | <td align="right">not to</td> |
- | <td> {{#input: name= notlinksto | value = {{{notlinksto|}}} }} | + | <td> {{#input: name=notlinksto | value = {{{notlinksto|}}} }} |
</td> | </td> | ||
</tr> | </tr> | ||
+ | |||
<tr> | <tr> | ||
- | <td align="right"> created by </td> | + | <td align="right">created by</td> |
- | <td> {{#input: name= createdby | value = {{{createdby|}}} |type= select | + | <td> {{#input: name=createdby | value = {{{createdby|}}} | type=select | *? {{#dpl: namespace=User | format=,\n*%TITLE%,,}}}} |
- | | *? {{#dpl: namespace=User | format=,\n*%TITLE%,, }} }} | + | |
</td> | </td> | ||
- | <td align="right"> modified by </td> | + | <td align="right"> modified by</td> |
- | <td> {{#input: name= modifiedby | value = {{{modifiedby|}}} |type= select | + | <td> {{#input: name=modifiedby | value = {{{modifiedby|}}} | type=select | *? {{#dpl: namespace=User | format=,\n*%TITLE%,,}}}} |
- | | *? {{#dpl: namespace=User | format=,\n*%TITLE%,, }} }} | + | |
</td> | </td> | ||
</tr> | </tr> | ||
+ | |||
<tr> | <tr> | ||
- | <td align="right"> last rev. before </td> | + | <td align="right">last rev. before</td> |
- | <td> {{#input: name= lastrevisionbefore | value = {{#if:{{{lastrevisionbefore|}}}|{{{lastrevisionbefore|}}}|YYYY-MM-DD}} }}</td> | + | <td> {{#input: name=lastrevisionbefore | value = {{#if:{{{lastrevisionbefore|}}}|{{{lastrevisionbefore|}}}|YYYY-MM-DD}}}}</td> |
- | <td align="right"> first rev. since </td> | + | <td align="right">first rev. since</td> |
- | <td> {{#input: name= firstrevisionsince | value = {{#if:{{{firstrevisionsince|}}}|{{{firstrevisionsince|}}}|YYYY-MM-DD}} }}</td> | + | <td> {{#input: name=firstrevisionsince | value = {{#if:{{{firstrevisionsince|}}}|{{{firstrevisionsince|}}}|YYYY-MM-DD}}}}</td> |
</tr> | </tr> | ||
+ | |||
<tr> | <tr> | ||
- | <td align="right"> ''all revs.'' before </td> | + | <td align="right">''all revs.'' before</td> |
- | <td> {{#input: name= allrevisionsbefore | value = {{#if:{{{allrevisionsbefore|}}}|{{{allrevisionsbefore|}}}|YYYY-MM-DD}} }}</td> | + | <td> {{#input: name=allrevisionsbefore | value = {{#if:{{{allrevisionsbefore|}}}|{{{allrevisionsbefore|}}}|YYYY-MM-DD}}}}</td> |
- | <td align="right"> ''all revs.'' since </td> | + | <td align="right">''all revs.'' after</td> |
- | <td> {{#input: name= allrevisionssince | value = {{#if:{{{allrevisionssince|}}}|{{{allrevisionssince|}}}|YYYY-MM-DD}} }}</td> | + | <td> {{#input: name=allrevisionssince | value = {{#if:{{{allrevisionssince|}}}|{{{allrevisionssince|}}}|YYYY-MM-DD}}}}</td> |
- | </tr> | + | </tr></table> |
- | </table> | + | |
- | <table cellpadding=0 cellspacing=0 margins=0> | + | <td>'''show''': |
- | </table> | + | {{#input: name=shownamespace | type=checkbox | value = {{{shownamespace|}}}}}namespace<br> |
- | show: namespace {{#input: name= shownamespace | + | {{#input: name=addcategories | type=checkbox | value = {{{addcategories|}}}}}categories<br> |
- | |type= select | value = {{{shownamespace|}}} | | + | {{#input: name=includesubpages | type=checkbox | value = {{{includesubpages|}}}}}subpages<br> |
- | *yes | + | {{#input: name=addpagecounter | type=checkbox | value = {{{addpagecounter|}}}}}visits<br> |
- | *no | + | {{#input: name=addpagesize | type=checkbox | value = {{{addpagesize|}}}}}size<br> |
- | }}categories {{#input: name= addcategories | + | {{#input: name=adduser | type=checkbox | value = {{{adduser|}}}}}user<br> |
- | |type= select | value = {{{addcategories|}}} | | + | {{#input: name=addeditdate | type=checkbox | value = {{{addeditdate|}}}}}editdate<br> |
- | *no | + | {{#input: name=addpagetoucheddate | type=checkbox | value = {{{addpagetoucheddate|}}}}}touch date |
- | *yes | + | |
- | }}visits {{#input: name= addpagecounter | + | <td>order method: {{#input: name=ordermethod |type=select | value = {{{ordermethod|}}} | |
- | |type= select | value = {{{addpagecounter|}}} | | + | |
- | *no | + | |
- | *yes | + | |
- | }}size {{#input: name= addpagesize | + | |
- | |type= select | value = {{{addpagesize|}}} | | + | |
- | *no | + | |
- | *yes | + | |
- | }}user {{#input: name= adduser | + | |
- | |type= select | value = {{{adduser|}}} | | + | |
- | *no | + | |
- | *yes | + | |
- | }}editdate {{#input: name= addeditdate | + | |
- | |type= select | value = {{{addeditdate|}}} | | + | |
- | *no | + | |
- | *yes | + | |
- | }}touch date: {{#input: name= addpagetoucheddate | + | |
- | |type= select | value = {{{addpagetoucheddate|}}} | | + | |
- | *no | + | |
- | *yes | + | |
- | }} | + | |
- | ordermethod: {{#input: name= ordermethod |type= select | value = {{{ordermethod|}}} | | + | |
*- | *- | ||
*category,firstedit | *category,firstedit | ||
Line 129: | Line 110: | ||
*user,firstedit | *user,firstedit | ||
*user,lastedit | *user,lastedit | ||
- | }}order: {{#input: name= order | + | }} |
- | |type= select | value = {{{order|}}} | | + | {{#input: name=order | type=select | value = {{{order|}}} | |
*ascending | *ascending | ||
*descending | *descending | ||
- | }}escapelinks: {{#input: name= escapelinks | ||
- | |type= select | value = {{{escapelinks|}}} | | ||
- | *true | ||
- | *false | ||
- | }}randomcount: {{#input: name= randomcount | ||
- | |type= select | value = {{{randomcount|}}} | | ||
- | *- | ||
- | *1 | ||
- | *3 | ||
- | *5 | ||
- | *10 | ||
- | }}export: {{#input: name= export | ||
- | |type= select | value = {{{export|}}} | | ||
- | *no | ||
- | *yes | ||
}} | }} | ||
- | <table cellpadding=0 cellspacing=0 margins=0> | + | |
- | <tr> | + | {{#input: name=escapelinks | type=checkbox | value = {{{escapelinks|}}}}}escapelinks |
- | <td> title(%) {{#input: name= titlematch | value = {{{titlematch|}}} }} columns {{#input: name= columns |type= select | value = {{{columns|}}} | | + | |
+ | {{#input: name=export | type=checkbox | value = {{{export|}}}}}export | ||
+ | </td> | ||
+ | |||
+ | <td>title(%) {{#input: name=titlematch | value = {{{titlematch|}}}}} | ||
+ | not (%) {{#input: name=nottitlematch | value = {{{nottitlematch|}}}}} | ||
+ | |||
+ | |||
+ | columns {{#input: name=columns | type=select | value = {{{columns|}}} | | ||
*3 | *3 | ||
*1 | *1 | ||
Line 158: | Line 132: | ||
*4 | *4 | ||
*5 | *5 | ||
- | }}maxrecords {{#input: name= count | value = {{{count|}}} | size = 2 | + | }} |
- | }} {{#input: type = submit | value = List members }} | + | |
- | <small>[[{{FULLPAGENAME}}|reset]]<!--, [[:Template:Catgraph|graph]]--></small> | + | max records {{#input: name=count | value = {{{count|}}} | size=2 |
+ | }}<br> | ||
+ | random count: {{#input: name=randomcount | type= select | value = {{{randomcount|}}} | | ||
+ | *- | ||
+ | *1 | ||
+ | *3 | ||
+ | *5 | ||
+ | *10 | ||
+ | }} | ||
</td></tr></table> | </td></tr></table> | ||
+ | |||
+ | <center>{{#input: type=submit | value = List members }} | ||
+ | <small>[[{{FULLPAGENAME}}|reset]]<!--, [[:Template:Catgraph|graph]]--></small></center> | ||
}} | }} | ||
<!-------------------------------------------------------------------------------------------------------------> | <!-------------------------------------------------------------------------------------------------------------> | ||
Line 168: | Line 153: | ||
==== {{{name}}} ==== | ==== {{{name}}} ==== | ||
|}} | |}} | ||
- | {{#dpl: resultsheader=<small>%PAGES% members found.<br><hr></small>\n | + | {{#dpl: resultsheader=<small>%PAGES% results<br><hr></small>\n |
- | |noresultsheader=<small>There are no results for your query.<br><hr></small>\n | + | |noresultsheader=<small>No results<br><hr></small>\n |
- | |oneresultheader=<small>1 member found.<br><hr></small>\n | + | |oneresultheader=<small>1 result<br><hr></small>\n |
|{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=|namespace={{{namespace|}}}}}}}}} | |{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=|namespace={{{namespace|}}}}}}}}} | ||
|{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=|notnamespace={{{notnamespace|}}}}}}}}} | |{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=|notnamespace={{{notnamespace|}}}}}}}}} | ||
Line 205: | Line 190: | ||
}} | }} | ||
---- | ---- | ||
- | <small><u>Your query used the following parameters</u><br/> | + | <small><u>The query used the following parameters</u><br/> |
{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=<br>|namespace={{{namespace|}}}<br>}}}}}}<!-- | {{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=<br>|namespace={{{namespace|}}}<br>}}}}}}<!-- | ||
-->{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=<br>|notnamespace={{{notnamespace|}}}<br>}}}}}}<!-- | -->{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=<br>|notnamespace={{{notnamespace|}}}<br>}}}}}}<!-- | ||
Line 224: | Line 209: | ||
-->{{#ifeq:{{{escapelinks|}}}|true||escapelinks={{{escapelinks|}}}<br>}}<!-- | -->{{#ifeq:{{{escapelinks|}}}|true||escapelinks={{{escapelinks|}}}<br>}}<!-- | ||
-->{{#ifeq:{{{randomcount|}}}|-||randomcount={{{randomcount|}}}<br>}}<!-- | -->{{#ifeq:{{{randomcount|}}}|-||randomcount={{{randomcount|}}}<br>}}<!-- | ||
- | -->{{#ifeq:{{{count|}}}|-||{{#if:{{{count|}}}|count={{{count|}}}<br>}}}}<!-- | + | -->{{#ifeq:{{{count|}}}|||{{#if:{{{count|}}}|count={{{count|}}}<br>}}}}<!-- |
-->{{#ifeq:{{{shownamespace|}}}|no||shownamespace={{{shownamespace|}}}<br>}}<!-- | -->{{#ifeq:{{{shownamespace|}}}|no||shownamespace={{{shownamespace|}}}<br>}}<!-- | ||
-->{{#ifeq:{{{addcategories|}}}|no||addcategories={{{addcategories|}}}<br>}}<!-- | -->{{#ifeq:{{{addcategories|}}}|no||addcategories={{{addcategories|}}}<br>}}<!-- | ||
Line 230: | Line 215: | ||
-->{{#ifeq:{{{addpagesize|}}}|no||addpagesize={{{addpagesize|}}}<br>}}<!-- | -->{{#ifeq:{{{addpagesize|}}}|no||addpagesize={{{addpagesize|}}}<br>}}<!-- | ||
-->{{#ifeq:{{{addeditdate|}}}|no||addeditdate={{{addeditdate|}}}<br>}}<!-- | -->{{#ifeq:{{{addeditdate|}}}|no||addeditdate={{{addeditdate|}}}<br>}}<!-- | ||
- | -->{{#ifeq:{{{addpagetoucheddate|no||}}}|addpagetoucheddate={{{addpagetoucheddate|}}}<br>}}<!-- | + | -->{{#ifeq:{{{addpagetoucheddate}}}|no||addpagetoucheddate={{{addpagetoucheddate|}}}<br>}}<!-- |
-->{{#ifeq:{{{adduser|}}}|no||adduser={{{adduser|}}}<br>}}<!-- | -->{{#ifeq:{{{adduser|}}}|no||adduser={{{adduser|}}}<br>}}<!-- | ||
-->{{#ifeq:{{{lastrevisionbefore|}}}|YYYY-MM-DD||lastrevisionbefore={{{lastrevisionbefore|}}}<br>}}<!-- | -->{{#ifeq:{{{lastrevisionbefore|}}}|YYYY-MM-DD||lastrevisionbefore={{{lastrevisionbefore|}}}<br>}}<!-- |