| 👁 Screenshot of the English Wikipedia article "Terraria" with Cite Forge Inspector panel opened. Cite Forge Inspector on the English Wikipedia article "Terraria" | |
| Description | User script that lets you inspect, rename, reorganize, and validate all citations on a page. |
|---|---|
| Maintainers | SuperGrey, SuperHamster, DeepChirp |
| Updated | March 2026 |
| Script location | github.com/QZGao/CiteForge/blob/main/src/main.ts Minized build: User:SuperGrey/gadgets/CiteForge.js |
| Version control | 👁 GitHub icon QZGao/CiteForge |
| Skin support | Any |
Cite Forge is a Wikipedia user script that adds a floating citation workbench to articles, letting you browse, search, and rename references in place.
Installing
[edit]To enable Cite Forge on all language versions of Wikipedia:
- Visit your global.js page on Meta: User:<YourUserName>/global.js
If you want to enable Cite Forge on only a specific language version of Wikipedia:
- Visit your common.js page:
Special:MyPage/common.json your wiki of choice.
On that JS page, copy in the code, then click "Publish changes":
mw.loader.load("//meta.wikimedia.org/w/index.php?title=User:SuperGrey/gadgets/CiteForge.js&action=raw&ctype=text/javascript");// Backlink: [[meta:Cite Forge]]
Usage
[edit]Navigation, copying, and export
[edit]Floating bottom-left "inspector" panel with a portlet toggle; remembers visibility and size. Browse citations with an alphabetical index, search filter, and refresh. Highlight the uses of a citation in the article and can scroll to them. Copy ref names (raw, {{r|name}}, or <refname="..."/>) or raw citation content.
Hover popup offers quick copy on superscripts and references, and jumping between named citations and their inspector entries.
Editing, transforms, and mass rename
[edit]Inline ref renaming (including nameless refs) with conflict detection and batch-queued saves.
Optional wikitext transforms: rename, dedupe, normalize ref markup, prefer {{r}} or <ref>, move refs inline↔LDR (all-inline, all-LDR, or threshold), sort reflist entries, keep copies vs dedupe, and rename nameless refs. Template support covers <ref>, self-closing <ref/>, {{r}} (including chains), and reflist refs= blocks.
Pick multiple naming parts (author/title/work/domain/year/full date/etc.), choose collision suffix styles, and control punctuation/diacritic handling. Generated renames feed back into the inspector’s pending changes for diff preview. Inspired by RefRenamer.
Excessive use of this feature may be considered WP:COSMETICBOT.
Citation insertion dropdown
[edit]Adds an Insert citation dropdown to WikiEditor's cites toolbar group for {{cite web}}, {{cite news}}, {{cite book}}, {{cite journal}}, {{cite AV media}}, and {{cite video game}}.
Each entry opens a compact dialog with editable parameter rows, add-more controls for names and parameters, optional <ref name="...">, and Citoid-powered auto-fill from supported source fields. The generated result is inserted directly into the active editor as a single-line <ref>{{cite ...}}</ref>.
Source checks
[edit]Marks CS1/CS2 style and surfaces Harv link/target issues, page-range anomalies, COinS metadata gaps, and sorting/duplicate problems (adapted from reviewsourcecheck/HarvErrors).
Internationalization
[edit]To help with translating the interface to more languages, or fixing a bunch of existing translations, visit Cite Forge on TranslateWiki.
See also
[edit]- Cite Unseen - user script that marks reliability and types of citations.
Credits
[edit]- License
- This project is licensed under the MIT license.
- Icons and assets
- Codex (MIT and CC BY 4.0) by Wikimedia Foundation
- 👁 GitHub icon
microsoft/vscode-codicons (MIT and CC BY 4.0) by Microsoft - 👁 GitHub icon
tabler/tabler-icons (MIT) by Paweł Kuna
- Inspired by
- QuickEditExt-Citations (MIT) by SuperGrey
- refOrganizer and upstream Reference Organizer (GNU GPL 3.0) by Kaniivel, SuperGrey, et al.
- ProveIt (CC BY-SA 3.0 and GPL 2.0) by ProveIt contributors
- RefRenamer (CC BY-SA 4.0) by Nardog
- Citation Style Marker (CC BY-SA 4.0) by BrandonXLF
- HarvErrors (CC BY-SA 4.0) by Ucucha
- reviewsourcecheck (CC BY-SA 4.0) by Lingzhi & Ucucha
- MOSNUM dates (CC BY-SA 4.0) by Ohconfucius & Vozhuo
- Used the following APIs
- MediaWiki Action API (GPL 2.0 or later) by Wikimedia Foundation
- Citoid (MIT) by Wikimedia Foundation
