Skip to content

Reading The Community Wiki

Josh Dionne edited this page Aug 25, 2026 · 1 revision

Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.

Reading The Community Wiki

The Tower's wiki is on Fandom, which serves wikitext rather than anything you can render: templates, infoboxes, [[File:…]] links and vertical wikitables. This converts it to Markdown.

import { fetchFandomPageAsMarkdown } from 'thetowersdk/wiki'

const markdown = await fetchFandomPageAsMarkdown('Cards')

Or the halves separately, if you fetch pages your own way — from a cache, a mirror, or a build step:

import { convertFandomWikitextToMarkdown, resolveFandomFileImages } from 'thetowersdk/wiki'

const markdown = convertFandomWikitextToMarkdown(wikitext, { pageTitle: 'Cards' })

A page that does not exist returns 200 OK with a missing marker rather than a 404, so fetchFandomWikitext throws on it instead of returning an empty page.

The conversion ships here; the wiki's content does not. Wiki text is CC-BY-SA and this package is MIT, so fetch what you need and honor the wiki's license in whatever you ship. It is a volunteer-run wiki — cache what you fetch, and space out requests when pulling many pages.

Clone this wiki locally