Skip to main content
(Funções adicionadas para actualização para 1.24.1)
Linha 13: Linha 13:
  
 
* Pages optimized to display well on mobile devices should include a meta viewport in the head of the document specifying the below. Should be added to SkinVector.
 
* Pages optimized to display well on mobile devices should include a meta viewport in the head of the document specifying the below. Should be added to SkinVector.
<code>$out->addMeta ( 'viewport', 'width=device-width, initial-scale=1' );</code>
+
<pre>$out->addMeta ( 'viewport', 'width=device-width, initial-scale=1' );</pre>
  
 
* Maximum time in seconds to cache resources served by the resource loader. Should be added to LocalSettings.
 
* Maximum time in seconds to cache resources served by the resource loader. Should be added to LocalSettings.
<code>$wgResourceLoaderMaxage = array(
+
<pre>$wgResourceLoaderMaxage = array(
 
'versioned' => array(
 
'versioned' => array(
 
// Squid/Varnish but also any other public proxy cache between the client and MediaWiki
 
// Squid/Varnish but also any other public proxy cache between the client and MediaWiki
Linha 27: Linha 27:
 
'client' => 24 * 60 * 60, // 24 hours
 
'client' => 24 * 60 * 60, // 24 hours
 
),
 
),
);</code>
+
);</pre>
  
 
* Deactivate User CSS and JS. Should be added to LocalSettings.
 
* Deactivate User CSS and JS. Should be added to LocalSettings.
<code># User Javascript and CSS
+
<pre># User Javascript and CSS
 
$wgAllowUserJs = false;
 
$wgAllowUserJs = false;
$wgAllowUserCss = false;</code>
+
$wgAllowUserCss = false;</pre>
  
 
* Disable links to talk pages of anonymous users. Should be added to LocalSettings.
 
* Disable links to talk pages of anonymous users. Should be added to LocalSettings.
<code>$wgDisableAnonTalk = true;</code>
+
<pre>$wgDisableAnonTalk = true;</pre>
  
 
* Set default searching fields. Should be added to LocalSettings.
 
* Set default searching fields. Should be added to LocalSettings.
<code>$wgNamespacesToBeSearchedDefault = array(
+
<pre>$wgNamespacesToBeSearchedDefault = array(
 
NS_MAIN =>          true,
 
NS_MAIN =>          true,
 
NS_TALK =>          false,
 
NS_TALK =>          false,
Linha 55: Linha 55:
 
NS_CATEGORY =>      true,
 
NS_CATEGORY =>      true,
 
NS_CATEGORY_TALK =>  false
 
NS_CATEGORY_TALK =>  false
);</code>
+
);</pre>
  
 
* Enable the UniversalEditButton for browsers that support it. Should be added to LocalSettins.
 
* Enable the UniversalEditButton for browsers that support it. Should be added to LocalSettins.
<code>$wgUniversalEditButton = true;</code>
+
<pre>$wgUniversalEditButton = true;</pre>

Revisão das 04h25min de 15 de janeiro de 2015

Dados de MRG 270x160px
Nome MRG
Nascimento 1988
Naturalidade Loulé - Portugal - 
Posição WikiDev

Áreas de interesse:

  • Apoio técnico

Funções adicionadas para actualização para 1.24.1

  • Pages optimized to display well on mobile devices should include a meta viewport in the head of the document specifying the below. Should be added to SkinVector.
$out->addMeta ( 'viewport', 'width=device-width, initial-scale=1' );
  • Maximum time in seconds to cache resources served by the resource loader. Should be added to LocalSettings.
$wgResourceLoaderMaxage = array(
	'versioned' => array(
		// Squid/Varnish but also any other public proxy cache between the client and MediaWiki
		'server' => 30 * 24 * 60 * 60, // 30 days
		// On the client side (e.g. in the browser cache).
		'client' => 30 * 24 * 60 * 60, // 30 days
	),
	'unversioned' => array(
		'server' => 24 * 60 * 60, // 24 hours
		'client' => 24 * 60 * 60, // 24 hours
	),
);
  • Deactivate User CSS and JS. Should be added to LocalSettings.
# User Javascript and CSS
$wgAllowUserJs = false;
$wgAllowUserCss = false;
  • Disable links to talk pages of anonymous users. Should be added to LocalSettings.
$wgDisableAnonTalk = true;
  • Set default searching fields. Should be added to LocalSettings.
$wgNamespacesToBeSearchedDefault = array(
	NS_MAIN =>           true,
	NS_TALK =>           false,
	NS_USER =>           true,
	NS_USER_TALK =>      false,
	NS_PROJECT =>        true,
	NS_PROJECT_TALK =>   false,
	NS_FILE =>           true,
	NS_FILE_TALK =>      false,
	NS_MEDIAWIKI =>      true,
	NS_MEDIAWIKI_TALK => false,
	NS_TEMPLATE =>       true,
	NS_TEMPLATE_TALK =>  false,
	NS_HELP =>           true,
	NS_HELP_TALK =>      false,
	NS_CATEGORY =>       true,
	NS_CATEGORY_TALK =>  false
);
  • Enable the UniversalEditButton for browsers that support it. Should be added to LocalSettins.
$wgUniversalEditButton = true;