wikipedia-templates

Explain Wikipedia and MediaWiki template syntax, parser functions, and Lua modules.

15|6|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/fuzheado/Wikipedia-AI-Skills --skill wikipedia-templates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wikipedia-templates
Source: https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikipedia-templates
Command: npx skills add https://github.com/fuzheado/Wikipedia-AI-Skills --skill wikipedia-templates

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mwparserfromhell, Lua, Wikimedia API, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on Wikipedia and MediaWiki template syntax, parser functions, magic words, and Lua modules, enabling users to create, design, and understand templates effectively.

Core Features & Use Cases

  • Template Syntax: Learn and apply template syntax, including transclusion, substitution, and parameter handling.
  • Parser Functions: Understand and utilize parser functions for conditional logic, data processing, and string manipulation.
  • Magic Words: Discover and use special variables and control switches in templates.
  • Lua Modules: Explore how Lua modules enhance template functionality for complex tasks.
  • Use Case: If you need to create a custom navigation template for a Wikipedia article or understand how infobox templates work, this Skill is invaluable.

Quick Start

Load the 'wikipedia-templates' skill and use the provided scripts to inspect or expand templates.

Frequently Asked Questions about wikipedia-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom Wikipedia infobox template with parser functions?

Wikipedia infobox templates use MediaWiki template syntax for transclusion and parameter handling, combined with parser functions for conditional logic and data processing to structure the displayed information. Lua modules can handle complex data tasks.

What are magic words and how do they work in MediaWiki templates?

Magic words in MediaWiki templates are special variables and control switches that return dynamic values or alter page rendering behavior. They enable functions like displaying the current time or retrieving page names within template structures.

When should I use Lua modules instead of standard Wikipedia template syntax?

Use Lua modules instead of standard Wikipedia template syntax when you need to perform complex computational tasks, advanced string manipulation, or recursive data processing that exceeds the capabilities of nested parser functions and magic words.

Does the wikipedia-templates skill require knowledge of the Lua programming language?

Yes, the wikipedia-templates skill requires knowledge of the Lua programming language and the MediaWiki parser to effectively understand, create, and troubleshoot templates and their associated Lua module components.

How do I troubleshoot broken Wikipedia templates using mwparserfromhell?

Troubleshoot broken Wikipedia templates by loading the skill's provided scripts to inspect or expand templates, utilizing the mwparserfromhell dependency to parse wikitext and identify syntax errors in parser functions or transclusion parameters.

What is the difference between template transclusion and substitution in MediaWiki?

Transclusion dynamically includes a template's content onto a page at render time, while substitution permanently replaces the template call with its wikitext output upon saving. The skill covers both parameter handling mechanisms.