Template:Sidebar: Difference between revisions
add style |
move template source above template data |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Sidebar/styles.css"/><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> | ||
{ | { | ||
Line 14: | Line 18: | ||
"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 33: | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "nomobile", | ||
" | "class", | ||
"style", | |||
"content" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude | </noinclude> |