Page structure
Explore the graph around a page: links, backlinks, categories and their members, media, references, interlanguage links, info, and citations.
Every article is a node in a graph. These commands walk the edges.
Links and backlinks
The internal links on a page, or the external URLs it cites:
wiki links "Alan Turing" # internal wiki links
wiki links "Alan Turing" --external # external URLs
wiki links "Alan Turing" -N 0 # only article-namespace links
What links here, the reverse direction:
wiki backlinks "Turing machine"
wiki backlinks "Turing machine" -o url | head
Categories
The categories a page belongs to:
wiki categories "Alan Turing"
The members of a category (the Category: prefix is optional):
wiki category "British computer scientists" -n 100 -o url
wiki category Physics --type subcat # subcategories only
wiki category Physics --type file # files only
Media
The files used on a page, with URL, MIME type, dimensions, size, and license:
wiki media "Alan Turing"
Download them all to a directory:
wiki media "Alan Turing" --download --out-dir imgs/
References
The external sources cited by an article:
wiki references "Climate change"
wiki references "Climate change" -o url
Interlanguage links
The same article in other languages:
wiki langs "Alan Turing"
wiki langs "Alan Turing" -o jsonl | head
Page info
Metadata about a page: id, length, last touched, content model, language, and whether it is a redirect:
wiki info "Alan Turing"
wiki info "Alan Turing" -o json
Citations
Generate a citation for the article itself in your preferred format:
wiki cite "Alan Turing" # BibTeX by default
wiki cite "Alan Turing" --format ris
wiki cite "Alan Turing" --format apa
wiki cite "Alan Turing" --format mla