Use TW Database in your guides
Units, lords, items, spells, armies and skill builds for Reddit, Discord, Steam guides, forums, YouTube descriptions and blogs — with the numbers of the current patch (9.0.4) and a link back here. Free to use; keep the visible link to us. Cards update themselves after every patch.
Copy ▾ on every page
Unit, lord, item, spell and race pages, rows of the item and unit key lists, the army and battle builders and the skill planner have a Copy ▾ button. It gives the entity as a link, for Reddit (Markdown), Discord (no tables, the small print line), Steam guides and forums (BBCode), plain text for a YouTube description, an HTML link for a blog, a picture (copy it straight into Discord or a Reddit post, or download it for a Steam guide), and the console line the game takes. Try it:
**[Chaos Warriors](https://twdatabase.com/units/chaos-warriors)** — Axe Infantry · Tier 2 · Warriors of Chaos: Health 9,000, Armour 100, Melee attack 36, Melee defence 44, Weapon strength 36, Cost 750 · WH3 9.0.4
Discord
**[Chaos Warriors](https://twdatabase.com/units/chaos-warriors)** — Health 9,000, Armour 100, Melee attack 36, Melee defence 44, Weapon strength 36, Cost 750 -# Axe Infantry · Tier 2 · Warriors of Chaos · twdatabase.com · WH3 9.0.4
Steam guide / forum
[url=https://twdatabase.com/units/chaos-warriors][b]Chaos Warriors[/b][/url] — Axe Infantry · Tier 2 · Warriors of Chaos · WH3 9.0.4 [list] [*]Health 9,000 [*]Armour 100 [*]Melee attack 36 [*]Melee defence 44 [*]Weapon strength 36 [*]Cost 750 [/list]
Text
Chaos Warriors (Axe Infantry · Tier 2 · Warriors of Chaos): Health 9,000, Armour 100, Melee attack 36, Melee defence 44, Weapon strength 36, Cost 750 · WH3 9.0.4 — https://twdatabase.com/units/chaos-warriors
Many at once: + List
Press + List on as many units, items and spells as you like (up to 100, kept in this browser). The “List” tray in the corner orders them and exports the lot: a table for Reddit and Steam, a list for Discord, text, one picture of all the cards, the console lines (unit keys or au commands, item commands) and a link to share — /list?i=….
On your blog: one script
Put this line once in your page or theme. Every link to twdatabase.com then shows the card on hover (and on tap on phones):
<script src="https://twdatabase.com/tooltips.js" async></script>
A link, hover it:
Hold the line with Hammerers and cast Fireball; give your lord Ghal Maraz. A bare address gets its name: https://twdatabase.com/units/reiksguard
<a href="https://twdatabase.com/units/hammerers">Hammerers</a>
Autolink — names in your text become links (data-twdb-autolink on a container):
Karl Franz opens with Halberdiers and Handgunners in front, Reiksguard on the flanks and a Great Cannon behind.
<div data-twdb-autolink>…your text…</div>
An inline card — the link stays inside it (data-twdb-card):
Chaos Warriors<a href="https://twdatabase.com/units/chaos-warriors" data-twdb-card>Chaos Warriors</a>
A table of several (data-twdb-list):
Three picks on TW Database<a href="https://twdatabase.com/list?i=units/hammerers,units/chaos-warriors,items/ghal-maraz" data-twdb-list="units/hammerers,units/chaos-warriors,items/ghal-maraz">Three picks</a>
An army, a battle or a skill build, read-only, with its own height (data-twdb-embed; Copy ▾ in the builders gives you the line):
<div data-twdb-embed="army:f=wh_main_emp_empire&l=wh_main_emp_cha_karl_franz_0&u=wh_main_emp_inf_halberdiers,wh_main_emp_inf_halberdiers,wh_main_emp_inf_handgunners,wh_main_emp_cav_reiksguard,wh_main_emp_art_great_cannon&b=12400"></div>
Options
Set them before or after the script — <script>window.twdbTooltips = { theme: "dark", autolink: true }</script> — or as attributes on the script tag: data-theme="light" data-icon-links="false".
| Option | Default | What it does |
|---|---|---|
| colorLinks | true | Colour our links by item rarity and lore. |
| iconLinks | true | A small game icon before each link (iconSize: 'small' or 'medium'). |
| renameLinks | true | A link whose text is the bare address shows the entity's name instead. |
| theme | 'auto' | 'auto', 'dark' or 'light' — auto follows your page's background (or the reader's dark mode). |
| touch | true | On phones the first tap shows the card, a second tap follows the link, a tap elsewhere closes it. |
| autolink | false | true: find unit, lord, item and spell names in article, .entry-content and .post and link them. |
| ping | true | Count, once per page view, how many cards your page shows (host name only, no cookies, no personal data). |
Other hooks: data-twdb="units/hammerers" on any element gives it that card; data-no-tip or data-twdb="none" turns a link's card off; window.twdbTooltips.refresh() after you add content yourself (the script also watches the page).
Every output for one entity
Find a unit, lord, item, spell, lore or race; copy the format you need.
Loading…
Preview — the inline card our script draws
Forums: a [twdb] tag
Forum admins can add a tag without a plugin: [twdb]Emperor Karl Franz[/twdb] becomes a link through https://twdatabase.com/go/<name>, which goes to the page of that name (any case; for a name the forum's token won't take, leave the apostrophe out — “Kugath Plaguefather” works). Add the script line to the forum's page template too, and the links get cards.
phpBB 3.3
ACP → Posting → BBCodes → Add a new BBCode. BBCode usage:
[twdb]{INTTEXT}[/twdb]HTML replacement:
<a href="https://twdatabase.com/go/{INTTEXT}">{INTTEXT}</a>INTTEXT takes letters (any alphabet), numbers, spaces, commas, dots, minus, plus, hyphen and underscore — safe inside an address. Avoid {TEXT} there: phpBB warns about {TEXT} in sensitive places. Script line: the end of overall_footer.html in your style.
XenForo 2
Admin control panel → Content → BB codes → Add BB code. BB code tag: twdb · Replacement mode: simple replacement · option: No. HTML replacement:
<a href="https://twdatabase.com/go/{text}">{text}</a>{text} is what is between the tags. Script line: in the PAGE_CONTAINER template, before </body>.
Also: https://twdatabase.com/go/units.hammerers (section.slug) always goes to that exact page.
Notion, Ghost, Discourse, Medium
Paste the link. Our pages carry link previews (the entity's name, its key numbers and its picture; shared armies and skill builds get a picture of their own) and oEmbed, so editors that read either show a card: https://twdatabase.com/oembed?url=https://twdatabase.com/units/hammerers.
WordPress
The GameDB Cards plugin: download gamedb-cards.zip (Plugins → Add New → Upload Plugin). Shortcodes:
[gamedb site="twdb" id="units/hammerers" mode="card"] [gamedb site="twdb" id="units/hammerers,items/ghal-maraz" mode="list"] [gamedb site="twdb" id="items/ghal-maraz" mode="link"] modes: link, card, list, embed
Until then, the script line in a Custom HTML block (or your theme's footer) does the same.
Terms
Free to use in non-commercial guides, videos, blogs, wikis and forums. Keep the visible link to TW Database that every format carries. The numbers are read from the game's data tables and update after each patch; the game's names, pictures and texts belong to Games Workshop and Creative Assembly — this is an unofficial fan reference. What the script reports: privacy. How we verify.
For AI assistants: creators.md (this guide as plain Markdown).