WIKITRANS(1)
π WIKITRANS(1) β the wikitrans manual, but make it slay π
okay bestie, sit down, hydrate, and let me tell you about wikitrans β it lives in the General Commands Manual section (section 1, obviously, it's a command), and it is literally the glow-up machine for wiki markup. β¨
π NAME π
wikitrans β MediaWiki markup translator πΈ
β¨ SYNOPSIS β¨
wikitrans [OPTIONS] ARG
that's it. that's the whole summoning ritual. π
π¦ DESCRIPTION π¦
So wikitrans takes MediaWiki documents (you know, wiki markup, all those '' and [[ ]] situations) and translates them into various other formats. It's giving translator. It's giving versatility. We love her. π
And the way ARG works depends on what ARG actually is, so let's vibe check it:
- If
ARGlooks like a URL, then the wiki text that's gonna get converted gets downloaded from that URL. Fetched. Summoned. Iconic. π - Otherwise, if
--base-urlis given, thenARGis treated as the name of the page to get from the WikiMedia installation at that URL. (Yes, the original says "istallation" β typo and all, no cap, we keep it real. π) - Otherwise (no URL, no
--base-url),ARGis the name of the file to read wiki material from. Cozy local file energy. ππ«Ά
π OPTIONS π
--versionβ show the program version number and then exit. Short, sweet, self-aware. π-h,--helpβ show a short usage summary and exit. Your lil map. πΊοΈ-v,--verboseβ verbose operation. She talks more. π£οΈ-I ITYPE,--input-type=ITYPEβ set the input document type. The valid values are"default"or"wiktionary". π-t OTYPE,--to=OTYPE,--type=OTYPEβ set the output document type. The valid values are"html"(which is the default, bestie),"texi","text", or"dump". β¨-l LANG,--lang=LANGβ set the input document language. π-o KW=VAL,--option=KW=VALβ set a keyword option for the parser class constructor. Fancy internals. π§-d DEBUG,--debug=DEBUGβ set the debug level, and it goes from0..100. Yes, one hundred. Go off. π₯-D,--dumpβ dump the parse tree and exit; this is similar to--type=dump. π³-b URL,--base-url=URLβ set the base url. π
Note, and this one matters: when you're using--base-urlor passing a URL as an argument (those are the 2nd and 3rd use cases from up in DESCRIPTION), if the URL is in the'wikipedia.org'or'wiktionary.org'domain, then the options--input-typeand--langare set automatically. The program is doing the thinking for you. Main character behavior honestly. ππ
π EXAMPLES π
read the file text.wiki, easy peasy:
wikitrans text.wiki
grab the door page from the wiktionary at that base url:
wikitrans --base-url http://en.wiktionary.org door
or just hand her the URL directly and let her cook:
wikitrans https://en.wiktionary.org/wiki/Special:Export/door
π AUTHOR π
wikitrans was written by Sergey Poznyakoff <gray@gnu.org>. Absolute legend. π«Ά
This manual page was written by Ahmed El-Mahmoudy <aelmahmoudy@users.sourceforge.net>, for the Debian project (but may be used by others). Bestie really said "documentation is a love language." π
and that's the whole page, bestie!! this came out of the General Commands Manual and it's dated Aug 24, 2018 β so yeah, vintage, but she still eats. mwah. πβ¨
π¦ where this page comes from
- debian bookworm: wikitrans 1.3-2 Β· GPL-3.0-or-later
- debian trixie: wikitrans 1.4-1 Β· GPL-3.0-or-later
- ubuntu jammy: wikitrans 1.3-1 Β· GPL-3.0-or-later
- ubuntu noble: wikitrans 1.3-2 Β· GPL-3.0-or-later
- ubuntu questing: wikitrans 1.4-1
- ubuntu resolute: wikitrans 1.4-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: wikitrans 1.4-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms