Difference between revisions of "Template:Css"

From blackwiki
Jump to navigation Jump to search
imported>Tra
(create template to allow stylesheets to be imported in similar way to userscripts)
 
imported>Callanecc
m (Changed protection level of Template:Css: Highly visible template: Allowing template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
importStylesheet('{{{1}}}'); //[[{{{1}}}]]<noinclude>
 
importStylesheet('{{{1}}}'); //[[{{{1}}}]]<noinclude>
 
+
{{documentation}}
This template is for easy installation of css code -- use <nowiki>{{subst:css|page_with_code.css}}</nowiki> in your [[Special:Mypage/monobook.js|monobook.js]] (for users of the default monobook skin).
 
 
 
The javascript filenames for users of other skins:
 
* Classic - [[Special:Mypage/standard.js|standard.js]]
 
* Nostalgia - [[Special:Mypage/nostalgia.js|nostalgia.js]]
 
* Simple - [[Special:Mypage/simple.js|simple.js]]
 
* Myskin - [[Special:Mypage/myskin.js|myskin.js]]
 
* Cologne Blue - [[Special:Mypage/cologneblue.js|cologneblue.js]]
 
* Chick - [[Special:Mypage/chick.js|chick.js]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 09:32, 15 November 2015

importStylesheet('{{{1}}}'); //[[{{{1}}}]]

50px Template documentation[view] [edit] [history] [purge]

Usage

This template is for easy installation of css code -- use {{subst:css|page_with_code.css}} in your vector.js (for users of the default Vector skin; see WP:SKIN for details).

The javascript filenames for users of other skins:

See also