-
Notifications
You must be signed in to change notification settings - Fork 0
Reading The Community Wiki
Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.
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.
Generated from TheTowerSDK — do not edit here. Docs and live demos: https://tmrxjd.github.io/TheTowerSDK/
- Quick Start
- Entry Points
- How It Fits Together
- Getting a Save File
- Reading a Save
- Reading The Community Wiki
- Formulas
- Builders
- Charts
- Effective Paths
- Examples
- Templates
- Building a Bot On This
- Google Sheets
- Desktop and Mobile
- Optional Add-ons
- Using It With An AI Agent
- Using Your Own Artwork
- Names And Acronyms
- Patch Notes
- Accuracy
- Versioning
- Where the Docs Live
- Contributing
- Credits
- License
Guides
Examples
- 01-browse-game-data.ts
- 02-read-a-save-file.ts
- 03-plan-upgrades-from-a-save.ts
- 04-generate-a-chart.ts
- 05-generate-a-cost-table.ts
- 06-read-the-community-wiki.ts
- 07-format-like-the-game.ts
- 08-build-a-calculator.ts
- 09-build-a-bot.ts
- 10-read-a-sheet.ts
- 11-build-a-knowledge-base.ts
- 12-show-module-and-card-art.ts
Templates