m (1 revision imported) |
|||
Line 22: | Line 22: | ||
===Output in category style=== | ===Output in category style=== | ||
− | <syntaxhighlight> | + | <syntaxhighlight lang="text"> |
{{#ask: | {{#ask: | ||
[[:+]][[Modification date::+]] | [[:+]][[Modification date::+]] |
Revision as of 15:38, 20 December 2021
Here you can see some examples for simple queries using the metadata of a wiki page. You can add these queries to any wiki page.
Creating page lists[edit | edit source]
{{#ask:
[[:+]]
[[Modification date::+]]<!-- necessary to filter deleted pages -->
|format=ul
|limit=4
}}
- Accessibility
- Accessibility/Extensions
- Accessibility/Extensions/legacy list
- Accessibility/Extensions/notchecked
Notes:
[[:+]]
show Pages in the Main namespace. [[Myspace:+]]
shows pages in the namespace Myspace.
[[:+||Help:+]]
shows pages in the Main namespace and in the namespace Help.
Output in category style[edit | edit source]
{{#ask:
[[:+]][[Modification date::+]]
|format=category
|limit=12
}}
A
Show pages from a category[edit | edit source]
{{#ask:
[[Category:Administration]]
| limit=4
| searchlabel=
| format=ol
}}
Seiten mit gleichem Namensanfang[edit | edit source]
{{#ask:
[[~Visu*]][[:+||Manual:+]]
[[Modification date::+]]<!-- necessary to filter deleted pages -->
| limit=5
| searchlabel=
| format=ol
}}
List of pages in the Main namespace and in the namespace Manual that begin with "Visu".
Results format: Table[edit | edit source]
Format "broadtable"[edit | edit source]
{{#ask:
[[~Visu*]][[:+||Manual:+]]
[[Modification date::+]]<!-- necessary to filter deleted pages -->
| limit=5
| searchlabel=
| format=broadtable
}}
VisualEditor: Insert Images |
Format "datatable"[edit | edit source]
{{#ask:
[[~Visu*]][[:+||Handbuch:+]]
[[Modification date::+]]<!-- necessary to filter deleted pages -->
| limit=5
| searchlabel=
| format=table
| class=datatable
}}
Related info