본문으로 이동

사용자:박준규/연습장

위키백과, 우리 모두의 백과사전.

외부 이미지 허용하기[편집]

LocalSettings.php에 환경변수 추가

$wgAllowExternalImages = true;

편집창에 이미지URL 그대로 입력

http://en.wikipedia.org/upload/b/bc/Wiki.png

http://en.wikipedia.org/upload/b/bc/Wiki.png


외부링크를 새창으로 띄우기[편집]

LocalSettings.php에 환경변수 추가

$wgExternalLinkTarget = '_blank';


사이드 바 메뉴를 수정[편집]

미디어위키:Sidebar 문서를 수정


문서 비공개 처리[편집]

로그인하지 않은 유저에게는 문서를 비공개.(그렇다면 로그인 유저는...?)

$wgGroupPermissions['*']['read'] = false;

위키미디어 공용 그림 사용하기[편집]

$wgUseInstantCommons = true;

코드 [[파일:Wikipedia-logo.png]]

표출


대문 타이틀 없애기[편집]

LocalSettings.php의 $wgDefaultSkin 값을 참조 vector로 설정되었다고 가정할 때, Vector.php 에서 firstHeading을 찾아 다음과 같이 수정

<?php if ( $this->data['title'] != "대문" ):  ?> <!-- firstHeading --> <h1 id="firstHeading" class="firstHeading" lang="<?php $this->data['pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getCode(); $this->html( 'pageLanguage' );  ?>"><span dir="auto"><?php $this->html( 'title' ) ?></span></h1> <!-- /firstHeading --> <?php endif; ?>

+--------------------------+---------------------------------------------


+

| Variable_name | Value

    |

+--------------------------+---------------------------------------------


+

| character_set_client | utf8

    |

| character_set_connection | utf8

    |

| character_set_database | utf8

    |

| character_set_filesystem | binary

    |

| character_set_results | utf8

    |

| character_set_server | utf8

    |

| character_set_system | utf8

    |

| character_sets_dir | C:\Program Files\MySQL\MySQL Server 5.6\shar ets\ | | collation_connection | utf8_general_ci

    |

| collation_database | utf8_general_ci

    |

| collation_server | utf8_general_ci

    |

| completion_type | NO_CHAIN

    |

| concurrent_insert | AUTO

    |

| connect_timeout | 10

    |

| core_file | OFF

    |

+--------------------------+---------------------------------------------


+

15 rows in set (0.00 sec)