가온 위키:기능 구현 불가-누가 해결책을 알려주세요!: 두 판 사이의 차이

Admin_Old (토론)
편집 요약 없음
Admin_Old (토론)
편집 요약 없음
10번째 줄: 10번째 줄:
# [https://quiple.mcsv.io/w/퀴플위키 퀴플위키]에서 해결책을 찾았다. 감사합니다. 퀴플위키!<ref>최신 버전 기준이다.</ref>
# [https://quiple.mcsv.io/w/퀴플위키 퀴플위키]에서 해결책을 찾았다. 감사합니다. 퀴플위키!<ref>최신 버전 기준이다.</ref>
====수정 전====
====수정 전====
<syntaxhighlight lang="js" highlight="5" line start="55">
<syntaxhighlight lang="JavaScript" highlight="5" start='55' line>
var recentChanges, html, time, line, text;
var recentChanges, html, time, line, text;
recentChanges = data.query.recentchanges;
recentChanges = data.query.recentchanges;
27번째 줄: 27번째 줄:
</syntaxhighlight><br/>
</syntaxhighlight><br/>
====수정 후====
====수정 후====
<syntaxhighlight lang="js" highlight="5" line start="55">
<syntaxhighlight lang="JavaScript" highlight="5" start='55' line>
var recentChanges, html, time, line, text;
var recentChanges, html, time, line, text;
recentChanges = data.query.recentchanges;
recentChanges = data.query.recentchanges;

2018년 10월 7일 (일) 14:29 판

이 문서는...

  1. 답답한 우리의 가온 위키 관리자가 구현하지 못해, 착한 유저가 해결책을 제시한 경우, 감사의 표시로 이곳과 가온 위키 커뮤니티에 표시하는 곳입니다.

구현 못한 부분

니코동 영상 가져오기

  1. 어디서는 SSL을 적용해도 잘만 가져오는데, 여기는 못 가져오네...

최근바뀜에서 문서명에 / 가 포함되어 있으면, 오류 뜨는 경우 수정됨)

  1. 같은 스킨을 쓰는 리브레 위키에서는 잘 되던데... 서버 설정 오류인가?
  2. 퀴플위키에서 해결책을 찾았다. 감사합니다. 퀴플위키![1]

수정 전

var recentChanges, html, time, line, text;
			recentChanges = data.query.recentchanges;
			html = recentChanges.map( function ( item ) {
				time = new Date( item.timestamp );
				line = '<li><a class="recent-item" href = "' + ( mw.config.get( 'wgArticlePath' ) ).replace( '$1', encodeURIComponent( item.title ) ) + '" title="' + item.title + '">[' + timeFormat( time ) + '] ';
				text = '';
				if ( item.type === 'new' ) {
					text += '[New]';
				}
				text += item.title;
				if ( text.length > 13 ) {
					text = text.substr( 0, 13 );
					text += '...';
				}


수정 후

var recentChanges, html, time, line, text;
			recentChanges = data.query.recentchanges;
			html = recentChanges.map( function ( item ) {
				time = new Date( item.timestamp );
				line = '<li><a class="recent-item" href = "' + ( mw.config.get( 'wgArticlePath' ) ).replace( '$1', encodeURI( item.title ) ) + '" title="' + item.title + '">[' + timeFormat( time ) + '] ';
				text = '';
				if ( item.type === 'new' ) {
					text += '[New]';
				}
				text += item.title;
				if ( text.length > 13 ) {
					text = text.substr( 0, 13 );
					text += '...';
				}


  1. 59번째 줄의 encodeURIComponent( item.title ) )에서 encodeURIComponent를 encodeURI로 변경

구현한 기능

  • 아직 존재하지 않습니다.

각주

  1. 최신 버전 기준이다.
• 현재 페이지 URL 줄이기