도움말:편집하기: 두 판 사이의 차이

MoodleDocs
137번째 줄: 137번째 줄:


===PHP 구문 강조하기===
===PHP 구문 강조하기===
<nowiki><code php>php 코드</code> 태그를 사용해 입력합니다. </nowiki>


{| class="nicetable"
{| class="nicetable"
145번째 줄: 146번째 줄:
|
|
<code php>$user = $DB->get_record('user', array('id'=>'1');</code>
<code php>$user = $DB->get_record('user', array('id'=>'1');</code>
|<pre><nowiki><code php>$user = $DB->get_record('user', array('id'=>'1');</code></nowiki></pre>
|<pre>
<nowiki><code php>$user = $DB->get_record('user', array('id'=>'1');</code></nowiki></pre>
|}
|}



2011년 5월 28일 (토) 05:33 판

이 곳은 영문 무들의 한글화 작업 중인 곳입니다. 여러분들의 많은 도움 부탁드리겠습니다. 감사합니다.


이 곳은 무들 문서(무들문서창고)를 편집하는 방법에 대한 페이지입니다. 무들 위키는 표준 무들 위키 와 비슷하지만 좀더 강력한 형태의 프로그램입니다.

편집 탭

모든 무들문서의 페이지의 처음에 "편집" 탭이 있습니다. 이 링크는 보이는 페이지를 편집할 수 있도록 해 줍니다. 위키문법연습장을 통해 페이지를 편집하는 연습을 해 보세요. 무들 문서의 더 많은 문법들과 특별한 특성들은 아래에 작성되어있습니다. 도구막대를 편집하기도 쉽습니다.


어떤 페이지에서 편집할 수 있는 곳은 3개의 부분으로 나누어집니다 : 페이지의 꼭대기에 있는 도구막대로 편집할 수 있는 내용영역; 저장, 미리 보기, 차이보기 와 요약; 미리 보기 영역

도구막대 편집하기

섬네일을 만드는 중 오류 발생: 대상 경로에 섬네일을 저장할 수 없습니다.
도구막대 편집하기

마우스를 도구막대에 올려놓으면 어떤 기능을 하는지 나타납니다. 왼쪽부터 오른쪽으로 가면서: 굵은 글씨, 기울인 글씨, 외부 사이트 링크, 2단계 문단 제목, 파일 넣기,파일 링크하기, 수식, 위키 문법 사용하지 않기, 내 서명과 현재 시각, 가로줄

미리 보기

섬네일을 만드는 중 오류 발생: 대상 경로에 섬네일을 저장할 수 없습니다.
편집창 아래의 저장, 미리 보기, 차이보기 취소, 편집도움말 예시

편집 모드에서는 페이지의 아래에 미리 보기 단추가 나타나 편집 후의 모습을 살펴볼 수 있습니다. 누구나 실수를 합니다; 미리 보기를 통해 먼저 확인할 수 있습니다. 저장 전에 미리 보기를 하는 것은 편집 기록에 남지않으며 편리합니다. 하지만, 미리 보기 후에 저장하는 것을 꼭! 잊지 마세요.

개요 편집하기

페이지를 저장하기 전에 편집에 대한 간단한 개요를 남기는 것은 매우 좋은 습관입니다.

위의 예시에서 볼 수 있듯이 "미리 보기" 제목 다음에 개요 바로가기 링크를 넣을 수 있습니다. 무들은 "/*미리 보기*/ "를 목차 상자에 자동으로 추가합니다. 또한 위의 예시 그림에서 보이는 것 처럼 추가적인 설명을 넣을 수 있습니다. "여기에 설명을 넣어주세요 - 편집 취소 예정".

아래의 역사를 참고하세요.

차이 보기

'차이 보기'단추는 미리 보기 영역에 나타납니다. 왼쪽은 편집 후의 코드의 모습을 보여주고 오른쪽은 편집 박스의 내용이 적용되기 이전의 코드를 보여주어 차이를 알 수 있습니다.

형식지정하기

무들문서에서 사용되는 글꼴 등의 형식지정은 MediaWiki 언어의 방법이 지원됩니다. - HTML 을 배울 필요가 없습니다!

진하게, 기울이기

진하게기울이기는 홑따옴표(')를 겹쳐서, 단어를 감싸면 만들어집니다.

''기울이기''로 입력하면 기울이기로 나타납니다. (단어 양쪽에 홑따옴표 2개씩 겹쳐서 사용)
'''진하게'''로 입력하면 진하게로 나타납니다. (단어 양쪽에 홑따옴표 3개씩 겹쳐서 사용)
'''''진하게 기울이기'''''로 입력하면 진하게 기울이기로 나타납니다. (단어 양쪽에 홑따옴표 5개씩 겹쳐서 사용)

제목 달기

제목과 소제목을 달아 구분해 주는 것은 페이지의 내용을 구성을 효과적으로 하는 쉬운 방법입니다.

제목달기는 아래와 같이 가능합니다.

==제목== (2개의 등호(=)를 사용합니다)
===소제목=== (3개의 등호(=)를 사용합니다)
====하위제목==== (4개의 등호(=)를 사용합니다)

만약에 4개 이상의 제목들을 사용하면 각 페이지 상단에 목차가 자동으로 만들어집니다.(이 페이지의 상단에서 목차를 살펴보세요, 제목에 따라 목차가 자동으로 구성되어있습니다.)

들여쓰기

들여쓰는 가장 간단한 방법은 문장의 처음에 콜론(:)을 입력하는 것입니다. 콜론(:)을 연달아 입력하면 그만큼 들여쓰기가 됩니다. 또한, 자동으로 새줄이 만들어집니다. 즉,

기본적으로는 왼쪽 정렬
:오른쪽으로 한 수준 들여쓰기
::오른쪽으로 더 들여쓰기

라고 작성하면 아래 처럼 보여집니다.

기본적으로는 왼쪽 정렬
오른쪽으로 한 수준 들여쓰기
오른쪽으로 더 들여쓰기

목록 만들기

보이는 형태 입력 내용
  • 일반 목록은 만들기 쉽습니다.:
    • 각 줄 앞에 별표(*)를 사용하세요.
      • 별표(*)를 더 붙이면 한 수준씩 들어갑니다.
  • 새 줄
  • 일반 목록 추가

일반 목록 입력 끝

* ''일반 목록''은 만들기 쉽습니다.:
** 각 줄 앞에 별표(*)를 사용하세요.
*** 별표(*)를 더 붙이면 한 수준씩 들어갑니다.
*새 줄
*일반 목록 추가
일반 목록 입력 끝
  1. 번호 목록도 쉽습니다.:
    1. 각 줄 앞에 샾(#)을 사용하세요.
    2. 체계적으로 정리할 수 있고
    3. 번호를 따로 붙일 필요도 없습니다.
  2. 새 줄
  3. 번호 목록 추가

번호 목록 끝

# 번호 목록도 쉽습니다.:
## 각 줄 앞에 샾(#)을 사용하세요.
## 체계적으로 정리할 수 있고
## 번호를 따로 붙일 필요도 없습니다.
#새 줄
#번호 목록 추가
번호 목록 끝

설명 목록:
첫 번째 태그
설명
두 번째 태그
추가 설명
세 번째 태그
이런!.... 설명 추가
설명 목록:
; 첫 번째 태그 : 설명
; 두 번째 태그 : 추가 설명
; 세 번째 태그 : 이런!.... 설명 추가

코드 변환 방지

보이는 형태 입력 내용

문장의 처음에 한 칸 띄우고 시작하는 것도 의미가 있습니다.

각 문장의 처음을 한 칸 띄우면
코드를 변환하지 않고 이전의 형식으로 출력됩니다.

문장의 처음에 한 칸 띄우고 시작하는 것도 의미가 있습니다. 

 각 문장의 처음을 한 칸 띄우면
 코드를 변환하지 않고 이전의 형식으로 출력됩니다.

<pre> 태그도 사용할 수 있습니다.

<nowiki> 태그를 사용해 영역을 감싸면, 위키는 그 부분을 그대로 표시합니다. 예를 들어 여기에 <nowiki>태그를 사용해 [[대문]]을 작성할 수 있고, <nowiki> 태그가 없다면 대문 으로 변환됩니다.

도구 막대에는 <nowiki> 태그를 편하게 입력하기 위한 아이콘이 있습니다.

PHP 구문 강조하기

<code php>php 코드</code> 태그를 사용해 입력합니다.

보이는 형태 입력 내용

$user = $DB->get_record('user', array('id'=>'1');

<code php>$user = $DB->get_record('user', array('id'=>'1');</code>

Tables

See the Mediawiki help for full details of the table syntax.

What it looks like What you type
A table:
header 1 header 2 header 3
row 1, cell 1 row 1, cell 2 row 1, cell 3
row 2, cell 1 row 2, cell 2 row 2, cell 3
A table:

{| class="nicetable"
|-
! header 1
! header 2
! header 3
|-
| row 1, cell 1
| row 1, cell 2
| row 1, cell 3
|-
| row 2, cell 1
| row 2, cell 2
| row 2, cell 3
|}

Note, the class="nicetable" is our local hack for Moodledocs. You can leave it out to get a table without borders.

You can also add in more attributes if you do not want to use class="nicetable"

 border="1" cellpadding="5" cellspacing="0" align="center"

Or perhaps you want a floating table.

 style="float: right;"

Like HTML, you can also have a combined use of "colspan" and "rowspan":

 | rowspan="2" | A
 | colspan="2" style="text-align: center;" | B

(from mediaWiki Help pages)

Links and Anchors

Links to other pages are the heart of a wiki and MoodleDocs.

Page links

To make a wiki page link, simply put the word in double square brackets, like this: [[Sandbox]] . Highlight text and using the "internal link" tool will do this as well.

If you want to use words other than the article title as the text of the link, you can do so by adding the pipe "|" divider followed by the alternative name or text.

For example, if you wanted to make a link to the Sandbox, but wanted it to say "my text" you would write it as: [[Sandbox|my text]]... It would appear as: my text... but would link to the sandbox.

There are some special internal link notations. For example [[#top]] will always jump to the top of the current page.

External links

The easiest way to make an external link is to simply type in the full URL for the page you want to link to e.g. http://moodle.com.

To make the link display something other than the URL, use one square bracket at each end. If you want to make a link to moodle.com, type [http://moodle.com/] This will display the link as a number in brackets, like this: [1]. There is also the external link tool which can also assist you.

If you want the link to appear with text that you specify, add an alternative title after the address separated by a space (not a pipe). So if you want the link to appear as Moodle, just type [http://moodle.com Moodle] .

Video links

With the advent of YouTube, Google Video, and a host of other sites, it is very helpful to be able to link directly to the video from Moodle. All you have to do is provide the URL for the video in any HTML construction area in Moodle, such as "add a resource" or "add an activity" area. Simply click on the hyperlink icon and type in the URL for the video, or paste in the URL from the video site URL menu. You may want to try this link in order to view the video:[2]

You will note a menu box next to the video containing a URL and and Embed code. You can copy the URL from the menu box, or you can even provide the information for embedding the video by copying the code and embedding it on your Moodle page.

Categories links

A category is a type of index page, a page of links listed in alphabetical order. In page view mode, a list of categories that a page is linked to, appears at the bottom.

To put a page in a category, just type [[Category:]], and put the name of the category between the colon and the brackets.

To link directly to a category use [[:Category:Teacher | teacher]], this will show as teacher, note the preceding ":", which is different to [[Category:Teacher | teacher]]. The second will put the current page in the teacher category as mentioned above.

If you put a page in a category, it's usually a good idea to add a sort key to the category like so: [[Category:Developer|Eclipse]]. This will result in the page being placed under "E" like "Eclipse" in the alphabetical link list where most users will look for it.

You can also use MediaWiki's PAGENAME variable (= the article title without its namespace) as a sort key: [[Category:Developer|{PAGENAME}]].

This page is linked to the single category "MoodleDocs".

Inter-language links

Simply type [[es:Corresponding page title in Spanish]] in the English Moodle Docs, or [[en:Corresponding page title in English]] in the Spanish Moodle Docs, at the bottom of the page, below the category link. Inter-language links will appear automatically in the "In other languages" block.

If for some reason you want to refer to a page in another language version in the running text, precede the language code by a colon. Thus, the reference in the preceeding paragraph was produced by the text [[:es:Portada|Spanish Moodle Docs]].

User-page links

User names can be linked to a user page. For example [[User:Helen Foster|Helen Foster]] will appear Helen Foster and link to the user's page. Comments by other users are generally left on the Users page comment tab.

Interwiki links

[TODO]

Manual Anchors

Other than automated anchors (see below) manual anchors can be inserted by using something this this:

<span id="anchor_one">'''My Anchor.'''</span>

Which if implemented will create an anchor My Anchor..

Inside the page I can now refer to this link as the link to My Anchor by using this:

[[#anchor_one|the link to My Anchor]]

If you want to have a link back to the top of a (long) page, just insert:

[[#top|Back to top of page]]

Page comments

The page comment tab is used for discussion about the page. Sometimes before making an edit on the page for the first time, it is a good idea to check the page comments. It can be formatted the same as a main page, thus can be used to show a draft of a proposed change.

Talk page contributions may be signed and dated by typing four tildes ~~~~. This will appear as Helen Foster 06:35, 19 February 2006 (WST), for example.

There's also a handy button for signing in the toolbar of the editing field: 파일:Signature Icon.png

역사

역사 탭은 "선택된 판들을 비교하기" 단추와 비교할 판들을 선택해서 편집 내용의 차이를 살펴 볼 수 있습니다.

역사 탭을 사용해 편집 전의 이전 판으로 복원(편집 취소) 할 수 있습니다. 일반적으로는 무들문서창고 관리자들에게 맏겨지지만, 여러분도 여러분이 편집한 것을 편집 취소할 수 있습니다. 그리고 될 수 있으면 무들문서창고 관리자와 여러분은 왜 편집취소를 했는지 설명을 남겨주셔야합니다.

섬네일을 만드는 중 오류 발생: 대상 경로에 섬네일을 저장할 수 없습니다.
역사 탭을 통해 2개의 판을 비교하는 예시

Watch and unwatch page

A watched page will appear on "my watchlist" when ever someone edits the page. There is a tab next to history which acts as a toggle between watch and unwatch. In edit mode, there is also at the bottom of the edit area a "Watch this page" check off box.

See also