# (:childlist:) command

## Purpose and Syntax

The (:childlist:) command is used to display a list of child pages on a wiki page. The syntax is as follows:
(:childlist [sort=...]:)
The optional sort parameter determines the display order of the child pages. If the sort parameter is not specified, the pages will be displayed in the same order as they appear in the note tree.
The sort parameter can take the following values:

- name — child pages are sorted alphabetically in ascending order;
- descendname — child pages are sorted alphabetically in descending order;
- creation — child pages are sorted by creation date (oldest pages first);
- descendcreation — child pages are sorted by creation date (newest pages first);
- edit — child pages are sorted by the date of the last modification (most recently edited pages at the bottom);
- descendedit — child pages are sorted by the date of the last modification (most recently edited pages at the top);
- descendorder — child pages are displayed in the reverse order of their appearance in the tree.

## Examples

This page has four child pages. The following table shows the results of the (:childlist:) command with various sort parameter values:

Command | (:childlist:) | (:childlist sort=name:) | (:childlist sort=descendname:) | (:childlist sort=descendorder:)
Result | (:childlist:) command page 4 page 2 page 3 page 1 | (:childlist:) command page 1 page 2 page 3 page 4 | (:childlist:) command page 4 page 3 page 2 page 1 | (:childlist:) command page 1 page 3 page 2 page 4

See also:

- Wiki commands
- (:attachlist:) command