m (1 revision imported) |
m ((username removed) (log details removed): Text replacement - "ES:" to "") |
(No difference)
|
Revision as of 12:40, 22 September 2022
Here you can see some examples for simple queries using the page properties. You can add these queries to any page.
4.1 Creating page lists
4.1.1 Show pages in a particular namespace
{{#ask:
[[:+]] <!-- find all pages in the main namespace -->
[[Modification date::+]]<!-- necessary to filter deleted pages -->
|format=ul
|limit=4
}}
Output example in list style format:
Notes:
[[:+]]
shows pages from the Main namespace.
[[Myspace:+]]
shows pages from the namespace Myspace.
[[:+||Help:+]]
shows pages from both the Main namespace and the namespace Help (=OR argument)
4.1.2 Output in category style
{{#ask:
[[:+]][[Modification date::+]]
|format=category
|limit=12
}}
Output example:
4.1.3 Show pages from a category
{{#ask:
[[Category:Administration]]
| limit=4
| searchlabel=
| format=ol
}}
4.1.4 Pages that start with the same page name string
{{#ask:
[[~Edit*]][[ES:+]]
[[Modification date::+]]<!-- necessary to filter deleted pages -->
| limit=5
| searchlabel=
| format=ol
}}
List of pages in the ES namespace that begin with "Edit".
The part "]]" of the query was not understood.</br>Results might not be as expected.
4.2 Results format: Table
4.2.1 Format "broadtable"
{{#ask:
[[~Edit*]][[ES:+]]
[[Modification date::+]]<!-- necessary to filter deleted pages -->
| limit=5
| searchlabel=
| format=broadtable
}}
Edit articles |
The part "]]" of the query was not understood.</br>Results might not be as expected.
4.2.2 Format "datatable"
{{#ask:
[[~Edit*]][[ES:+]]
[[Modification date::+]]<!-- nötig um gelöschte Seiten zu filtern -->
|?Last editor is
| searchlabel=
| format=table
| class=datatable
}}
The part "]]" of the query was not understood.</br>Results might not be as expected.
Related info