Skill: kongyo2/mediawiki-wikitext (version 0.1.0)

--- name: mediawiki-wikitext description: MediaWiki Wikitext markup language for Wikipedia and wiki-based sites. Use when creating or editing wiki articles, generating wikitext content, working with wiki tables/templates/references, or converting content to wikitext format. Triggers on requests mentioning Wikipedia, MediaWiki, wikitext, wiki markup, or wiki article creation. --- # MediaWiki Wikitext Generate and edit content using MediaWiki's wikitext markup language. ## Quick Reference ### Text Formatting ```wikitext ''italic'' '''bold''' '''''bold italic''''' <code>inline code</code> <sub>subscript</sub> <sup>superscript</sup> 
strikethrough
 <u>underline</u> ``` ### Headings (line start only, avoid level 1) ```wikitext == Level 2 == === Level 3 === ==== Level 4 ==== ``` ### Lists ```wikitext * Bullet item # Numbered item ; Term ** Nested ## Nested : Definition ``` ### Links ```wikitext [[Page Name]] Internal link [[Page Name|Display Text]] With display text [[Page Name#Section]] Section link [https://url Display Text] External link [[File:image.jpg|thumb|Caption]] Image [[Category:Name]] Category (place at end) ``` ### Table ```wikitext {| class="wikitable" |+ Caption |- ! Header 1 !! Header 2 |- | Cell 1 || Cell 2 |} ``` ### Templates & Variables ```wikitext {{TemplateName}} Basic call {{TemplateName|arg1|name=value}} With arguments {{{parameter|default}}} Parameter (in template) {{PAGENAME}} {{CURRENTYEAR}} Magic words ``` ### References ```wikitext Text<ref>Citation here</ref> <ref name="id">Citation</ref> Named reference <ref name="id" /> Reuse reference {{Reflist}} Display footnotes ``` ### Special Tags ```wikitext <nowiki>[[escaped]]</nowiki> Disable markup <pre>preformatted block</pre> Preformatted (no markup) <syntaxhighlight lang="python"> Code highlighting code here </syntaxhighlight> <math>x^2 + y^2 = z^2</math> LaTeX math <!-- comment --> Comment (hidden) ---- Horizontal rule #REDIRECT [[Target Page]] Redirect (first line only) ``` ### Magic Words ```wikitext __NOTOC__ Hide table of contents __TOC__ Position TOC here __NOEDITSECTION__ Hide section edit links ``` ## Common Patterns ### Article Structure ```wikitext {{Infobox Type | name = Example | image = Example.jpg }} '''Article Title''' is a brief introduction. == Section == Content with citation<ref>Source</ref>. === Subsection === More content. == See also == * [[Related Article]] == References == {{Reflist}} == External links == * [https://example.com Official site] {{DEFAULTSORT:Sort Key}} [[Category:Category Name]] ``` ### Template Definition ```wikitext <noinclude>{{Documentation}}</noinclude><includeonly> {| class="wikitable" ! {{{title|Default Title}}} |- | {{{content|No content provided}}} {{#if:{{{footer|}}}| {{!}}- {{!}} {{{footer}}} }} |} </includeonly> ``` ## Key Syntax Rules 1. **Headings**: Use `==` to `======`; don't use `=` (reserved for page title) 2. **Line-start markup**: Lists (`*#;:`), headings, tables (`{|`) must start at line beginning 3. **Closing tags**: Close heading equals on same line; no text after closing `==` 4. **Blank lines**: Create paragraph breaks; single newlines are ignored 5. **Pipes in templates**: Use `{{!}}` for literal `|` inside templates 6. **Escaping**: Use `<nowiki>` to escape markup; `&amp;` for `&`, `&lt;` for `<` ## Resources For detailed syntax, see: - **references/syntax.md**: Complete markup reference with all options - **references/templates.md**: Template and parser function details - **assets/snippets.yaml**: Editor snippets for common patterns

path: assets/snippets.yaml
content: # MediaWiki Wikitext Snippets
# For VS Code and compatible editors

---
# Headings
h2:
  prefix: '@h2'
  body: "== ${1:Heading} ==\n"
  description: Level 2 heading

h3:
  prefix: '@h3'
  body: "=== ${1:Heading} ===\n"
  description: Level 3 heading

h4:
  prefix: '@h4'
  body: "==== ${1:Heading} ====\n"
  description: Level 4 heading

# Text formatting
bold:
  prefix: '@bold'
  body: "'''${1:text}'''"
  description: Bold text

italic:
  prefix: '@italic'
  body: "''${1:text}''"
  description: Italic text

# Links
link:
  prefix: '@link'
  body: '[[${1:Page}]]'
  description: Internal link

linkd:
  prefix: '@linkd'
  body: '[[${1:Page}|${2:Display}]]'
  description: Link with display text

elink:
  prefix: '@elink'
  body: '[${1:https://} ${2:Text}]'
  description: External link

file:
  prefix: '@file'
  body: '[[File:${1:name.jpg}|thumb|${2:Caption}]]'
  description: Image/file

cat:
  prefix: '@cat'
  body: '[[Category:${1:Name}]]'
  description: Category

# Table
table:
  prefix: '@table'
  body: |
    {| class="wikitable"
    |+ ${1:Caption}
    |-
    ! ${2:Header1} !! ${3:Header2}
    |-
    | ${4:Cell1} || ${5:Cell2}
    |}
  description: Basic table

tr:
  prefix: '@tr'
  body: |
    |-
    | ${1} || ${2}
  description: Table row

# References
ref:
  prefix: '@ref'
  body: '<ref>${1:Citation}</ref>'
  description: Reference

refn:
  prefix: '@refn'
  body: '<ref name="${1:id}">${2:Citation}</ref>'
  description: Named reference

refr:
  prefix: '@refr'
  body: '<ref name="${1:id}" />'
  description: Reference reuse

reflist:
  prefix: '@reflist'
  body: |
    == References ==
    {{Reflist}}
  description: References section

# Templates
tpl:
  prefix: '@tpl'
  body: '{{${1:Template}}}'
  description: Template call

tplp:
  prefix: '@tplp'
  body: '{{${1:Template}|${2:param}=${3:value}}}'
  description: Template with params

infobox:
  prefix: '@infobox'
  body: |
    {{Infobox ${1:type}
    | name = ${2}
    | image = ${3}
    }}
  description: Infobox

# Code
code:
  prefix: '@code'
  body: |
    <syntaxhighlight lang="${1:python}">
    ${2:code}
    </syntaxhighlight>
  description: Syntax highlight block

codei:
  prefix: '@codei'
  body: '<code>${1:code}</code>'
  description: Inline code

nowiki:
  prefix: '@nowiki'
  body: '<nowiki>${1:text}</nowiki>'
  description: Escape markup

pre:
  prefix: '@pre'
  body: |
    <pre>
    ${1:text}
    </pre>
  description: Preformatted block

math:
  prefix: '@math'
  body: '<math>${1:formula}</math>'
  description: Math formula

# Comments
comment:
  prefix: '@comment'
  body: '<!-- ${1:comment} -->'
  description: Comment

todo:
  prefix: '@todo'
  body: '<!-- TODO: ${1:task} -->'
  description: TODO comment

# Magic words
notoc:
  prefix: '@notoc'
  body: '__NOTOC__'
  description: Hide TOC

toc:
  prefix: '@toc'
  body: '__TOC__'
  description: TOC position

# Lists
ul:
  prefix: '@ul'
  body: |
    * ${1:Item 1}
    * ${2:Item 2}
    * ${3:Item 3}
  description: Bullet list

ol:
  prefix: '@ol'
  body: |
    # ${1:Item 1}
    # ${2:Item 2}
    # ${3:Item 3}
  description: Numbered list

dl:
  prefix: '@dl'
  body: |
    ; ${1:Term}
    : ${2:Definition}
  description: Definition list

# Structure
redirect:
  prefix: '@redirect'
  body: '#REDIRECT [[${1:Target}]]'
  description: Redirect

article:
  prefix: '@article'
  body: |
    {{Infobox
    | name = ${1:Name}
    }}
    
    '''${2:Title}''' is ${3:description}.
    
    == Overview ==
    ${4:Content}
    
    == References ==
    {{Reflist}}
    
    [[Category:${5:Category}]]
  description: Article template

hr:
  prefix: '@hr'
  body: '----'
  description: Horizontal rule

br:
  prefix: '@br'
  body: '<br />'
  description: Line break

sort:
  prefix: '@sort'
  body: '{{DEFAULTSORT:${1:Key}}}'
  description: Default sort key


path: references/syntax.md
content: # MediaWiki Wikitext Syntax Reference

Complete syntax reference for MediaWiki wikitext markup.

## Text Formatting (Inline)

| Syntax | Result | Notes |
|--------|--------|-------|
| `''text''` | *italic* | Two single quotes |
| `'''text'''` | **bold** | Three single quotes |
| `'''''text'''''` | ***bold italic*** | Five single quotes |
| `<code>text</code>` | `monospace` | Inline code |
| `<var>x</var>` | Variable style | |
| `<kbd>Ctrl</kbd>` | Keyboard input | |
| `<samp>output</samp>` | Sample output | |
| `<sub>2</sub>` | Subscript | H₂O |
| `<sup>2</sup>` | Superscript | x² |
| `
text
` | ~~strikethrough~~ | |
| `<del>text</del>` | Deleted text | Semantic |
| `<ins>text</ins>` | Inserted text | Often underlined |
| `<u>text</u>` | Underline | |
| `<small>text</small>` | Small text | |
| `<big>text</big>` | Large text | Deprecated |

## Headings

```wikitext
= Level 1 =      (Don't use - reserved for page title)
== Level 2 ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
====== Level 6 ======
```

**Rules:**
- Must start at line beginning
- No text after closing equals on same line
- 4+ headings auto-generate TOC (unless `__NOTOC__`)
- Spaces around heading text are optional but recommended

## Lists

### Unordered (Bullet) Lists
```wikitext
* Item 1
* Item 2
** Nested item 2.1
** Nested item 2.2
*** Deeper nesting
* Item 3
```

### Ordered (Numbered) Lists
```wikitext
# First item
# Second item
## Sub-item 2.1
## Sub-item 2.2
### Sub-sub-item
# Third item
```

### Definition Lists
```wikitext
; Term 1
: Definition 1
; Term 2
: Definition 2a
: Definition 2b
```

### Mixed Lists
```wikitext
# Numbered item
#* Bullet under numbered
#* Another bullet
# Next numbered
#: Definition-style continuation
```

### Indentation
```wikitext
: Single indent
:: Double indent
::: Triple indent
```

**Note:** List markers must be at line start. Blank lines end the list.

## Links

### Internal Links
```wikitext
[[Page Name]]
[[Page Name|Display Text]]
[[Page Name#Section]]
[[Page Name#Section|Display Text]]
[[Namespace:Page Name]]
[[/Subpage]]
[[../Sibling Page]]
```

### External Links
```wikitext
[https://example.com]                  Numbered link [1]
[https://example.com Display Text]     Named link
https://example.com                    Auto-linked
```

### Special Links
```wikitext
[[File:Image.jpg]]                     Embed image
[[File:Image.jpg|thumb|Caption]]       Thumbnail with caption
[[File:Image.jpg|thumb|left|200px|Caption]]
[[Media:File.pdf]]                     Direct file link
[[Category:Category Name]]             Add to category
[[:Category:Category Name]]            Link to category (no add)
[[Special:RecentChanges]]              Special page
```

### Interwiki Links
```wikitext
[[en:English Article]]                 Language link
[[wikt:word]]                          Wiktionary
[[commons:File:Image.jpg]]             Wikimedia Commons
```

## Images

### Basic Syntax
```wikitext
[[File:Example.jpg|options|caption]]
```

### Image Options

| Option | Description |
|--------|-------------|
| `thumb` | Thumbnail (default right-aligned) |
| `frame` | Framed, no resize |
| `frameless` | Thumbnail without frame |
| `border` | Thin border |
| `right`, `left`, `center`, `none` | Alignment |
| `200px` | Width |
| `x100px` | Height |
| `200x100px` | Max dimensions |
| `upright` | Smart scaling for tall images |
| `upright=0.5` | Custom ratio |
| `link=Page` | Custom link target |
| `link=` | No link |
| `alt=Text` | Alt text for accessibility |

### Gallery
```wikitext
<gallery>
File:Image1.jpg|Caption 1
File:Image2.jpg|Caption 2
</gallery>

<gallery mode="packed" heights="150">
File:Image1.jpg
File:Image2.jpg
</gallery>
```

## Tables

### Basic Structure
```wikitext
{| class="wikitable"
|+ Caption
|-
! Header 1 !! Header 2 !! Header 3
|-
| Cell 1 || Cell 2 || Cell 3
|-
| Cell 4 || Cell 5 || Cell 6
|}
```

### Table Elements

| Markup | Location | Meaning |
|--------|----------|---------|
| `{|` | Start | Table start |
| `|}` | End | Table end |
| `|+` | After `{|` | Caption |
| `|-` | Row | Row separator |
| `!` | Cell | Header cell |
| `!!` | Cell | Header cell separator (same row) |
| `|` | Cell | Data cell |
| `||` | Cell | Data cell separator (same row) |

### Cell Attributes
```wikitext
| style="background:#fcc" | Red background
| colspan="2" | Spans 2 columns
| rowspan="3" | Spans 3 rows
! scope="col" | Column header
! scope="row" | Row header
```

### Sortable Table
```wikitext
{| class="wikitable sortable"
|-
! Name !! Value
|-
| Alpha || 1
| Beta || 2
|}
```

## References

### Basic Citation
```wikitext
Statement<ref>Source information</ref>

== References ==
{{Reflist}}
```

### Named References
```wikitext
First use<ref name="smith2020">Smith, 2020, p. 42</ref>
Second use<ref name="smith2020" />
```

### Grouped References
```wikitext
Note<ref group="note">Explanatory note</ref>
Source<ref>Regular citation</ref>

== Notes ==
{{Reflist|group="note"}}

== References ==
{{Reflist}}
```

## Special Tags

### nowiki (Escape Markup)
```wikitext
<nowiki>[[Not a link]]</nowiki>
<<nowiki/>nowiki>   Outputs: <nowiki>
```

### pre (Preformatted)
```wikitext
<pre>
Preformatted text
  Whitespace preserved
  '''Markup not processed'''
</pre>
```

### syntaxhighlight (Code)
```wikitext
<syntaxhighlight lang="python">
def hello():
    print("Hello")
</syntaxhighlight>

<syntaxhighlight lang="python" line="1" start="10">
# Line numbers starting at 10
</syntaxhighlight>
```

Supported languages: python, javascript, php, java, c, cpp, csharp, ruby, perl, sql, xml, html, css, json, yaml, bash, etc.

### math (LaTeX)
```wikitext
Inline: <math>E = mc^2</math>
Block: <math display="block">\sum_{i=1}^n i = \frac{n(n+1)}{2}</math>
Chemistry: <chem>H2O</chem>
```

### Transclusion Control
```wikitext
<includeonly>Only when transcluded</includeonly>
<noinclude>Only on template page itself</noinclude>
<onlyinclude>Only this part is transcluded</onlyinclude>
```

## HTML Entities

| Entity | Character | Description |
|--------|-----------|-------------|
| `&amp;` | & | Ampersand |
| `&lt;` | < | Less than |
| `&gt;` | > | Greater than |
| `&nbsp;` | (space) | Non-breaking space |
| `&mdash;` | — | Em dash |
| `&ndash;` | – | En dash |
| `&rarr;` | → | Right arrow |
| `&larr;` | ← | Left arrow |
| `&copy;` | © | Copyright |
| `&euro;` | € | Euro |
| `&#58;` | : | Colon (in definition lists) |

## Miscellaneous

### Horizontal Rule
```wikitext
----
```

### Comments
```wikitext
<!-- This is a comment -->
<!-- 
Multi-line
comment
-->
```

### Line Breaks
```wikitext
Line 1<br />Line 2
```

### Redirect
```wikitext
#REDIRECT [[Target Page]]
#REDIRECT [[Target Page#Section]]
```
Must be first line of page.

### Signatures (Talk pages)
```wikitext
~~~     Username only
~~~~    Username and timestamp
~~~~~   Timestamp only
```

### Categories
```wikitext
[[Category:Category Name]]
[[Category:Category Name|Sort Key]]
{{DEFAULTSORT:Sort Key}}
```
Place at end of article.


path: references/templates.md
content: # MediaWiki Templates and Parser Functions

## Template Basics

### Calling Templates
```wikitext
{{TemplateName}}
{{TemplateName|positional arg}}
{{TemplateName|param1=value1|param2=value2}}
{{TemplateName
| param1 = value1
| param2 = value2
}}
```

### Template Parameters (Definition Side)
```wikitext
{{{1}}}                    First positional parameter
{{{paramName}}}            Named parameter
{{{1|default}}}            With default value
{{{paramName|}}}           Empty default (vs undefined)
```

### Transclusion
```wikitext
{{:Page Name}}             Transclude article (with colon)
{{Template Name}}          Transclude template
{{subst:Template Name}}    Substitute (one-time expansion)
{{safesubst:Template}}     Safe substitution
{{msgnw:Template}}         Show raw wikitext
```

## Parser Functions

### Conditionals

#### #if (empty test)
```wikitext
{{#if: {{{param|}}} | not empty | empty or undefined }}
{{#if: {{{param|}}} | has value }}
```

#### #ifeq (equality test)
```wikitext
{{#ifeq: {{{type}}} | book | It's a book | Not a book }}
{{#ifeq: {{{1}}} | {{{2}}} | same | different }}
```

#### #iferror
```wikitext
{{#iferror: {{#expr: 1/0}} | Division error | OK }}
```

#### #ifexist (page exists)
```wikitext
{{#ifexist: Page Name | [[Page Name]] | Page doesn't exist }}
```

#### #ifexpr (expression test)
```wikitext
{{#ifexpr: {{{count}}} > 10 | Many | Few }}
{{#ifexpr: {{{year}}} mod 4 = 0 | Leap year candidate }}
```

#### #switch
```wikitext
{{#switch: {{{type}}}
| book = 📚 Book
| article = 📄 Article
| website = 🌐 Website
| #default = 📋 Other
}}

{{#switch: {{{1}}}
| A | B | C = First three letters
| #default = Something else
}}
```

### String Functions

#### #len
```wikitext
{{#len: Hello }}           Returns: 5
```

#### #pos (find position)
```wikitext
{{#pos: Hello World | o }}      Returns: 4 (first 'o')
{{#pos: Hello World | o | 5 }}  Returns: 7 (after position 5)
```

#### #sub (substring)
```wikitext
{{#sub: Hello World | 0 | 5 }}   Returns: Hello
{{#sub: Hello World | 6 }}       Returns: World
{{#sub: Hello World | -5 }}      Returns: World (from end)
```

#### #replace
```wikitext
{{#replace: Hello World | World | Universe }}   Returns: Hello Universe
```

#### #explode (split)
```wikitext
{{#explode: a,b,c,d | , | 2 }}   Returns: c (third element)
```

#### #urlencode / #urldecode
```wikitext
{{#urlencode: Hello World }}     Returns: Hello%20World
{{#urldecode: Hello%20World }}   Returns: Hello World
```

### Math Functions

#### #expr
```wikitext
{{#expr: 1 + 2 * 3 }}           Returns: 7
{{#expr: (1 + 2) * 3 }}         Returns: 9
{{#expr: 2 ^ 10 }}              Returns: 1024
{{#expr: 17 mod 5 }}            Returns: 2
{{#expr: floor(3.7) }}          Returns: 3
{{#expr: ceil(3.2) }}           Returns: 4
{{#expr: round(3.567, 2) }}     Returns: 3.57
{{#expr: abs(-5) }}             Returns: 5
{{#expr: sqrt(16) }}            Returns: 4
{{#expr: ln(e) }}               Returns: 1
{{#expr: sin(pi/2) }}           Returns: 1
```

**Operators:** `+`, `-`, `*`, `/`, `^` (power), `mod`, `round`, `floor`, `ceil`, `abs`, `sqrt`, `ln`, `exp`, `sin`, `cos`, `tan`, `asin`, `acos`, `atan`, `pi`, `e`

**Comparison:** `=`, `<>`, `!=`, `<`, `>`, `<=`, `>=`

**Logical:** `and`, `or`, `not`

### Date/Time Functions

#### #time
```wikitext
{{#time: Y-m-d }}                     Current: 2024-01-15
{{#time: F j, Y | 2024-01-15 }}       January 15, 2024
{{#time: Y年n月j日 | 2024-01-15 }}     2024年1月15日
{{#time: l | 2024-01-15 }}            Monday
```

**Format codes:**
| Code | Output | Description |
|------|--------|-------------|
| Y | 2024 | 4-digit year |
| y | 24 | 2-digit year |
| n | 1 | Month (no leading zero) |
| m | 01 | Month (with leading zero) |
| F | January | Full month name |
| M | Jan | Abbreviated month |
| j | 5 | Day (no leading zero) |
| d | 05 | Day (with leading zero) |
| l | Monday | Full weekday |
| D | Mon | Abbreviated weekday |
| H | 14 | Hour (24h, leading zero) |
| i | 05 | Minutes (leading zero) |
| s | 09 | Seconds (leading zero) |

#### #timel (local time)
```wikitext
{{#timel: H:i }}                      Local time
```

### Formatting Functions

#### #formatnum
```wikitext
{{#formatnum: 1234567.89 }}          1,234,567.89
{{#formatnum: 1,234.56 | R }}        1234.56 (raw)
```

#### #padleft / #padright
```wikitext
{{#padleft: 7 | 3 | 0 }}             007
{{#padright: abc | 6 | . }}          abc...
```

#### #lc / #uc / #lcfirst / #ucfirst
```wikitext
{{#lc: HELLO }}                       hello
{{#uc: hello }}                       HELLO
{{#lcfirst: HELLO }}                  hELLO
{{#ucfirst: hello }}                  Hello
{{lc: HELLO }}                        hello (shortcut)
```

### Other Functions

#### #tag
```wikitext
{{#tag: ref | Citation text | name=smith }}
Equivalent to: <ref name="smith">Citation text</ref>
```

#### #invoke (Lua modules)
```wikitext
{{#invoke: ModuleName | functionName | arg1 | arg2 }}
```

## Magic Words

### Behavior Switches
```wikitext
__NOTOC__              No table of contents
__FORCETOC__           Force TOC even with <4 headings
__TOC__                Place TOC here
__NOEDITSECTION__      No section edit links
__NEWSECTIONLINK__     Add new section link
__NONEWSECTIONLINK__   Remove new section link
__NOGALLERY__          No gallery in category
__HIDDENCAT__          Hidden category
__INDEX__              Index by search engines
__NOINDEX__            Don't index
__STATICREDIRECT__     Don't update redirect
```

### Page Variables
```wikitext
{{PAGENAME}}           Page title without namespace
{{FULLPAGENAME}}       Full page title
{{BASEPAGENAME}}       Parent page name
{{SUBPAGENAME}}        Subpage name
{{ROOTPAGENAME}}       Root page name
{{TALKPAGENAME}}       Associated talk page
{{NAMESPACE}}          Current namespace
{{NAMESPACENUMBER}}    Namespace number
{{PAGEID}}             Page ID
{{REVISIONID}}         Revision ID
```

### Site Variables
```wikitext
{{SITENAME}}           Wiki name
{{SERVER}}             Server URL
{{SERVERNAME}}         Server hostname
{{SCRIPTPATH}}         Script path
```

### Date/Time Variables
```wikitext
{{CURRENTYEAR}}        4-digit year
{{CURRENTMONTH}}       Month (01-12)
{{CURRENTMONTHNAME}}   Month name
{{CURRENTDAY}}         Day (1-31)
{{CURRENTDAYNAME}}     Day name
{{CURRENTTIME}}        HH:MM
{{CURRENTTIMESTAMP}}   YYYYMMDDHHmmss
```

### Statistics
```wikitext
{{NUMBEROFPAGES}}      Total pages
{{NUMBEROFARTICLES}}   Content pages
{{NUMBEROFFILES}}      Files
{{NUMBEROFUSERS}}      Registered users
{{NUMBEROFACTIVEUSERS}} Active users
{{NUMBEROFEDITS}}      Total edits
{{PAGESINCATEGORY:Name}} Pages in category
```

## Template Examples

### Simple Infobox
```wikitext
<noinclude>{{Documentation}}</noinclude><includeonly>
{| class="infobox" style="width:22em"
|-
! colspan="2" style="background:#ccc" | {{{title|{{PAGENAME}}}}}
{{#if:{{{image|}}}|
{{!}}-
{{!}} colspan="2" {{!}} [[File:{{{image}}}|200px|center]]
}}
|-
| '''Type''' || {{{type|Unknown}}}
|-
| '''Date''' || {{{date|—}}}
|}
</includeonly>
```

### Navbox Template
```wikitext
<noinclude>{{Documentation}}</noinclude><includeonly>
{| class="navbox" style="width:100%"
|-
! style="background:#ccf" | {{{title|Navigation}}}
|-
| {{{content|}}}
|}
</includeonly>
```

### Citation Template
```wikitext
<includeonly>{{#if:{{{author|}}}|{{{author}}}. }}{{#if:{{{title|}}}|''{{{title}}}''. }}{{#if:{{{publisher|}}}|{{{publisher}}}{{#if:{{{year|}}}|, }}}}{{{year|}}}.{{#if:{{{url|}}}| [{{{url}}} Link]}}</includeonly>
```

## Tips

1. **Pipe trick**: `[[Help:Contents|]]` displays as "Contents"
2. **Escape pipes in templates**: Use `{{!}}` for literal `|`
3. **Trim whitespace**: Parameters automatically trim whitespace
4. **Check emptiness correctly**: `{{{param|}}}` vs `{{{param}}}` - the former has empty default, latter is undefined if not passed
5. **Subst for speed**: Use `{{subst:Template}}` for templates that don't need dynamic updates


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)