Skip to main content
m
m
Linha 10: Linha 10:
 
*Apoio técnico
 
*Apoio técnico
  
==Funções de citação==
+
== JavaScript ==
  
Páginas criadas:
+
* Adicionado o script para forçar o footer a ficar no fundo das páginas quando estas têm pouco conteúdo.
*[[MediaWiki:RefToolbarConfig.js]]
+
<pre>/** Solution for sticking footer at bottom in short pages **/
*[[MediaWiki:RefToolbarMessages-en.js]]
+
$(document).ready(function() {
*[[MediaWiki:RefToolbarMessages-de.js]]
+
  var docHeight = $(window).height();
*[[MediaWiki:Gadget-refToolbar.js]]
+
  var footerHeight = $('#main-footer').height();
*[[MediaWiki:Gadget-refToolbar]]
+
  var footerTop = $('#main-footer').position().top + footerHeight;
*[[MediaWiki:Gadgets-definition]]
+
  if (footerTop < docHeight) {
*[[Module:Citation/CS1]]
+
    $('#main-footer').css('margin-top', 10+ (docHeight - footerTop) + 'px');
*[[Predefinição:Cite_web]]
+
  }
 +
  });</pre>
  
Activada a extensão [https://www.mediawiki.org/wiki/Extension:Gadgets Gadjets]
+
==  Extensões ==
  
==Funções adicionadas para actualização para 1.26==
+
*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 35: Linha 41:
 
),
 
),
 
'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>
  
 +
*Set default searching fields. Should be added to LocalSettings.
  
Set default searching fields. Should be added to LocalSettings.
 
 
<pre>$wgNamespacesToBeSearchedDefault = array(
 
<pre>$wgNamespacesToBeSearchedDefault = array(
 
NS_MAIN =>          true,
 
NS_MAIN =>          true,
Linha 61: Linha 67:
 
);</pre>
 
);</pre>
  
*Old Vector.css
+
== Old Vector.css ==
 +
 
 
<pre>
 
<pre>
 
/* Código CSS colocado aqui afectará os utilizadores do tema Vector da WikiSporting.com */
 
/* Código CSS colocado aqui afectará os utilizadores do tema Vector da WikiSporting.com */
Linha 153: Linha 160:
 
}
 
}
 
</pre>
 
</pre>
 
<div class="row">
 
<div class="col-md-6 col-xs-12 text-center vcenter" style="background-color:#E1EFC2; text-transform: uppercase; padding:20px;">
 
Bem-vindo à '''[[Wiki Sporting :Sobre|Wiki Sporting]] <br />
 
A enciclopédia do '''[[Sporting Clube de Portugal|Sporting C.P.]]''' já tem '''[[Special:Allpages|{{NUMBEROFARTICLES}} artigos]]''' <br />
 
[[Imagem:PrémioStromp2014-CE.png|20px]] [[Somos Stromps|Prémio Stromp Categoria Especial 2014]]
 
</div>
 
<div class="col-md-6 col-xs-12 text-center vcenter">
 
{{CURRENTDAYNAME}}, '''[[{{CURRENTMONTHNAME}}#{{CURRENTDAY}}|{{CURRENTDAY}} de {{CURRENTMONTHNAME}}]]''' de {{CURRENTYEAR}} <br />
 
'''[[Special:Categories|Categorias]]'''{{·}} '''[[Special:Newpages|Novas Páginas]]'''{{·}} '''[[Special:NewImages|Novas Imagens]]'''
 
</div>
 
</div>
 

Revisão das 18h28min de 24 de setembro de 2016

FDJSemClube.png         FDJSemClube.png
Época
 
  Competição:   Estádio:  
Jornada:   Público:  
Data:   Árbitro:  
Nome EntrouSaiu Primeiro amareloExpulso Marcou Marcou Primeiro amareloExpulso EntrouSaiu Nome
Equipas titulares
               
               
               
               
               
               
               
               
               
               
               
Suplentes
               
               
               
               
               
               
               
Treinadores
   

História do jogo

 

Vídeos do jogo

 

Imagens do jogo

 

Áreas de interesse:

  • Apoio técnico

JavaScript

  • 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');
   }
  });

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
);

Old Vector.css

/* Código CSS colocado aqui afectará os utilizadores do tema Vector da WikiSporting.com */

/** HTML TEMPLATE **/

#wrapper {
	width: 915px;
	margin: auto;
	margin-top: 20px;
	margin-bottom: 20px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;
	background-color: #E2E2E2;
	border-width: 2px;
	border-style: solid;
	border-color: #CCCCCC;
	padding: 20px;
}
#header_area {
	text-align: center;
	width: 100%;
}
#header_area IMG {
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;
}
#content_area {
	background-color: #FFFFFF;
	border-color: #CCCCCC;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;
	width: 96%;
	margin-top: 20px;
	padding-left: 2%;
	padding-right: 2%;
}
#footer_area {
	width: 100%;
	font-size: x-small;
	overflow: hidden;
}
.footer_area_left {
	float: left;
	width: 50%;
	padding-top: 1%;
}
.footer_area_right {
	float: right;
	width: 50%;
	text-align: right;
	padding-top: 1%;
}
#p-cat-universo {
	background-color: #E2E2E2;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	-moz-border-radius-topright: 10px;
	-moz-border-radius-bottomright: 10px;
	-webkit-border-top-right-radius: 10px;
	-webkit-border-bottom-right-radius: 10px;
	margin-bottom: 1.5em;
	margin-left: -1.2em;
	padding-bottom: 0.5em !important;
	padding-top: 0.5em;
	padding-left: 1.2em;
	width: 9em;
}
#pageshare {
	position:fixed;
	top:34%;
	margin-left:935px;
	background-color: #E2E2E2;
	border-bottom: 2px solid #CCCCCC;
	border-bottom-right-radius: 10px;
	-moz-border-radius-bottomright: 10px;
	-webkit-border-bottom-right-radius: 10px;
	border-left: 0 solid #CCCCCC;
	border-top: 2px solid #CCCCCC;
	border-top-right-radius: 10px;
	-moz-border-radius-topright: 10px;
	-webkit-border-top-right-radius: 10px;
}
#pageshare .sbutton {
	float:left;
	clear:both;
	margin:10px;
}