Logo: Wikipedia Page Anatomy

Wikipedia Page Anatomy

Communautéit
fuzheado
wikipedia-page-anatomy

Navigate and understand the structure of a Wikipedia article — infoboxes, categories, references, templates, navboxes, redirects, disambiguation, and protection levels

Iwwersiicht

Editeurfuzheado
RepositoryWikipedia-AI-Skills
Skill-Nummwikipedia-page-anatomy
Stären
27
Forks
10
Matgeliwwert Dateien
5
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    fuzheado huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Wikipedia Page Anatomy an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikipedia-page-anatomy
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fuzheado/Wikipedia-AI-Skills.git /tmp/Wikipedia-AI-Skills
mkdir -p .claude/skills
cp -r /tmp/Wikipedia-AI-Skills/.claude/skills/wikipedia-page-anatomy .claude/skills/wikipedia-page-anatomy
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Wikipedia Page Anatomy an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Wikipedia Page Anatomy automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Wikipedia Page Anatomy net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

⚠️ User-Agent required: The search examples below use the Action API. All requests must include a descriptive User-Agent header or they will be blocked with HTTP 403 or 429. See the wikimedia-api-access skill for the correct format.

💡 Related skills for deeper analysis:

  • wikipedia-templates — Template taxonomy (infobox, navbox, maintenance, hatnote, citation) for classifying the templates found during structural analysis
  • wikimedia-wikitext — AST-based wikitext parsing with mwparserfromhell for extracting and manipulating page elements programmatically
  • wikipedia-citations — CS1/CS2 citation template reference for analyzing reference sections
  • wikipedia-categories — Category system rules and API patterns for deeper category inspection

SOP: Understanding Page Anatomy

A standard Wikipedia article follows this vertical layout, top to bottom:

┌─────────────────────────────────────┐
│  Lead section (unnamed)             │  ← First paragraph contains bold title and summary
├─────────────────────────────────────┤
│  {{Infobox person}}                 │  ← Right-aligned summary table
├─────────────────────────────────────┤
│  == Early life ==                   │  ← Body sections with `== Level 2 ==` headings
│  === Education ===                  │  ← Sub-sections with `=== Level 3 ===`
│  == Career ==                       │
├─────────────────────────────────────┤
│  == See also ==                     │  ← Bulleted list of related article links
│  == References ==                   │  ← `{{reflist}}` renders footnotes here
│  == Further reading ==              │
│  == External links ==               │
├─────────────────────────────────────┤
│  {{Navbox}}                         │  ← Navigation boxes
├─────────────────────────────────────┤
│  [[Category:Name]]                  │  ← Category bar
└─────────────────────────────────────┘

The lead is the unnamed section before the first == Heading ==. The first sentence states the subject in bold: '''Subject name'''. The lead summarizes the article in 2–4 paragraphs. No citations are required for facts restated from the body (WP:LEADCITE).

Body sections use == Level 2 == for top-level sections and === Level 3 === for subsections. The table of contents is auto-generated from these headings.

Appendices appear after the body, in order: See also → Notes → References → Further reading → External links. Only References is required; the others are optional.


SOP: Working with Infoboxes

An infobox is a right-aligned summary table at the top of an article that presents key facts in structured form. It is a template:

wikitext
{{Infobox person
| name        = Albert Einstein
| birth_date  = {{Birth date|1879|03|14}}
| known_for   = [[General relativity]]
}}

Common infobox types by topic:

Article TypeTemplate
Person{{Infobox person}}, {{Infobox scientist}}
Place{{Infobox settlement}}, {{Infobox country}}
Event{{Infobox event}}, {{Infobox military conflict}}
Media{{Infobox film}}, {{Infobox album}}, {{Infobox book}}
Organization{{Infobox company}}, {{Infobox university}}

Some infoboxes are backed by Lua modules (e.g., {{Infobox settlement}}). They contain {{#invoke:...}} in the template source.

How infoboxes differ from sidebars: Infoboxes summarize facts about the current page's subject and are right-aligned at the top. Sidebars are navigational — they list related pages within a topic area.

How to read infobox values:

  • Wikitext — fetch action=raw and parse with mwparserfromhell (see wikimedia-wikitext skill)
  • Parsoid HTML — REST API /v1/page/{title}/html and extract <table class="infobox">
  • Page props — action=query&prop=pageprops for the wikibase-item Q ID

💡 For programmatic extraction and modification, see the wikimedia-wikitext skill.


SOP: Reading and Using Categories

Categories group articles by topic and appear at the bottom of the page.

Syntax:

wikitext
[[Category:Category name]]               ← No sort key (sorted by article title)
[[Category:Category name|Sort key]]      ← With sort key for custom ordering

Sort key conventions:

  • Biographies: [[Category:American physicists|Einstein, Albert]] — sorts by last name
  • Institutions: [[Category:MIT| ]] — space sorts before letters

Category hierarchy: Categories form a tree. Each category page has [[Category:Parent category]] linking it to its parent. Query via:

action=query&prop=categories&titles=Albert_Einstein&format=json

To find parent categories of a category, query the category page itself:

action=query&prop=categories&titles=Category:American_physicists&format=json

Hidden categories are marked with __HIDDENCAT__ and do not appear in the visible category bar. They are used for maintenance tracking (e.g., Category:Articles with unsourced statements). Filter via API:

# Visible only
action=query&prop=categories&titles=Title&clshow=!hidden&format=json

# Hidden only
action=query&prop=categories&titles=Title&clshow=hidden&format=json

Wikipedia vs. Commons categories: These are independent systems. Wikipedia categories organize articles; Commons categories organize media files. A Wikipedia article may link to a Commons category via {{Commons category|Name}}.


SOP: Understanding References and Citations

Named references allow reusing a citation without duplicating content:

wikitext
Some text.<ref name="smith2020">{{cite book |last=Smith |title=...}}</ref>
Later text.<ref name="smith2020" />    ← Reuses the same footnote

The {{reflist}} tag renders all <ref> tags as a numbered list in the References section:

wikitext
== References ==
{{reflist|30em}}    ← 30em sets column width

Common citation templates:

TemplateBest ForKey Parameters
{{cite web}}Websitesurl, title, website, date, access-date
{{cite news}}Newspapersurl, title, newspaper, date, author
{{cite book}}Bookstitle, author, year, publisher, isbn
{{cite journal}}Academic paperstitle, author, journal, volume, pages, doi

Always use template-based citations over free-form <ref>text</ref>. Templates have consistent fields and enable bot-based metadata extraction.

Bare URLs (<ref>https://example.com</ref>) are discouraged per WP:BAREURL. Use {{cite web}} instead.

Identifiers in citations:

IDExampleWhere Found
DOI10.1000/xyz123Academic journals
PMID12345678Biomedical literature
ISBN978-0-262-52316-5Books
ISSN0040-165XJournals

Dead link detection: Look for the {{dead link}} template in wikitext, or check whether the page is in Category:All articles with dead external links.


SOP: Identifying and Reading Templates

Templates are reusable wiki pages transcluded via double braces:

wikitext
{{Template name}}
{{Template name|param1=value1|param2=value2}}

They live in the Template: namespace (NS 10). Shortcuts like {{cn}} resolve to Template:Cn.

Common maintenance templates:

TemplateWhat It SignalsLocation
{{cn}} / {{citation needed}}A claim needs a sourceAfter the statement
{{better source}}The source is weakAfter the citation
{{POV}}Article may not be neutralTop of article/section
{{expand section}}Section is too shortTop of section
{{dead link}}Citation URL no longer worksInside the <ref> tag
{{clarify}}Text is confusing or ambiguousAfter the passage
{{stub}}Article is very shortBottom of article

How to detect templates via API:

action=query&prop=templates&titles=Albert_Einstein&format=json

Returns all templates transcluded on the page, including infoboxes, navboxes, and maintenance templates.

Transclusion means the template content is not part of the page's raw wikitext — edits to the template update all pages that use it. Use action=parse or the REST API /html endpoint to see the fully rendered page.

💡 For safe, AST-based template manipulation, see the wikimedia-wikitext skill.


SOP: Recognizing Navigation Boxes

Navboxes are collapsible navigation templates at the very bottom of an article, below the appendices and above the categories:

┌─────────────────────────────────────────────────┐
│ ▼ [collapse] Part of a series on Physics         │
├─────────────────────────────────────────────────┤
│ Classical mechanics · Electromagnetism ·         │
│ Thermodynamics · Quantum mechanics · Relativity  │
└─────────────────────────────────────────────────┘

How they differ from other components:

ComponentPurposeLocation
InfoboxKey facts about THIS articleTop-right
NavboxLinks to RELATED articles in the same topicBottom
CategoryAutomatic grouping by topicBottom (after navboxes)

Detect navboxes via API: action=query&prop=templates&titles=Title — filter for templates with "navbox" in the name, or look for the navbox CSS class in rendered HTML.


SOP: Handling Redirects and Disambiguation

Redirects

A redirect page sends the reader to another article:

wikitext
#REDIRECT [[Target page]]

API resolution:

action=query&titles=Einstein&redirects=1&format=json

The response includes a redirects array mapping the source title to the target. The pages section contains the final destination.

Disambiguation Pages

A disambiguation page lists multiple articles sharing the same or similar title. Identified by the {{disambiguation}} template (or variants like {{geodis}}, {{hndis}}, {{schooldis}}).

API detection (preferred — REST API):

https://en.wikipedia.org/api/rest_v1/page/summary/Title

Check the type field in the JSON response: "type": "disambiguation" indicates a disambiguation page, "type": "standard" indicates a regular article. This is simpler than parsing categories and works across all language editions.

API detection (fallback — Action API):

action=query&prop=categories&titles=Title&format=json

Check if any category matches *disambiguation* (e.g., Category:Disambiguation pages).

Cross-lingual detection (when you only have the page title):

If you're working with interlanguage links from the Action API and don't want to make additional API calls, disambiguation pages can often be identified by known suffixes in the page title. This is useful for filtering language editions before fetching their content:

python
_DISAMBIG_PATTERNS = (
    '(disambiguation)',            # English
    '(egyértelműsítő lap)',        # Hungarian
    '(desambiguación)',            # Spanish
    '(Begriffsklärung)',           # German
    '(homonymie)',                 # French
    '(disambigua)',                # Italian
    '(消歧義)', '(消歧义)',         # Chinese
    '(曖昧さ回避)',                  # Japanese
    '(동음이의)', '(동음이의어)',      # Korean
    '(anlam ayrımı)',              # Turkish
    '(неоднозначность)',           # Russian
    '(توضيح)',                     # Arabic
    '(ابهام‌زدایی)',               # Persian
)

def is_disambiguation_title(title):
    return any(p in title for p in _DISAMBIG_PATTERNS)

When to follow vs. stop:

ScenarioAction
User provided a redirect titleFollow to the canonical page
User provided a disambiguation pageAsk which specific meaning, or list the options
Searching across redirectsUse redirects=1 in the API call

SOP: Checking Protection Levels and Page Status

Wikipedia uses padlock icons to indicate protection:

IconLevelWho Can EditTypical Reason
NoneOpenAll usersDefault
🛡️ GreySemi-protectedAutoconfirmed (4 days, 500 edits)Persistent vandalism
🔵 BlueExtended confirmed30 days, 500 editsDisputes, BLP concerns
🔴 RedFullAdministrators onlyLegal, edit wars

API check:

action=query&prop=info&inprop=protection&titles=Title&format=json

Response includes a protection array with type, level, and expiry.

Page existence check:

action=query&titles=Title&format=json
  • Exists: numeric pageid in the response
  • Missing: "missing": "" with negative pageid
  • Invalid: "invalid": ""

SOP: Accessing Page Data via API

TaskAPI MethodExample
Get raw wikitextaction=rawhttps://en.wikipedia.org/w/index.php?title=Albert_Einstein&action=raw
Get parsed HTMLaction=parseaction=parse&page=Albert_Einstein&prop=text&format=json
Get page info (protection, length, redirect status)prop=infoaction=query&prop=info&titles=Albert_Einstein&format=json
Get categoriesprop=categoriesaction=query&prop=categories&titles=Albert_Einstein&format=json
Get templates usedprop=templatesaction=query&prop=templates&titles=Albert_Einstein&format=json
Get links on pageprop=linksaction=query&prop=links&titles=Albert_Einstein&format=json
Resolve redirectredirects=1action=query&titles=Einstein&redirects=1&format=json
Get rendered HTML (REST)GET /v1/page/{title}/htmlhttps://en.wikipedia.org/api/rest_v1/page/Albert_Einstein/html

Relationship to Other Skills

  • wikipedia-en-biography-writing — This skill is a prerequisite: understanding page anatomy is necessary before drafting, editing, or auditing a biography.
  • wikipedia-talk-page — Complements this skill by covering the discussion side of a page.
  • wikipedia-edit-history — Complements this skill by covering the revision history side of a page.
  • wikimedia-wikitext — For programmatic parsing and manipulation of infoboxes, templates, and other page components.
  • wikimedia-api-access — The page anatomy operations rely on the Action API; defer to this skill for User-Agent, rate limiting, and error handling.
  • wikipedia-wikiprojects — WikiProjects assess articles and organize topic-area work; their banners appear on talk pages.

Tooling

🔧 Infobox Extractor (scripts/extract-infobox.sh)

Extract infobox field names and values from any Wikipedia article. Handles nested templates and multi-line parameters via brace-depth tracking.

bash
./scripts/extract-infobox.sh "Albert Einstein"
./scripts/extract-infobox.sh "Python (programming language)" --project fr.wikipedia
./scripts/extract-infobox.sh "Berlin" --json

🔧 Page Summary (scripts/page-summary.sh)

Fetches a compact structural overview of any article — infobox type, protection level, redirect/disambiguation status, visible and hidden categories, template count, and WikiProject assessment banners from the talk page.

bash
./scripts/page-summary.sh "Albert Einstein"
./scripts/page-summary.sh "Python (programming language)" --json

📚 Template Reference (references/template-reference.md)

Quick reference for common infobox templates (person, scientist, settlement, film, company, etc.), citation templates (cite web, cite book, cite journal), and maintenance templates ({{cn}}, {{POV}}, {{stub}}, etc.).

🐍 Wikitext Utilities (assets/wikitext_utils.py)

Python library used by the shell scripts. Provides fetch_wikitext() and extract_infobox() functions with proper brace-depth tracking.

🐍 Page Auditor (assets/page-audit.py)

Fetch a Wikipedia article and report on all its structural components: infobox type and parameters, visible and hidden categories, templates by category (infobox, navbox, maintenance), protection level, redirect/disambiguation status, WikiProject banners from the talk page, reference/citation count, and section outline.

bash
pip install requests   # required for this tool
python3 assets/page-audit.py "Albert Einstein"
python3 assets/page-audit.py "Python (programming language)" --project fr.wikipedia --json

Note: The shell scripts (extract-infobox.sh, page-summary.sh) and wikitext_utils.py use only Python standard library — no pip install needed. The page-audit.py requires requests.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Wikipedia Page Anatomy?

Navigate and understand the structure of a Wikipedia article — infoboxes, categories, references, templates, navboxes, redirects, disambiguation, and protection levels

Firwat Wikipedia Page Anatomy op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Wikipedia Page Anatomy besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Wikipedia Page Anatomy an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikipedia-page-anatomy an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Wikipedia Page Anatomy benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Wikipedia Page Anatomy benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Wikipedia Page Anatomy domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Wikipedia Page Anatomy gratis?

Jo. fuzheado huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇