Template:Sidebar: Difference between revisions

From Mainlining Wiki
Jump to navigation Jump to search
Knuxify (talk | contribs)
Created page with "<noinclude> <templatedata> { "params": {}, "description": "Common helper template for sidebars.", "format": "block" } </templatedata> </noinclude><includeonly><div class="sidebar {{#if: {{{nomobile|}}}| nomobile|}}"></div></includeonly>"
 
Knuxify (talk | contribs)
move template source above template data
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<templatestyles src="Sidebar/styles.css"/><!--
 
--><includeonly><div class="sidebar {{#if: {{{nomobile|}}}|nomobile|}} {{{class|}}}" {{#if: {{{style|}}}|style="{{{style|}}}"|}}>{{{content|{{{1|}}}}}}</div></includeonly><!--
 
--><noinclude>
<templatedata>
<templatedata>
{
{
"params": {},
"params": {
"nomobile": {
"label": "Do not show on mobile",
"type": "boolean"
},
"content": {
"aliases": [
"1"
],
"label": "Sidebar content",
"type": "unbalanced-wikitext",
"required": true
},
"class": {
"label": "HTML classes",
"description": "HTML classes to add to the box, space-separated.",
"type": "string"
},
"style": {
"label": "Inline style",
"description": "Inline CSS style to add to the sidebar",
"type": "string"
}
},
"description": "Common helper template for sidebars.",
"description": "Common helper template for sidebars.",
"format": "block"
"format": "block",
"paramOrder": [
"nomobile",
"class",
"style",
"content"
]
}
}
</templatedata>
</templatedata>
</noinclude><includeonly><div class="sidebar {{#if: {{{nomobile|}}}| nomobile|}}"></div></includeonly>
</noinclude>

Latest revision as of 19:22, 19 February 2025

Common helper template for sidebars.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Do not show on mobilenomobile

no description

Booleanoptional
HTML classesclass

HTML classes to add to the box, space-separated.

Stringoptional
Inline stylestyle

Inline CSS style to add to the sidebar

Stringoptional
Sidebar contentcontent 1

no description

Unbalanced wikitextrequired