Wiki-Admin-Log: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
Zeile 150: Zeile 150:
 
'image'  => $wgLang->getImageFile( 'button-code' ), #  added
 
'image'  => $wgLang->getImageFile( 'button-code' ), #  added
 
'id'    => 'mw-code',
 
'id'    => 'mw-code',
'open'  => "<code>\n",
+
'open'  => "<"."code>\n",
'close'  => "\n</code>",
+
'close'  => "\n</code".">",
 
'sample' => '',
 
'sample' => '',
 
'tip'    => wfMsg( 'code_tip' ),
 
'tip'    => wfMsg( 'code_tip' ),
Zeile 159: Zeile 159:
 
'image'  => $wgLang->getImageFile( 'button-code-asm' ), #  added
 
'image'  => $wgLang->getImageFile( 'button-code-asm' ), #  added
 
'id'    => 'mw-code-asm',
 
'id'    => 'mw-code-asm',
'open'  => "<source lang=\"asm\">\n",
+
'open'  => "<"."source lang=\"asm\">\n",
'close'  => "\n</source>",
+
'close'  => "\n</source".">",
 
'sample' => '',
 
'sample' => '',
 
'tip'    => wfMsg( 'code_asm_tip' ),
 
'tip'    => wfMsg( 'code_asm_tip' ),
Zeile 168: Zeile 168:
 
'image'  => $wgLang->getImageFile( 'button-code-asp' ), #  added
 
'image'  => $wgLang->getImageFile( 'button-code-asp' ), #  added
 
'id'    => 'mw-code-asp',
 
'id'    => 'mw-code-asp',
'open'  => "<source lang=\"asp\">\n",
+
'open'  => "<"."source lang=\"asp\">\n",
'close'  => "\n</source>",
+
'close'  => "\n</source".">",
 
'sample' => '',
 
'sample' => '',
 
'tip'    => wfMsg( 'code_asp_tip' ),
 
'tip'    => wfMsg( 'code_asp_tip' ),
Zeile 177: Zeile 177:
 
'image'  => $wgLang->getImageFile( 'button-code-cpp' ), #  added  
 
'image'  => $wgLang->getImageFile( 'button-code-cpp' ), #  added  
 
'id'    => 'mw-code-cpp',
 
'id'    => 'mw-code-cpp',
'open'  => "<source lang=\"cpp\">\n",
+
'open'  => "<"."source lang=\"cpp\">\n",
'close'  => "\n</source>",
+
'close'  => "\n</source".">",
 
'sample' => '',
 
'sample' => '',
 
'tip'    => wfMsg( 'code_cpp_tip' ),
 
'tip'    => wfMsg( 'code_cpp_tip' ),
Zeile 186: Zeile 186:
 
'image'  => $wgLang->getImageFile( 'button-code-html' ), #  added  
 
'image'  => $wgLang->getImageFile( 'button-code-html' ), #  added  
 
'id'    => 'mw-code-html',
 
'id'    => 'mw-code-html',
'open'  => "<source lang=\"html\">\n",
+
'open'  => "<"."source lang=\"html\">\n",
'close'  => "\n</source>",
+
'close'  => "\n</source".">",
 
'sample' => '',
 
'sample' => '',
 
'tip'    => wfMsg( 'code_html_tip' ),
 
'tip'    => wfMsg( 'code_html_tip' ),
Zeile 195: Zeile 195:
 
'image'  => $wgLang->getImageFile( 'button-code-php' ), #  added
 
'image'  => $wgLang->getImageFile( 'button-code-php' ), #  added
 
'id'    => 'mw-code-php',
 
'id'    => 'mw-code-php',
'open'  => "<source lang=\"php\">\n",
+
'open'  => "<"."source lang=\"php\">\n",
'close'  => "\n</source>",
+
'close'  => "\n</source".">",
 
'sample' => '',
 
'sample' => '',
 
'tip'    => wfMsg( 'code_php_tip' ),
 
'tip'    => wfMsg( 'code_php_tip' ),
Zeile 204: Zeile 204:
 
'image'  => $wgLang->getImageFile( 'button-code-java' ), #  added  
 
'image'  => $wgLang->getImageFile( 'button-code-java' ), #  added  
 
'id'    => 'mw-code-java',
 
'id'    => 'mw-code-java',
'open'  => "<source lang=\"java\">\n",
+
'open'  => "<"."source lang=\"java\">\n",
'close'  => "\n</source>\n",
+
'close'  => "\n</source".">\n",
 
'sample' => '',
 
'sample' => '',
 
'tip'    => wfMsg( 'code_java_tip' ),
 
'tip'    => wfMsg( 'code_java_tip' ),

Version vom 23. Februar 2013, 23:21 Uhr

Wiki issue: Error creating thumbnail: Invalid thumbnail parameters --Tony Ford (talk) 18:38, 23 February 2013 (CET)

added in Localsettings.php

$wgMaxImageArea=64000000;
$wgMaxShellMemory = 202400;
$wgUseImageMagick = false;
$wgImageMagickConvertCommand = "/usr/bin/convert";

fix the wiki entry of TiVA (convert latex tags) --Tony Ford (talk) 18:38, 23 February 2013 (CET)

File: includes/EditPage.php

insert after

			
# These fields need to be checked for encoding.
# Also remove trailing whitespace, but don't remove _initial_
# whitespace from the text boxes. This may be significant formatting.
$this->textbox1 = $this->safeUnicodeInput( $request, 'wpTextbox1' );

this

$this->textbox1=preg_replace('/<math>/','<math>',$this->textbox1);
$this->textbox1=preg_replace('/<\/m>/','</math>',$this->textbox1);

http://www.mediawiki.org/wiki/Extension:Code --Tony Ford (talk) 18:51, 23 February 2013 (CET)

add image files to folder skins/common/images





File: languages/messages/MessagesDe.php

insert after

'sig_tip'         => 'Deine Signatur mit Zeitstempel',
'hr_tip'          => 'Horizontale Linie (sparsam verwenden)',

this

'code_tip'          => 'Codemarkierung allgemein',  	
'code_asm_tip'          => 'Assembler-Code',		
'code_asp_tip'          => 'ASP-Code',			
'code_cpp_tip'          => 'C++-Code',			
'code_html_tip'          => 'HTML-Code',		
'code_php_tip'          => 'PHP-Code',	
'code_java_tip'          => 'Java-Code',





File: languages/messages/MessagesEn.php

insert after

	'button-sig'      => 'button_sig.png',
	'button-hr'       => 'button_hr.png',

this

	
'button-code'       => 'button_code.png',		
	'button-code-asm'       => 'button_code_asm.png',	
	'button-code-asp'       => 'button_code_asp.png',	
	'button-code-cpp'       => 'button_code_cpp.png',	
	'button-code-html'       => 'button_code_html.png',	
	'button-code-java'       => 'button_code_java.png',	
	'button-code-php'       => 'button_code_php.png',




insert after

'sig_tip'         => 'Your signature with timestamp',
'hr_tip'          => 'Horizontal line (use sparingly)',

this

'code_tip'          => 'code marking general', 
'code_asm_tip'          => 'Assembler-Code',  
'code_asp_tip'          => 'ASP-Code',        
'code_cpp_tip'          => 'C++-Code',        
'code_html_tip'          => 'HTML-Code',      
'code_php_tip'          => 'PHP-Code',         
'code_java_tip'          => 'Java-Code',





File: includes/EditPage.php

find

			array(
				'image'  => $wgLang->getImageFile( 'button-hr' ),
				'id'     => 'mw-editbutton-hr',
				'open'   => "\n----\n",
				'close'  => '',
				'sample' => '',
				'tip'    => wfMsg( 'hr_tip' ),
				'key'    => 'R'
			),

add after

			array(
				'image'  => $wgLang->getImageFile( 'button-code' ), 	#  added
				'id'     => 'mw-code',
				'open'   => "<"."code>\n",
				'close'  => "\n</code".">",
				'sample' => '',
				'tip'    => wfMsg( 'code_tip' ),
				'key'    => 'S'
			),
			array(
				'image'  => $wgLang->getImageFile( 'button-code-asm' ), #  added
				'id'     => 'mw-code-asm',
				'open'   => "<"."source lang=\"asm\">\n",
				'close'  => "\n</source".">",
				'sample' => '',
				'tip'    => wfMsg( 'code_asm_tip' ),
				'key'    => ''
			),
			array(
				'image'  => $wgLang->getImageFile( 'button-code-asp' ), #  added
				'id'     => 'mw-code-asp',
				'open'   => "<"."source lang=\"asp\">\n",
				'close'  => "\n</source".">",
				'sample' => '',
				'tip'    => wfMsg( 'code_asp_tip' ),
				'key'    => ''
			),
			array(
				'image'  => $wgLang->getImageFile( 'button-code-cpp' ), #  added 
				'id'     => 'mw-code-cpp',
				'open'   => "<"."source lang=\"cpp\">\n",
				'close'  => "\n</source".">",
				'sample' => '',
				'tip'    => wfMsg( 'code_cpp_tip' ),
				'key'    => ''
			),
			array(
				'image'  => $wgLang->getImageFile( 'button-code-html' ), #  added 
				'id'     => 'mw-code-html',
				'open'   => "<"."source lang=\"html\">\n",
				'close'  => "\n</source".">",
				'sample' => '',
				'tip'    => wfMsg( 'code_html_tip' ),
				'key'    => ''
			),
			array(
				'image'  => $wgLang->getImageFile( 'button-code-php' ), #  added
				'id'     => 'mw-code-php',
				'open'   => "<"."source lang=\"php\">\n",
				'close'  => "\n</source".">",
				'sample' => '',
				'tip'    => wfMsg( 'code_php_tip' ),
				'key'    => ''
			),
			array(
				'image'  => $wgLang->getImageFile( 'button-code-java' ), #  added 
				'id'     => 'mw-code-java',
				'open'   => "<"."source lang=\"java\">\n",
				'close'  => "\n</source".">\n",
				'sample' => '',
				'tip'    => wfMsg( 'code_java_tip' ),
				'key'    => ''
			)