Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Load user stylesheet

Permanently protected template
From Wikipedia, the free encyclopedia
(Redirected fromTemplate:Luss)
mw.loader.load('{{subst:localurl:{{{1}}}|action=raw&ctype=text/css}}','text/css');// Backlink: [[{{{1}}}]]
Template documentation[view] [edit] [history] [purge]
This template should always besubstituted (i.e., use{{subst:Load user stylesheet}}).

This template is used to installuser styles that reside on the English Wikipedia. It is to be used primarily onSpecial:MyPage/common.js orSpecial:MyPage/skin.js. It adds the necessarymw.loader.load line along with abacklink.

Usage

In order to install a user stylesheet for your Wikipedia account, add the following line toSpecial:MyPage/common.js orSpecial:MyPage/skin.js:

{{subst:luss|stylesheet_path}}

  • Replacestylesheet_path with the full .css page name of the user stylesheet to be installed.
  • The templatemust besubstituted (subst:), or else it won't work.
  • Bypass your cache after saving the page.

Example

{{subst:luss|User:Example/styles.css}}

  • Produces:mw.loader.load( '/w/index.php?title=User:Example/styles.css&action=raw&ctype=text/css', 'text/css' ); // Backlink: [[User:Example/styles.css]]

{{subst:luss|User:Example/styles.css|User:Example/styles}}

  • Produces:mw.loader.load( '/w/index.php?title=User:Example/styles.css&action=raw&ctype=text/css', 'text/css' ); // Backlink: [[User:Example/styles]]

See also

This templatehas not been added to anycategories. Please help out byadding categories to it so that it can be listed with similar templates.
The abovedocumentation istranscluded fromTemplate:Load user stylesheet/doc.(edit |history)
Editors can experiment in this template's sandbox(create |mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Load_user_stylesheet&oldid=1004508670"
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp