Manual:$wgResourceLoaderLESSVars/ja
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.32.0</tvar>.</translate> |
<translate> ResourceLoader</translate>: $wgResourceLoaderLESSVars | |
---|---|
Global LESS variables. |
|
<translate> Introduced in version:</translate> | 1.22.0 (Gerrit change 78669; git #Id052a04) |
<translate> Deprecated in version:</translate> | 1.30.0 (Gerrit change 366990; git #I61cff1d) |
<translate> Removed in version:</translate> | 1.32.0 (Gerrit change 451648; git #If708087) |
<translate> Allowed values:</translate> | (配列) |
<translate> Default value:</translate> | 下記参照 |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
詳細
An associative array binding variable names to LESS code snippets representing their values.
Removed in v1.31 due to concerns about allowing unmaintainable cross-dependencies. Custom ResourceLoaderModule
subclasses can override the getLessVars()
method instead.
Adding an item here is equivalent to writing @variable: value;
at the beginning of all your .less files, with all the consequences.
In particular, string values must be escaped and quoted.
Changes to this configuration do NOT trigger cache invalidation.
例
$wgResourceLoaderLESSVars = [
'exampleFontSize' => '1em',
'exampleBlue' => '#eee',
];
既定値
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.31</tvar> is unsupported version</translate>"> 1.27 – 1.31
<translate> MediaWiki versions:</translate> |
$wgResourceLoaderLESSVars = [
/**
* Minimum available screen width at which a device can be considered a tablet
* The number is currently based on the device width of a Samsung Galaxy S5 mini and is low
* enough to cover iPad (768px). Number is prone to change with new information.
* @since 1.27
* @deprecated 1.31 Use mediawiki.ui/variables instead
*/
'deviceWidthTablet' => '720px',
];
1.22 – 1.26
<translate> MediaWiki versions:</translate> |
$wgResourceLoaderLESSVars = array();
関連項目
- ResourceLoaderGetLessVars - a hook with similar functionality (now also removed)
Categories:
- MediaWiki configuration settings/ja
- MediaWiki configuration settings introduced in version 1.22.0/ja
- MediaWiki configuration settings deprecated in version 1.30.0/ja
- MediaWiki configuration settings removed in version 1.32.0/ja
- Pages with broken file links
- MediaWiki deprecated or obsolete features/ja
- Resource loader variables/ja