Template:Navbox: Difference between revisions

From Mainlining Wiki
Jump to navigation Jump to search
Knuxify (talk | contribs)
Created page with "<templatestyles src="Navbox/styles.css"/><noinclude> <templatedata> { "params": { "header": { "label": "Header text", "description": "Text to display in the navbox header.", "type": "string", "default": "Related pages", "suggested": true }, "links": { "label": "Links", "description": "Links, as a wikitext list. Can also contain subheadings done with \"<span class=\"subheading\">(text goes here)</span>\".", "type": "unbalanced-wikitext",..."
 
Knuxify (talk | contribs)
move template source above template data
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Navbox/styles.css"/><noinclude>
<templatestyles src="Navbox/styles.css"/><!--
 
--><includeonly>{{Sidebar
|class = navbox
|content =
{{#if: {{{header|Related pages}}}|<div class="navbox-header">{{{header|Related pages}}}</div>|}}
<div class="navbox-content">
{{{links|}}}
</div>}}</includeonly><!--
 
--><noinclude>
<templatedata>
<templatedata>
{
{
Line 21: Line 31:
}
}
</templatedata>
</templatedata>
</noinclude>{{Sidebar
</noinclude>
|content = <div class="navbox">
{{#if: {{{header|Related pages}}}|<div class="navbox-header">{{{header|Related pages}}}</div>|}}
<div class="navbox-content">{{{links|}}}</div>
</div>}}

Latest revision as of 19:23, 19 February 2025

Navigation sidebox for grouping together common pages

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Header textheader

Text to display in the navbox header.

Default
Related pages
Stringsuggested
Linkslinks

Links, as a wikitext list. Can also contain subheadings done with "<span class="subheading">(text goes here)</span>".

Unbalanced wikitextrequired