Logo Mediawiki Page Navigation

Mediawiki Page Navigation

Cộng đồng
fuzheado
mediawiki-page-navigation

Build navigation systems in MediaWiki — menu bars, subpage hierarchies, breadcrumbs, tabs, and the template logic that powers them. Covers

Tổng quan

Nhà phát hànhfuzheado
Kho mãWikipedia-AI-Skills
Tên kỹ năngmediawiki-page-navigation
Sao
27
Bản fork
10
Tệp đi kèm
5
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được fuzheado công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Mediawiki Page Navigation trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/mediawiki-page-navigation
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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/mediawiki-page-navigation .claude/skills/mediawiki-page-navigation
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Mediawiki Page Navigation trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Mediawiki Page Navigation ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Mediawiki Page Navigation với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

⚠️ User-Agent required: The API examples below hit Wikimedia endpoints. All requests must include a descriptive User-Agent header. See the wikimedia-api-access skill for the correct format.

📖 Prerequisites: For general template syntax, parser functions, and magic words, see wikipedia-templates. For styling navigation elements (menus, tabs, buttons), see wikimedia-page-styling. For language-aware navigation links, see mediawiki-translate-extension.


Table of Contents

  1. Navigation Patterns Overview
  2. Page Hierarchy with Subpages
  3. The /Sub Template Pattern
  4. Menu Bars
  5. Dynamic Sub-Navigation with #titleparts
  6. Temporal Navigation (This Year / Next Year)
  7. Breadcrumbs
  8. Tab Navigation
  9. Highlighting the Current Page
  10. Table of Contents Control
  11. Combined Navigation + Hero Banner Pattern
  12. Testing and Debugging Navigation
  13. Reference Links

Navigation Patterns Overview

MediaWiki's subpage feature (/ in page titles) enables powerful hierarchical navigation patterns. Combined with template logic and parser functions, you can build:

PatternDescriptionExample
Horizontal menu barTop-of-page navigation linksAvoinGLAM/Main navigation
Subpage navigationAuto-generated links to parent/sibling/child pages`{{#titleparts: {{FULLPAGENAME}}
Dynamic sub-navConditionally loaded sub-menus per page/Sub template pattern
Temporal navYear-based navigation that auto-advances{{CURRENTYEAR}} + #ifexist
BreadcrumbsHierarchical "You are here" trailAvoinGLAM > Past activities
Tab navigationHorizontal tab bar for sub-pagesCommon on Commons
Inline TOC controlShow/hide table of contents__TOC__ / __NOTOC__

How Navigation Templates Work

A navigation template is typically a single template that every page in a project transcludes at the top. It:

  1. Generates a consistent navigation bar across all project pages
  2. Knows what page it's on via {{FULLPAGENAME}}, {{SUBPAGENAME}}, etc.
  3. Highlights the current active page in the menu
  4. Can load additional sub-navigation specific to each page or section
  5. Optionally includes a hero banner behind the navigation

Page Hierarchy with Subpages

MediaWiki allows hierarchical page organization using the subpage feature (forward slash in titles):

AvoinGLAM                         ← Parent page
AvoinGLAM/Past activities         ← Child page (subpage)
AvoinGLAM/Past activities/2023    ← Grandchild page (sub-subpage)

Magic Words for Subpage Hierarchy

Magic WordReturnsExample
{{FULLPAGENAME}}Full page title with namespaceAvoinGLAM/Past activities
{{FULLPAGENAMEE}}URL-encoded full titleAvoinGLAM/Past_activities
{{PAGENAME}}Page title without namespaceAvoinGLAM/Past activities
{{PAGENAMEE}}URL-encoded page nameAvoinGLAM/Past_activities
{{SUBPAGENAME}}Last segment after /Past activities
{{NAMESPACE}}Namespace name(Main) or Template
{{NAMESPACENUMBER}}Namespace number0 for main

Parsing the Hierarchy with #titleparts

The #titleparts parser function splits a title by / and returns specific segments:

{{#titleparts: AvoinGLAM/Past activities | 1 }}    → AvoinGLAM
{{#titleparts: AvoinGLAM/Past activities | 2 }}    → AvoinGLAM/Past activities
{{#titleparts: AvoinGLAM/Past activities | -1 }}   → AvoinGLAM  (last segment removed)
{{#titleparts: AvoinGLAM/Past activities | 2 | 2 }} → Past activities

Common pattern — get the project root:

wikitext
{{#titleparts: {{FULLPAGENAME}} | 1 }}

This extracts the top-level project name from any subpage.

Pattern — get the parent of the current page:

wikitext
{{#titleparts: {{FULLPAGENAME}} | -1 }}

This strips the last segment, giving you the parent page.


The /Sub Template Pattern

The /Sub pattern is a powerful extensibility mechanism. It lets sub-pages of a project inject additional navigation items without modifying the main navigation template.

How It Works

The main navigation template checks if a template named Project/Sub exists and transcludes it if so:

wikitext
{{#ifexist: Template:{{#titleparts: {{FULLPAGENAME}} | 2 }}/Sub
| {{ Template:{{#titleparts: {{FULLPAGENAME}} | 2 }}/Sub }}
}}

For a page at AvoinGLAM/Past activities, this evaluates to:

wikitext
{{#ifexist: Template:AvoinGLAM/Sub
| {{ Template:AvoinGLAM/Sub }}
}}

Example /Sub Template

wikitext
<!-- Template:AvoinGLAM/Past_activities/Sub -->
* [[Special:MyLanguage/AvoinGLAM/Past activities/2023|2023]]
* [[Special:MyLanguage/AvoinGLAM/Past activities/2022|2022]]
* [[Special:MyLanguage/AvoinGLAM/Past activities/2021|2021]]

This would add year-specific links to the navigation bar only when viewing pages under AvoinGLAM/Past activities/.

Context-Aware Sub Navigation

You can also check for a sub-navigation specific to the current menu section:

wikitext
{{#ifexist: Template:Wiki Loves Living Heritage/{{{1}}}/Sub
| {{Template:Wiki Loves Living Heritage/{{{1}}}/Sub}}
}}

Where {{{1}}} is a parameter passed to the navigation template indicating which menu section is active.

Full Pattern from AvoinGLAM

wikitext
{{#ifexist: Template:{{#titleparts: {{FULLPAGENAME}} | 2 }}/Sub
| {{ Template:{{#titleparts: {{FULLPAGENAME}} | 2 }}/Sub}}
}}{{#ifexist: Template:Wiki Loves Living Heritage/{{{1}}}/Sub
| {{Template:Wiki Loves Living Heritage/{{{1}}}/Sub}}
}}

This loads two levels of sub-navigation:

  1. Project-level sub-nav (AvoinGLAM/Sub, AvoinGLAM/Past activities/Sub, etc.)
  2. Section-level sub-nav (Wiki Loves Living Heritage sub-menus)

Menu Bars

Basic Menu Bar Structure (Wikitext)

A horizontal menu is simply a list with a CSS class:

wikitext
<div class="menu">
* [[Special:MyLanguage/Project|Home]]
* [[Special:MyLanguage/Project/This year|This year]]
* [[Special:MyLanguage/Project/Past activities|Past activities]]
* [[Special:MyLanguage/Project/Community|Community]]
</div>

The CSS (loaded via TemplateStyles) converts the bullet list into a horizontal flexbox (see wikimedia-page-styling skill).

Menu with Dynamic Items

wikitext
<div class="menu">
* [[Special:MyLanguage/AvoinGLAM|AvoinGLAM]]
* [[Special:MyLanguage/AvoinGLAM/{{CURRENTYEAR}}|This year]]
{{#ifexist: AvoinGLAM/{{#expr: {{CURRENTYEAR}} + 1 }}
| * [[Special:MyLanguage/AvoinGLAM/{{#expr: {{CURRENTYEAR}} + 1 }}|Next year]]
}}
* [[Special:MyLanguage/AvoinGLAM/Past activities|Past activities]]
</div>

Menu with Active Page Highlighting

MediaWiki automatically adds the mw-selflink class to links pointing to the current page:

css
.menu a.mw-selflink {
    color: #0E65C0;  /* Highlight color for active page */
}

Using Special:MyLanguage/ for i18n Menus

Special:MyLanguage/ is a redirect that follows the user's interface language preference:

wikitext
* [[Special:MyLanguage/AvoinGLAM|AvoinGLAM]]
* [[Special:MyLanguage/AvoinGLAM/Past activities|Past activities]]

This ensures users are directed to the translated version of the page if it exists.

Nested Menu Items (Sub-Menus)

Sub-menus can be handled via the /Sub template pattern or by nesting lists in the menu itself:

wikitext
<div class="menu">
* Main section
** [[Project/Subpage 1|Item 1]]
** [[Project/Subpage 2|Item 2]]
</div>

The CSS can style nested lists as dropdowns or expandable sub-menus.

Menu Parameters in Templates

A navigation template can accept parameters to customize the menu:

wikitext
{{Project/Navigation
  |menu     = activities    ← Which menu section is active
  |image    = File:hero.jpg
  |subtitle = Past events
}}

Dynamic Sub-Navigation with #titleparts

How #titleparts Works on the Current Page

wikitext
{{FULLPAGENAME}}                              → "AvoinGLAM/Past activities"
{{#titleparts: {{FULLPAGENAME}} | 1 }}         → "AvoinGLAM"           (root)
{{#titleparts: {{FULLPAGENAME}} | -1 }}        → "AvoinGLAM"           (parent, stripped last segment)
{{#titleparts: {{FULLPAGENAME}} | 2 | 2 }}     → "Past activities"     (second segment)

Pattern: Build a Link to the Parent Page

wikitext
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}|Up to parent]]

Pattern: Build Links to Sibling Pages

wikitext
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Page1|Page 1]]
[[{{#titleparts: {{FULLPAGENAME}} | -1 }}/Page2|Page 2]]

Pattern: Detect and Link to Sub-Pages

wikitext
{{#ifexist: {{FULLPAGENAME}}/Detail
| [[{{FULLPAGENAME}}/Detail|Detailed view]]
}}

Pattern: Recursive Parent Link Chain (Breadcrumbs)

wikitext
{{#if: {{#titleparts: {{FULLPAGENAME}} | -1 }}  ← Only show if there IS a parent
| [[{{#titleparts: {{FULLPAGENAME}} | -1 }}|← Back to {{#titleparts: {{FULLPAGENAME}} | -1 }}]]
}}

Temporal Navigation (This Year / Next Year)

A common pattern on Meta project pages is auto-advancing year-based navigation.

This Year Link

wikitext
[[Special:MyLanguage/AvoinGLAM/{{CURRENTYEAR}}|This year]]

This always points to the current year's subpage.

Next Year Link (Conditional)

wikitext
{{#ifexist: AvoinGLAM/{{#expr: {{CURRENTYEAR}} + 1 }}
| * [[Special:MyLanguage/AvoinGLAM/{{#expr: {{CURRENTYEAR}} + 1 }}|Next year]]
}}

This only shows a "Next year" link if that page already exists (planning ahead).

Year Range Pattern

For activity indexes spanning multiple years:

wikitext
{{#ifexist: AvoinGLAM/{{CURRENTYEAR}}
| [[AvoinGLAM/{{CURRENTYEAR}}|{{CURRENTYEAR}}]]
}}{{#ifexist: AvoinGLAM/{{#expr: {{CURRENTYEAR}} - 1 }}
| · [[AvoinGLAM/{{#expr: {{CURRENTYEAR}} - 1 }}|{{#expr: {{CURRENTYEAR}} - 1 }}]]
}}

Breadcrumbs

Breadcrumbs show the user's place in the page hierarchy.

Simple Breadcrumb Template

wikitext
<!-- Template:Project/Breadcrumb -->
<div class="breadcrumb">
[[{{#titleparts: {{FULLPAGENAME}} | 1 }}|{{#titleparts: {{FULLPAGENAME}} | 1 }}]]
{{#if:{{#titleparts: {{FULLPAGENAME}} | 2 | 2 }}|
  › [[{{#titleparts: {{FULLPAGENAME}} | 2 }}|{{#titleparts: {{FULLPAGENAME}} | 2 | 2 }}]]
}}
{{#if:{{#titleparts: {{FULLPAGENAME}} | 3 | 3 }}|
  › {{#titleparts: {{FULLPAGENAME}} | 3 | 3 }}
}}
</div>

For AvoinGLAM/Past activities/2023, this renders:

AvoinGLAM › Past activities › 2023

CSS for Breadcrumbs

css
.breadcrumb {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0.5em 0;
    padding: 0;
}
.breadcrumb a {
    color: #0E65C0;
    text-decoration: none;
}

Tab Navigation

Tab navigation creates a horizontal bar of tabs for switching between sub-pages.

Wikitext Structure

wikitext
<div class="tabs">
{{#ifeq: {{SUBPAGENAME}} | Overview
  | <span class="tab active">Overview</span>
  | [[Project/{{BASEPAGENAME}}/Overview|<span class="tab">Overview</span>]]
}}
{{#ifeq: {{SUBPAGENAME}} | Details
  | <span class="tab active">Details</span>
  | [[Project/{{BASEPAGENAME}}/Details|<span class="tab">Details</span>]]
}}
{{#ifeq: {{SUBPAGENAME}} | History
  | <span class="tab active">History</span>
  | [[Project/{{BASEPAGENAME}}/History|<span class="tab">History</span>]]
}}
</div>

CSS for Tabs

css
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #0E65C0;
    margin: 1rem 0;
}

.tab {
    padding: 0.5rem 1.5rem;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    color: #666;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    transition: 0.2s;
}

.tab.active {
    background: #0E65C0;
    color: white;
}

.tab:hover:not(.active) {
    background: #f1f4f6;
}

Highlighting the Current Page

MediaWiki automatically adds mw-selflink to the link pointing to the current page. This can be styled:

css
.menu a.mw-selflink {
    color: #0E65C0;
    font-weight: bold;
}

For custom navigation not using wiki links, use #ifeq to check the page name:

wikitext
{{#ifeq: {{FULLPAGENAME}} | AvoinGLAM/Past activities
  | <strong>Past activities</strong>
  | [[AvoinGLAM/Past activities|Past activities]]
}}

Or check the subpage name:

wikitext
{{#ifeq: {{SUBPAGENAME}} | Past activities
  | <span class="active">Past activities</span>
  | [[Project/Past activities|Past activities]]
}}

Table of Contents Control

TOC Magic Words

WordEffect
__TOC__Insert TOC at this exact position
__NOTOC__Hide the TOC entirely
__FORCETOC__Force TOC to appear before first heading

Toggle TOC via Template Parameter

The AvoinGLAM navigation template lets pages decide whether to show the TOC:

wikitext
{{#ifeq: {{{TOC|}}}|Show|__TOC__|__NOTOC__}}

Usage on the page:

wikitext
{{Project/Navigation|TOC=Show}}

This defaults to hiding the TOC (cleaner look for visually rich pages) but allows individual pages to opt-in.


Combined Navigation + Hero Banner Pattern

The most advanced pattern combines a hero banner (full-width image with overlaid text) with a navigation menu bar below it. This is what {{AvoinGLAM/Main navigation}} does.

Template Structure

wikitext
<templatestyles src="Project/style.css" />

{{#tag:div
|<!-- Full-width hero image -->
{{#tag:div
|[[{{{image|File:default.jpg}}}|1500px]]
|class=mainimage
}}
<!-- Title and metadata overlaid on the image -->
<div class="header">
  <div class="bannertitle">{{{title|}}}</div>
  <div class="bannerbody">{{{subtitle|}}}</div>
  <div class="bannertime">{{{startdate|}}} {{{location|}}}</div>
</div>
<!-- Invisible clickable link over the whole banner -->
{{#tag:span|[[File:Pix.gif|link={{{eventpage|}}}]]|class=emptylink}}
|class=banner
}}

<!-- Navigation menu below the banner -->
<div class="menu">
* [[Special:MyLanguage/Project|Home]]
* [[Special:MyLanguage/Project/Past activities|Past activities]]
{{#ifexist: Template:{{#titleparts: {{FULLPAGENAME}} | 2 }}/Sub
| {{Template:{{#titleparts: {{FULLPAGENAME}} | 2 }}/Sub}}
}}
</div>

Parameters for the Combined Template

ParameterPurposeExample
imageHero background imageFile:banner.jpg
titleLarge overlay titleAvoinGLAM
subtitleSmaller subtitlePast activities
startdate / enddateDate badge display2024-05-06
locationEvent locationHelsinki
eventpageLink target of the bannerProject/Event
classImage position classtop, person
TOCShow TOC toggleShow
1 (positional)Active menu section nameactivities

Testing and Debugging Navigation

Manual Tests

TestWhat to Check
Root pageDoes the menu show all top-level items? Is the current page highlighted?
SubpageDoes the subpage inherit the same menu? Is /Sub template loaded if it exists?
Non-existent pageDoes #ifexist correctly hide conditional links?
Year rolloverDoes {{CURRENTYEAR}} + 1 link only show when the page exists?
Language variantDo Special:MyLanguage/ links resolve correctly?

Debugging with Parse API

bash
# See what the fully expanded navigation template produces
curl -s "https://meta.wikimedia.org/w/api.php?action=expandtemplates&text={{:AvoinGLAM/Past_activities}}&prop=wikitext&format=json" \
  -H "User-Agent: MyTool/1.0"

Checking Template Transclusion

bash
# Verify all templates used on the page (including sub-nav templates)
curl -s "https://meta.wikimedia.org/w/api.php?action=query&prop=templates&titles=AvoinGLAM/Past%20activities&format=json" \
  -H "User-Agent: MyTool/1.0"

Reference Links

ResourceURL
MediaWiki subpagesmediawiki.org/wiki/Help:Subpages
#titleparts parser functionmediawiki.org/wiki/Help:Magic_words#titleparts
Special:MyLanguagemediawiki.org/wiki/Help:Special_MyLanguage
{{CURRENTYEAR}} and other variablesmediawiki.org/wiki/Help:Magic_words#Date_and_time
Template transclusion APImediawiki.org/wiki/API:Properties#templates
Skill: Templateswikipedia-templates
Skill: Page stylingwikimedia-page-styling
Skill: Translate extensionmediawiki-translate-extension
Skill: API accesswikimedia-api-access
Skill: Codex componentswikimedia-codex

Tooling

This skill includes helper scripts, reference docs, and template code.

🔧 Navigation Inspector (scripts/navigation-inspector.sh)

Analyze the navigation structure of a page — menu templates, subpage hierarchy, /Sub templates, link tree:

bash
# Show navigation structure for a page
./scripts/navigation-inspector.sh "AvoinGLAM/Past activities" --wiki meta

# Show full link tree (all linked pages)
./scripts/navigation-inspector.sh "Project/Page" --links

# Show subpage hierarchy
./scripts/navigation-inspector.sh "Project/Page/Subpage" --hierarchy

🔧 Expand Navigation Template (scripts/expand-navigation.sh)

Expand a navigation template call to see the fully rendered wikitext output:

bash
# Expand with parameters
./scripts/expand-navigation.sh "Project/Navigation" "image=File:hero.jpg|title=My Project"

# Expand with the current page context
./scripts/expand-navigation.sh "Project/Navigation" --page "Project/Subpage"

📚 Navigation Pattern Catalog (references/navigation-patterns.md)

Complete catalog of navigation patterns with ready-to-use wikitext:

  • Horizontal menu bar (with active state)
  • Vertical sidebar menu
  • Tab navigation
  • Dropdown sub-menus
  • Breadcrumb trails
  • Year-based temporal navigation
  • Language-switching menu
  • Pagination (page numbers)
  • Search + filter navigation
  • Multi-level accordion

🐍 Navigation Analyzer (assets/navigation_analyzer.py)

Given a page, trace its navigation template hierarchy, subpage structure, and link tree:

bash
# Full analysis of a page's navigation
python3 assets/navigation_analyzer.py "AvoinGLAM/Past activities" --wiki meta

# Visualize the page hierarchy tree
python3 assets/navigation_analyzer.py "Project" --tree

# Show conditional navigation (what #ifexist would match)
python3 assets/navigation_analyzer.py "Project/Subpage" --conditionals

🧪 Test Suite (tests/)

Test scripts for verifying navigation template logic:

bash
# Run all navigation tests
python3 -m pytest tests/

# Test #titleparts parsing patterns
python3 -m pytest tests/test_titleparts.py

# Test temporal navigation patterns
python3 -m pytest tests/test_temporal_nav.py

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Mediawiki Page Navigation làm được gì?

Build navigation systems in MediaWiki — menu bars, subpage hierarchies, breadcrumbs, tabs, and the template logic that powers them. Covers

Vì sao nên dùng Mediawiki Page Navigation trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Mediawiki Page Navigation là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Mediawiki Page Navigation trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/mediawiki-page-navigation. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Mediawiki Page Navigation?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Mediawiki Page Navigation với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Mediawiki Page Navigation với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Mediawiki Page Navigation có miễn phí không?

Có. Kỹ năng này được fuzheado phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇