Template:Navbox/doc: Difference between revisions
Appearance
m 1 revision: Updates made for portability |
Replace Fandom component markup with native Wikipedia classes; retain source parameters, content, and archived history |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
;Description | ;Description | ||
:This template | :This template creates a native collapsible navigation box using locally mirrored Wikipedia styles. Its original <code>header</code> and <code>body</code> parameters remain unchanged. | ||
;Syntax | ;Syntax | ||
<pre>{{Navbox | |||
<pre>{{ | |||
|header=Land of Bob | |header=Land of Bob | ||
|body=This | |body=This [[place]] and that [[place]]. | ||
}}</pre> | }}</pre> | ||
;Example | |||
{{Navbox | |||
{{ | |||
|header=Land of Bob | |header=Land of Bob | ||
|body=This | |body=This [[place]] and that [[place]]. | ||
}} | }} | ||
;Creating another navigation template | |||
:Create a template in the <code>Template:</code> namespace and call <code>Navbox</code> with its header and body. Use native wiki links and lists in the body. Do not copy Fandom colors or inline component styling. | |||
<includeonly>[[Category:Templates|{{PAGENAME}}]][[Category:Templates/Navbox|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | <includeonly>[[Category:Templates|{{PAGENAME}}]][[Category:Templates/Navbox|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | ||
Latest revision as of 17:59, 11 November 2026
- Description
- This template creates a native collapsible navigation box using locally mirrored Wikipedia styles. Its original
headerandbodyparameters remain unchanged.
- Syntax
{{Navbox
|header=Land of Bob
|body=This [[place]] and that [[place]].
}}
- Example
- Creating another navigation template
- Create a template in the
Template:namespace and callNavboxwith its header and body. Use native wiki links and lists in the body. Do not copy Fandom colors or inline component styling.