Difference between revisions of "Template:Catlist"
(42 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
<table cellpadding=0 cellspacing=0 margins=0> | <table cellpadding=0 cellspacing=0 margins=0> | ||
<tr bgcolor="#ddddff"> | <tr bgcolor="#ddddff"> | ||
− | <td align="right">namespace </td> | + | <td align="right"> namespace </td> |
− | <td> {{#input: name= namespace | + | <td> {{#input: name= namespace |type= select | value = {{{namespace|}}} | |
− | |||
*all | *all | ||
*main | *main | ||
Line 12: | Line 11: | ||
*Category | *Category | ||
*Image | *Image | ||
+ | *User | ||
+ | *DPL | ||
+ | *Wgraph | ||
}}</td> | }}</td> | ||
− | <td align="right"> | + | <td align="right"> but not </td> |
− | <td> {{#input: name= notnamespace | + | <td> {{#input: name= notnamespace |type= select | value = {{{notnamespace|}}} | |
− | |||
*- | *- | ||
*main | *main | ||
Line 21: | Line 22: | ||
*Template | *Template | ||
*Category | *Category | ||
+ | *Image | ||
+ | *User | ||
+ | *DPL | ||
+ | *Wgraph | ||
}} | }} | ||
</td> | </td> | ||
</tr> | </tr> | ||
<tr bgcolor="#ddffff"> | <tr bgcolor="#ddffff"> | ||
− | <td align="right"> category </td> | + | <td align="right"> category </td> |
− | <td> {{#input: name= category | value = {{{ | + | <td> {{#input: name= category | value = {{{category|}}} |type= select |
− | + | | *? {{#dpl: namespace=Category | format=,\n*%TITLE%,, }} }} | |
− | }} | + | </td> |
+ | <td align="right"> but not </td> | ||
+ | <td> {{#input: name= notcategory | value = {{{notcategory|}}} |type= select | ||
+ | | *? {{#dpl: namespace=Category | format = ,\n*%TITLE%,, }} }} | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr bgcolor="#ddffff"> | ||
+ | <td align="right"> and category </td> | ||
+ | <td> {{#input: name= category2 | value = {{{category2|}}} |type= select | ||
+ | | *? {{#dpl: namespace=Category | format=,\n*%TITLE%,, }} }} | ||
</td> | </td> | ||
− | <td align="right"> | + | <td align="right"> and not </td> |
− | <td> {{#input: name= | + | <td> {{#input: name= notcategory2 | value = {{{notcategory2|}}} |type= select |
− | + | | *? {{#dpl: namespace=Category | format = ,\n*%TITLE%,, }} }} | |
− | }} | ||
</td> | </td> | ||
</tr> | </tr> | ||
<tr bgcolor="#ffddff"> | <tr bgcolor="#ffddff"> | ||
− | <td align="right">uses </td> | + | <td align="right"> uses </td> |
− | <td> {{#input: name= uses | value = {{{uses|}}} | + | <td> {{#input: name= uses | value = {{{uses|}}} |type= select |
− | + | | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,, }} }} | |
− | }} | ||
</td> | </td> | ||
− | <td align="right"> | + | <td align="right"> but not </td> |
− | <td> {{#input: name= notuses | value = {{{notuses|}}} | + | <td> {{#input: name= notuses | value = {{{notuses|}}} |type= select |
− | + | | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,, }} }} | |
− | }} | ||
</td> | </td> | ||
</tr> | </tr> | ||
<tr bgcolor="#ffffdd"> | <tr bgcolor="#ffffdd"> | ||
− | <td align="right"> | + | <td align="right"> links to </td> |
<td> {{#input: name= linksto | value = {{{linksto|}}} }} | <td> {{#input: name= linksto | value = {{{linksto|}}} }} | ||
</td> | </td> | ||
− | <td align="right"> | + | <td align="right"> but not to </td> |
− | <td> {{#input: name= notlinksto | value = {{{notlinksto|}}} | + | <td> {{#input: name= notlinksto | value = {{{notlinksto|}}} }} |
+ | </td> | ||
+ | </tr> | ||
+ | <tr bgcolor="#ffeedd"> | ||
+ | <td align="right"> created by </td> | ||
+ | <td> {{#input: name= createdby | value = {{{createdby|}}} |type= select | ||
+ | | *? {{#dpl: namespace=User |titleregexp=^[^/]+$ | format=,\n*%TITLE%,, }} }} | ||
+ | </td> | ||
+ | <td align="right"> modified by </td> | ||
+ | <td> {{#input: name= modifiedby | value = {{{modifiedby|}}} |type= select | ||
+ | | *? {{#dpl: namespace=User | titleregexp=^[^/]+$ | format=,\n*%TITLE%,, }} }} | ||
</td> | </td> | ||
+ | </tr> | ||
+ | <tr bgcolor="#ddeeff"> | ||
+ | <td align="right"> last rev. before </td> | ||
+ | <td> {{#input: name= lastrevisionbefore | value = {{#if:{{{lastrevisionbefore|}}}|{{{lastrevisionbefore|}}}|YYYY-MM-DD}} }}</td> | ||
+ | <td align="right"> first rev. since </td> | ||
+ | <td> {{#input: name= firstrevisionsince | value = {{#if:{{{firstrevisionsince|}}}|{{{firstrevisionsince|}}}|YYYY-MM-DD}} }}</td> | ||
+ | </tr> | ||
+ | <tr bgcolor="#ddeeff"> | ||
+ | <td align="right"> ''all revs.'' before </td> | ||
+ | <td> {{#input: name= allrevisionsbefore | value = {{#if:{{{allrevisionsbefore|}}}|{{{allrevisionsbefore|}}}|YYYY-MM-DD}} }}</td> | ||
+ | <td align="right"> ''all revs.'' since </td> | ||
+ | <td> {{#input: name= allrevisionssince | value = {{#if:{{{allrevisionssince|}}}|{{{allrevisionssince|}}}|YYYY-MM-DD}} }}</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | + | <table cellpadding=0 cellspacing=0 margins=0> | |
− | |type= select | * | + | </table> |
− | }} | + | show: namespace {{#input: name= shownamespace |
− | |type= select | | + | |type= select | value = {{{shownamespace|}}} | |
− | }} | + | *yes |
− | }} | + | *no |
− | |type= select | value = {{{ | + | }}categories {{#input: name= addcategories |
− | * | + | |type= select | value = {{{addcategories|}}} | |
− | + | *no | |
− | + | *yes | |
− | * | + | }}visits {{#input: name= addpagecounter |
− | + | |type= select | value = {{{addpagecounter|}}} | | |
− | + | *no | |
− | }}ordermethod: {{#input: name= ordermethod | + | *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 102: | Line 152: | ||
*5 | *5 | ||
*10 | *10 | ||
− | }} | + | }}export: {{#input: name= export |
− | + | |type= select | value = {{{export|}}} | | |
− | |type= select | value = {{{ | + | *no |
− | * | + | *yes |
− | * | + | }} |
− | }} | + | <table cellpadding=0 cellspacing=0 margins=0> |
− | + | <tr bgcolor="#eeffee"> | |
− | + | <td> title(%) {{#input: name= titlematch | value = {{{titlematch|}}} }} columns {{#input: name= columns |type= select | value = {{{columns|}}} | | |
− | + | *3 | |
− | + | *1 | |
− | + | *2 | |
− | + | *3 | |
− | + | *4 | |
− | }} | + | *5 |
− | + | }}maxrecords {{#input: name= count | value = {{{count|}}} | size = 2 | |
− | * | + | }}offset {{#input: name= offset | value = {{{offset|}}} | size = 2 |
− | * | + | }} {{#input: type = submit | value = List members }} |
− | + | <small>[[:Template:Catlist|reset]] [[:Template:Catgraph|graph]]</small> | |
− | + | </td></tr></table> | |
− | * | ||
− | * | ||
− | }} | ||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | }}{{#input: type = submit | value = List members }} | ||
− | <small>[[:Template:Catlist|reset]]</small> | ||
}} | }} | ||
<!-------------------------------------------------------------------------------------------------------------> | <!-------------------------------------------------------------------------------------------------------------> | ||
Line 139: | Line 177: | ||
==== {{{name}}} ==== | ==== {{{name}}} ==== | ||
|}} | |}} | ||
− | {{#dpl: resultsheader=<small>%PAGES% members found.<br><hr></small> | + | {{#dpl: resultsheader=<small>%PAGES% members found.<br><hr></small>\n |
+ | |noresultsheader=<small>There are no results for your query.<br><hr></small>\n | ||
+ | |oneresultheader=<small>1 member found.<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|}}}}}}}}} | ||
|{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}}}}} | |{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}}}}} | ||
|{{#ifeq:{{{notcategory|}}}|?||{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}}}}} | |{{#ifeq:{{{notcategory|}}}|?||{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}}}}} | ||
+ | |{{#ifeq:{{{category2|}}}|?||{{#if:{{{category2|}}}|category={{{category2|}}}}}}} | ||
+ | |{{#ifeq:{{{notcategory2|}}}|?||{{#if:{{{notcategory2|}}}|notcategory={{{notcategory2|}}}}}}} | ||
|{{#ifeq:{{{uses|}}}|?||{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}}}}} | |{{#ifeq:{{{uses|}}}|?||{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}}}}} | ||
|{{#ifeq:{{{notuses|}}}|?||{{#if:{{{notuses|}}}|notuses=Template:{{{notuses|}}}}}}} | |{{#ifeq:{{{notuses|}}}|?||{{#if:{{{notuses|}}}|notuses=Template:{{{notuses|}}}}}}} | ||
Line 153: | Line 195: | ||
|notlinksto={{{notlinksto|}}} | |notlinksto={{{notlinksto|}}} | ||
|{{#if:{{{columns|}}}|columns={{{columns|}}}|columns=3}} | |{{#if:{{{columns|}}}|columns={{{columns|}}}|columns=3}} | ||
+ | |{{#ifeq:{{{export|}}}|yes|columns=1}} | ||
|order={{{order|}}} | |order={{{order|}}} | ||
|{{#ifeq:{{{ordermethod|}}}|-||ordermethod={{{ordermethod|}}}}} | |{{#ifeq:{{{ordermethod|}}}|-||ordermethod={{{ordermethod|}}}}} | ||
|escapelinks={{{escapelinks|}}} | |escapelinks={{{escapelinks|}}} | ||
|{{#ifeq:{{{randomcount|}}}|-||randomcount={{{randomcount|}}}}} | |{{#ifeq:{{{randomcount|}}}|-||randomcount={{{randomcount|}}}}} | ||
− | |{{# | + | |{{#if:{{{count|}}}|count={{{count|}}}}} |
+ | |{{#if:{{{offset|}}}|offset={{{offset|}}}}} | ||
|shownamespace={{{shownamespace|}}} | |shownamespace={{{shownamespace|}}} | ||
|addcategories={{{addcategories|}}} | |addcategories={{{addcategories|}}} | ||
Line 165: | Line 209: | ||
|addpagetoucheddate={{{addpagetoucheddate|}}} | |addpagetoucheddate={{{addpagetoucheddate|}}} | ||
|adduser={{{adduser|}}} | |adduser={{{adduser|}}} | ||
+ | |{{#ifeq:{{{lastrevisionbefore|}}}|YYYY-MM-DD||lastrevisionbefore={{{lastrevisionbefore|}}}}} | ||
+ | |{{#ifeq:{{{firstrevisionsince|}}}|YYYY-MM-DD||firstrevisionsince={{{firstrevisionsince|}}}}} | ||
+ | |{{#ifeq:{{{allrevisionsbefore|}}}|YYYY-MM-DD||allrevisionsbefore={{{allrevisionsbefore|}}}}} | ||
+ | |{{#ifeq:{{{allrevisionssince|}}}|YYYY-MM-DD||allrevisionssince={{{allrevisionssince|}}}}} | ||
+ | |{{#ifeq:{{{export|}}}|yes|include={export.dpl} }} | ||
+ | |{{#ifeq:{{{export|}}}|yes|format=[http://gs-nb/dpldemo/index.php/Special:Export?pages=,,%0D%0A, click to start export of '''all selected pages''']}} | ||
}} | }} | ||
− | </includeonly> | + | ---- |
+ | <small><u>Your query used the following parameters</u><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:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}<br>}}}}<!-- | ||
+ | -->{{#ifeq:{{{category2|}}}|?||{{#if:{{{category2|}}}|category={{{category2|}}}<br>}}}}<!-- | ||
+ | -->{{#ifeq:{{{notcategory|}}}|?||{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}<br>}}}}<!-- | ||
+ | -->{{#ifeq:{{{notcategory2|}}}|?||{{#if:{{{notcategory2|}}}|notcategory={{{notcategory2|}}}<br>}}}}<!-- | ||
+ | -->{{#ifeq:{{{uses|}}}|?||{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}<br>}}}}<!-- | ||
+ | -->{{#ifeq:{{{notuses|}}}|?||{{#if:{{{notuses|}}}|notuses=Template:{{{notuses|}}}<br>}}}}<!-- | ||
+ | -->{{#ifeq:{{{createdby|}}}|?||{{#if:{{{createdby|}}}|createdby={{{createdby|}}}<br>}}}}<!-- | ||
+ | -->{{#ifeq:{{{modifiedby|}}}|?||{{#if:{{{modifiedby|}}}|modifiedby={{{modifiedby|}}}<br>}}}}<!-- | ||
+ | -->{{#if:{{{titlematch|}}}|titlematch={{{titlematch|}}}<br>}}<!-- | ||
+ | -->{{#if:{{{nottitlematch|}}}|nottitlematch={{{nottitlematch|}}}<br>}}<!-- | ||
+ | -->{{#if:{{{linksto|}}}|linksto={{{linksto|}}}<br>}}<!-- | ||
+ | -->{{#if:{{{notlinksto|}}}|notlinksto={{{notlinksto|}}}<br>}}<!-- | ||
+ | -->{{#if:{{{columns|}}}|columns={{{columns|}}}<br>|columns=3<br>}}<!-- | ||
+ | -->{{#ifeq:{{{export|}}}|yes|columns=1<br>}}<!-- | ||
+ | -->{{#ifeq:{{{order|}}}|ascending||order={{{order|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{ordermethod|}}}|-||ordermethod={{{ordermethod|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{escapelinks|}}}|true||escapelinks={{{escapelinks|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{randomcount|}}}|-||randomcount={{{randomcount|}}}<br>}}<!-- | ||
+ | -->{{#if:{{{count|}}}|count={{{count|}}}<br>}}<!-- | ||
+ | -->{{#if:{{{offset|}}}|offset={{{offset|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{shownamespace|}}}|no||shownamespace={{{shownamespace|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{addcategories|}}}|no||addcategories={{{addcategories|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{addpagecounter|}}}|no||addpagecounter={{{addpagecounter|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{addpagesize|}}}|no||addpagesize={{{addpagesize|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{addeditdate|}}}|no||addeditdate={{{addeditdate|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{addpagetoucheddate}}}|no||addpagetoucheddate={{{addpagetoucheddate|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{adduser|}}}|no||adduser={{{adduser|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{lastrevisionbefore|}}}|YYYY-MM-DD||lastrevisionbefore={{{lastrevisionbefore|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{firstrevisionsince|}}}|YYYY-MM-DD||firstrevisionsince={{{firstrevisionsince|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{allrevisionsbefore|}}}|YYYY-MM-DD||allrevisionsbefore={{{allrevisionsbefore|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{allrevisionssince|}}}|YYYY-MM-DD||allrevisionssince={{{allrevisionssince|}}}<br>}}<!-- | ||
+ | --></small><br></includeonly> |
Latest revision as of 02:32, 15 January 2011
{{#form: name= demo |action=/dpldemo/index.php| {{#input: name= title |type= hidden | value = Special:Call/Catlist }}
namespace | {{#input: name= namespace |type= select | value = |
|
but not | {{#input: name= notnamespace |type= select | value = |
}} |
category | {{#input: name= category | value = |type= select
| *?
|
but not | {{#input: name= notcategory | value = |type= select
| *?
|
and category | {{#input: name= category2 | value = |type= select
| *?
|
and not | {{#input: name= notcategory2 | value = |type= select
| *?
|
uses | {{#input: name= uses | value = |type= select
| *?
|
but not | {{#input: name= notuses | value = |type= select
| *?
|
links to | {{#input: name= linksto | value = }} | but not to | {{#input: name= notlinksto | value = }} |
created by | {{#input: name= createdby | value = |type= select
| *?
|
modified by | {{#input: name= modifiedby | value = |type= select
| *?
|
last rev. before | {{#input: name= lastrevisionbefore | value = YYYY-MM-DD }} | first rev. since | {{#input: name= firstrevisionsince | value = YYYY-MM-DD }} |
all revs. before | {{#input: name= allrevisionsbefore | value = YYYY-MM-DD }} | all revs. since | {{#input: name= allrevisionssince | value = YYYY-MM-DD }} |
show: namespace {{#input: name= shownamespace
|type= select | value = |
- yes
- no
}}categories {{#input: name= addcategories
|type= select | value = |
- no
- yes
}}visits {{#input: name= addpagecounter
|type= select | value = |
- no
- yes
}}size {{#input: name= addpagesize
|type= select | value = |
- no
- yes
}}user {{#input: name= adduser
|type= select | value = |
- no
- yes
}}editdate {{#input: name= addeditdate
|type= select | value = |
- no
- yes
}}touch date: {{#input: name= addpagetoucheddate
|type= select | value = |
- no
- yes
}} ordermethod: {{#input: name= ordermethod |type= select | value = |
- -
- 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 = |
- ascending
- descending
}}escapelinks: {{#input: name= escapelinks
|type= select | value = |
- true
- false
}}randomcount: {{#input: name= randomcount
|type= select | value = |
- -
- 1
- 3
- 5
- 10
}}export: {{#input: name= export
|type= select | value = |
- no
- yes
}}
title(%) {{#input: name= titlematch | value = }} columns {{#input: name= columns |type= select | value = |
}}maxrecords {{#input: name= count | value = | size = 2 }}offset {{#input: name= offset | value = | size = 2 }} {{#input: type = submit | value = List members }} reset graph |
}}