Template:CSS
Jump to navigation
Jump to search
Import your own CSS to your own pages for everyone to see!
[edit]This template is relatively simple to use, but keep in mind that it is to be used with real CSS code. If you aren't experienced with CSS quite yet, you should probably resort to simpler (and potentially more stable) Wikitext styling for your pages. Anyhow, let us begin. To use this template, you have two options:
- Provide a page name as the parameter to import CSS from that page, like so -
{{CSS|User:Pexy0/level.css}}
- Do keep in mind the page has to be in the User namespace, like so -
User:Username/pagename
- Do keep in mind the page has to be in the User namespace, like so -
- Or use the
contentparameter to apply CSS code directly, without importing from an existing CSS page, like so -{{CSS|content=<nowiki>:root { --theme-page-background-color: #000; }</nowiki>}}
Important:
- When using the
contentparameter, you have to wrap the raw CSS in <nowiki></nowiki> so that the curly brackets {} in it don't mess with the template call. - You must also use single quotes
''instead of double quotes""in your CSS. Double quotes break the import.