Skip to main content
m
 
(Há 32 edições intermédias do mesmo utilizador que não estão a ser apresentadas)
Linha 1: Linha 1:
 +
__NOTOC__
 
{{Dados do jogador
 
{{Dados do jogador
 
|nome            =MRG
 
|nome            =MRG
|data_nascimento =1988
+
|data_nascimento ={{Data de nascimento|1988|01|04}}
|naturalidade    =Loulé - Portugal
+
|naturalidade    =Loulé
|posicao        =WikiDev
+
|pais =Portugal
|imagem          =[[Ficheiro:MRG.jpg|270x160px]]
+
|posicao        =WikiDev - Apoio técnico
 +
|imagem          =[[Ficheiro:MRG.gif|270x160px]]
 
}}
 
}}
  
'''Áreas de interesse:'''
+
== Funcionalidades ==
*Apoio técnico
+
  
==Funções adicionadas para actualização para 1.24.1==
+
* [[Predefinição:Pesquisar_tabela]]: versão beta!!! Apenas pode funcionar em uma tabela por página. Não mostra os headers da tabela na maior parte dos casos (necessita que seja declarado o ''tr head'').
 +
* [[:Categoria:Manutenção da Wiki]]: automatização de categorização de páginas quando detetados erros ou campos não preenchidos/duplicados.
 +
* Adicionado o script para forçar o ''footer'' a ficar no fundo das páginas quando estas têm pouco conteúdo.
 +
<pre>/** Solution for sticking footer at bottom in short pages **/
 +
$(document).ready(function() {
 +
  var docHeight = $(window).height();
 +
  var footerHeight = $('#main-footer').height();
 +
  var footerTop = $('#main-footer').position().top + footerHeight;
 +
  if (footerTop < docHeight) {
 +
    $('#main-footer').css('margin-top', 10+ (docHeight - footerTop) + 'px');
 +
  }
 +
  });</pre>
  
* 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.
+
== Predefinições ==
<pre>$out->addMeta ( 'viewport', 'width=device-width, initial-scale=1' );</pre>
+
 
 +
* [[Predefinição:Sem_Foto]]: apresenta uma imagem padrão nos dados biográficos quando não é adicionada nenhuma imagem no artigo.
 +
* [[Predefinição:Icone]]: utilizar ícones Font Awesome ou Glyphicons, dependendo da sintaxe utilizada.
 +
* [[Predefinição:Pop]]: funcionalidade de popovers do Bootstrap.
 +
* [[Predefinição:Painel]]: funcionalidade do Bootstrap para a criação de painéis.
 +
 
 +
==  Extensões ==
 +
 
 +
*Activada a extensão [https://www.mediawiki.org/wiki/Extension:Gadgets Gadjets]. [[MediaWiki:Gadgets-definition]]
 +
*Adicionada o gadget [[MediaWiki:Gadget-DotsSyntaxHighlighter]]
 +
 
 +
== Local Settings ==
  
 
* 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.
<pre>$wgResourceLoaderMaxage = array(
+
 
 +
<pre># Maximum time in seconds to cache resources served by the resource loader.
 +
$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 24: Linha 49:
 
),
 
),
 
'unversioned' => array(
 
'unversioned' => array(
'server' => 24 * 60 * 60, // 24 hours
+
'server' => 7 * 24 * 60 * 60, // 7 days, default 5 minutes
'client' => 24 * 60 * 60, // 24 hours
+
'client' => 7 * 24 * 60 * 60, // 7 days, default 5 minutes
 
),
 
),
 
);</pre>
 
);</pre>
  
* Deactivate User CSS and JS. Should be added to LocalSettings.
+
*Set default searching fields. Should be added to LocalSettings.
<pre># User Javascript and CSS
+
$wgAllowUserJs = false;
+
$wgAllowUserCss = false;</pre>
+
  
* Disable links to talk pages of anonymous users. Should be added to LocalSettings.
 
<pre>$wgDisableAnonTalk = true;</pre>
 
 
* Set default searching fields. Should be added to LocalSettings.
 
 
<pre>$wgNamespacesToBeSearchedDefault = array(
 
<pre>$wgNamespacesToBeSearchedDefault = array(
 
NS_MAIN =>          true,
 
NS_MAIN =>          true,
 
NS_TALK =>          false,
 
NS_TALK =>          false,
NS_USER =>          true,
+
NS_USER =>          false,
 
NS_USER_TALK =>      false,
 
NS_USER_TALK =>      false,
 
NS_PROJECT =>        true,
 
NS_PROJECT =>        true,
Linha 47: Linha 65:
 
NS_FILE =>          true,
 
NS_FILE =>          true,
 
NS_FILE_TALK =>      false,
 
NS_FILE_TALK =>      false,
NS_MEDIAWIKI =>      true,
+
NS_MEDIAWIKI =>      false,
 
NS_MEDIAWIKI_TALK => false,
 
NS_MEDIAWIKI_TALK => false,
NS_TEMPLATE =>      true,
+
NS_TEMPLATE =>      false,
 
NS_TEMPLATE_TALK =>  false,
 
NS_TEMPLATE_TALK =>  false,
 
NS_HELP =>          true,
 
NS_HELP =>          true,
Linha 56: Linha 74:
 
NS_CATEGORY_TALK =>  false
 
NS_CATEGORY_TALK =>  false
 
);</pre>
 
);</pre>
 
* Enable the UniversalEditButton for browsers that support it. Should be added to LocalSettins.
 
<pre>$wgUniversalEditButton = true;</pre>
 
 
* XHTML5 is the default since 1.22. Setting it to false, in LocalSettings, no longer works.
 
<pre>$wgHtml5 = true;</pre>
 
 
* Enable HTML5 microdata attributes for use in wikitext. Great for "Dados do Jogador" and Filiais/Núcleos...Should be added to LocalSettings.
 
<pre>$wgAllowMicrodataAttributes = true;</pre>
 
 
*This is the list of preferred extensions for uploading files. Uploading files with extensions not in this list will trigger a warning. Should be added to LocalSettings.
 
<pre>$wgFileExtensions = array(
 
    'png', 'gif', 'jpg', 'jpeg', 'jp2', 'webp', 'ppt', 'pdf', 'psd',
 
    'mp3', 'xls', 'xlsx', 'swf', 'doc','docx', 'odt', 'odc', 'odp',
 
    'odg', 'mpp', 'svg'
 
    );</pre>
 

Edição atual desde as 04h12min de 26 de outubro de 2016

Dados de MRG MRG.gif
Nome MRG
Nascimento segunda-feira, 04 de Janeiro de 1988
Naturalidade Loulé - Portugal
Posição WikiDev - Apoio técnico

Funcionalidades

  • Predefinição:Pesquisar_tabela: versão beta!!! Apenas pode funcionar em uma tabela por página. Não mostra os headers da tabela na maior parte dos casos (necessita que seja declarado o tr head).
  • Categoria:Manutenção da Wiki: automatização de categorização de páginas quando detetados erros ou campos não preenchidos/duplicados.
  • Adicionado o script para forçar o footer a ficar no fundo das páginas quando estas têm pouco conteúdo.
/** Solution for sticking footer at bottom in short pages **/
$(document).ready(function() {
   var docHeight = $(window).height();
   var footerHeight = $('#main-footer').height();
   var footerTop = $('#main-footer').position().top + footerHeight;
   if (footerTop < docHeight) {
    $('#main-footer').css('margin-top', 10+ (docHeight - footerTop) + 'px');
   }
  });

Predefinições

Extensões

Local Settings

  • 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.
$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' => 7 * 24 * 60 * 60, // 7 days, default 5 minutes
		'client' => 7 * 24 * 60 * 60, // 7 days, default 5 minutes
	),
);
  • Set default searching fields. Should be added to LocalSettings.
$wgNamespacesToBeSearchedDefault = array(
	NS_MAIN =>           true,
	NS_TALK =>           false,
	NS_USER =>           false,
	NS_USER_TALK =>      false,
	NS_PROJECT =>        true,
	NS_PROJECT_TALK =>   false,
	NS_FILE =>           true,
	NS_FILE_TALK =>      false,
	NS_MEDIAWIKI =>      false,
	NS_MEDIAWIKI_TALK => false,
	NS_TEMPLATE =>       false,
	NS_TEMPLATE_TALK =>  false,
	NS_HELP =>           true,
	NS_HELP_TALK =>      false,
	NS_CATEGORY =>       true,
	NS_CATEGORY_TALK =>  false
);