Template:Page style
Jump to navigation
Jump to search
Template documentation
Adds CSS to a page. Note: For template-specific CSS, use {{template style}} instead.
This is a thin wrapper around the {{#css:}} parser function from Extension:CSS. It just wraps it within {{hidden code}} to prevent extraneous empty lines.
This template doesn't to any "de-duplication" of the CSS, so if you use this from within a template, and then that template is used multiple times on a page, it will inadvertently add the CSS multiple times to the page. To prevent that, use {{template style}} instead when you want a template to add its own CSS to a page.
Markup
{{page style | .bg3wiki-page-style-test { color: red } }}
<p class="bg3wiki-page-style-test">Blah blub.</p>
Renders asBlah blub.