Template:Sidebar: Difference between revisions
Jump to navigation
Jump to search
add style |
No edit summary |
||
Line 14: | Line 14: | ||
"type": "unbalanced-wikitext", | "type": "unbalanced-wikitext", | ||
"required": true | "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" | |||
} | } | ||
}, | }, | ||
Line 19: | Line 29: | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "nomobile", | ||
" | "class", | ||
"style", | |||
"content" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude><includeonly><div class="sidebar {{#if: {{{nomobile|}}}| nomobile|}}">{{{content|{{{1|}}}}}}</div></includeonly> | </noinclude><includeonly><div class="sidebar {{#if: {{{nomobile|}}}|nomobile|}} {{{class|}}}" {{#if: {{{style|}}}|style="{{{style|}}}"|}}>{{{content|{{{1|}}}}}}</div></includeonly> |
Revision as of 19:13, 19 February 2025
Common helper template for sidebars.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Do not show on mobile | nomobile | no description | Boolean | optional |
HTML classes | class | HTML classes to add to the box, space-separated. | String | optional |
Inline style | style | Inline CSS style to add to the sidebar | String | optional |
Sidebar content | content 1 | no description | Unbalanced wikitext | required |