Merge branch 'mako_changes-20260806' into content-sizes

Brings in revision-level redirect detection and its regenerated
baselines. Conflicts were the expected adjacent insertions where both
branches extended the same seams (build_table and WikiqParser
signatures, the argparse block, the build_table call sites, and the
test file); resolved by keeping both branches' additions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-06 23:52:31 -07:00
22 changed files with 137498 additions and 137340 deletions

View File

@@ -37,6 +37,16 @@ Each output row describes one revision. The output format follows the
else produces tab-separated values. With no dump file argument, wikiq
reads XML on stdin and writes to stdout.
The `title` and `namespace` columns are page-level identity values as
of the time of export: a moved page's entire history carries its final
title, and namespace derives from that title. Redirect status, by
contrast, is determined per revision from each revision's own text: the
`revision_is_redirect` and `revision_redirect_target` columns record
whether a revision's text begins with a redirect directive and where it
points. `#REDIRECT` is recognized on every wiki; wikis that also use a
localized keyword can add it with `--redirect-aliases` (for example,
`--redirect-aliases OMDIRIGERING` for Swedish wikis).
The most commonly useful options (`wikiq --help` describes them all):
- `-n ID` limits output to a namespace, and can be given more than once.