2012-03-09 3 views

답변

1

Manual:Creating pages with preloaded text (mediawiki.org)을 참조하십시오.

사용자가 새 페이지를 추가 할 수있는 수정 링크를 수동으로 만드는 경우 바로 include a preload=SomePageName parameter in the URL 수 있습니다.

또는 일반적으로 적절한 링크를 생성하거나 페이지 제목을 기반으로 프리로드 템플릿을 선택하여 프로세스 부분을 자동화하는 extensions 중 하나를 사용할 수도 있고, EditFormPreloadText hook. 물론

if($("#wpTextbox1").val() == ""){ 
    $("#wpTextbox1").val("This content is generated from 'MediaWiki:Common.js'\rPlease use a template by typing into the Search field 'Template:'. From there, your available templates will be visible from the auto-complete options."); 
} 

, 당신은 발 인수에 하드 코드 템플릿 (또는 무엇이든) 수 :

1

난 그냥 이런 식으로했다.

관련 문제