Help:서식 지정

From mediawiki.org
This page is a translated version of the page Help:Formatting and the translation is 54% complete.
Outdated translations are marked like this.
PD 주의사항: 이 문서를 편집하면 CC0에 따라 당신의 기여한 것을 배포하는 데 동의하는 것으로 간주됩니다. 자세한 내용은 퍼블릭 도메인 도움말 문서를 확인 하세요. PD
같이 보기: Help:Advanced editing

위키 마크업을 이용하여 텍스트의 서식을 지정할 수 있습니다. 위키 마크업은 별표(*), 따옴표(') 또는 등호(=)와 같은 부호들을 이용하며, 간혹 삽입되는 위치에 의존하는 경우도 있습니다. 예를 들어, 단어를 이탤릭체로 적용하려면, 단어의 앞과 뒤를 따옴표 두 개로 ''이렇게'' 감싸면 됩니다.

텍스트 서식 마크업

설명 문법 결과
글자(인라인) 서식 - "모든 곳에 적용 가능"
이탤릭체
''이탤릭''

이탤릭

볼드체
'''볼드'''

볼드

볼드와 이탤릭
'''''볼드 & 이탤릭'''''

볼드 & 이탤릭

위키 마크업 무시
<nowiki>''마크업'' 무시</nowiki>

''마크업'' 무시

섹션 서식 - "줄 맨 처음에서만 적용 가능"
여러 단계의 수준별 제목
== 제목 2 ==

=== 제목 3 ===

==== 제목 4 ====

===== 제목 5 =====

====== 제목 6 ======

  • 제목 1은 페이지 이름이기 때문에 사용하지 않는다.
  • Do not put any text on the same line after the ending equal signs.
  • 4개 이상의 제목을 가진 글은 목차가 생성된다. (특수 명령 __NOTOC__을 사용하지 않는 한)

제목 2

제목 3

제목 4

제목 5
제목 6
가로선
이전 텍스트
----
이후 텍스트

이전 텍스트


이후 텍스트

목록 내어쓰기
* 각 줄의 시작을
* [[Wikipedia:asterisk|별표]] (*)로 시작한다.
** 별표가 많아질 수록
*** 하위 수준으로 적용된다.
* 줄넘김 <br />은 목록 수준을 유지한다.
*** 하지만 중간 단계를 뛰어넘으면 공백을 만든다.
별표가 아닌 다른 시작은 목록을 끝낸다.

* combine bullet list
** with definition 
::- definition
** creates empty space

* combine bullet list
** with definition 
*:- definition
** without empty spaces

*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition
  • 각 줄의 시작을
  • 별표 (*)로 시작한다.
    • 별표가 많아질 수록
      • 하위 수준으로 적용된다.
  • 줄넘김
    은 목록 수준을 유지한다.
      • 하지만 중간 단계를 뛰어넘으면 공백을 만든다.

별표가 아닌 다른 시작은 목록을 끝낸다.

  • combine bullet list
    • with definition
- definition
    • creates empty space
  • combine bullet list
    • with definition
    - definition
    • without empty spaces
  • bullet list
- definition
  • sublist that doesn't create empty
  • spaces after definition
번호 목록
# 각 줄의 시작을
# [[Wikipedia:Number_sign|샵]] (#)으로 시작한다.
## 별표가 많아질 수록
### 하위 수준으로
### 적용된다.
# 줄넘김 <br />은 목록 수준을 유지한다.
### 하지만 중간 단계를 뛰어넘으면 공백을 만든다.
# 공백 줄은

# 목록을 완료하고 새로운 목록을 생성한다.
다른 시작 또한
목록을 완료한다.

<nowiki>#</nowiki> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.
  1. 각 줄의 시작을
  2. (#)으로 시작한다.
    1. 별표가 많아질 수록
      1. 하위 수준으로 적용된다.
  3. 줄넘김
    은 목록 수준을 유지한다.
      1. 하지만 중간 단계를 뛰어넘으면 공백을 만든다.
  4. 공백 줄
  1. 목록을 완료하고 새로운 목록을 생성한다.

다른 시작 또한 목록을 완료한다.

# use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.

정의 목록
;아이템 1
: 정의 1
;아이템 2
: 정의 2-1
: 정의 2-2
At the end of the line, if the line begins with a semicolon (;), any inserted colon (:) will not be displayed. If you want for the colon to be displayed, escape it by writing &#58;.
아이템 1
정의 1
아이템 2
정의 2-1
정의 2-2
텍스트 들여쓰기
: 1번 들여쓰기
:: 2번 들여쓰기
::::: 다중 들여쓰기

이러한 우회 수단은 접근성에 악영향을 줄 수 있다.
1번 들여쓰기
2번 들여쓰기
다중 들여쓰기
혼합 목록
# 일
# 이
#* 일.일
#* 일.이
# 삼
#;삼 아이템 일
#:삼 정의 일
# 사
#:사 정의 일
#:이렇게 하면 이어지는 들여쓰기로 보이며
#: <nowiki><br></nowiki> 대신 
#: 사용할 수 있다.
# 오
## 오 하위 일
### 오 하위 일 하위 일
## 오 하위 이

줄을 나누기 위해 #:*:를 사용하는 것 또한 접근성에 악영향을 끼칠 수 있다.
    • 이.일
    • 이.이
  1. 삼 아이템 일
    삼 정의 일
  2. 사 정의 일
    이렇게 하면 이어지는 들여쓰기로 보이며
    <br> 대신
    사용할 수 있다.
    1. 오 하위 일
      1. 오 하위 일 하위 일
    2. 오 하위 이
사전서식 텍스트
 각 줄을 공백으로 시작한다.
 텍스트는 '''사전서식''' 되며
 ''마크업''도 '''''가능'''''하다.
 Text is '''preformatted''' and
 ''markups'' '''''can''''' be done.

이런 형태의 사전서식은 섹션 서식에만 적용할 수 있다. 텍스트 단위 서식 마크업은 여전히 유효하다.
각 줄을 공백으로 시작한다.
텍스트는 사전서식 되며
마크업가능하다.
Text is preformatted and
markups can be done.
사전서식 텍스트 블록
 <nowiki>Start with a space in the first column,
(before the <nowiki>).

Then your block format will be
    maintained.

This is good for copying in code blocks:

def function():
    """documentation string"""

    if True:
        print True
    else:
        print False</nowiki>
Start with a space in the first column,
(before the <nowiki>).

Then your block format will be
    maintained.

This is good for copying in code blocks:

def function():
    """documentation string"""

    if True:
        print True
    else:
        print False

문단

미디어위키는 한 줄 줄바꿈을 무시한다. 새 문단을 시작하려면, 한 줄을 띄우고 줄바꿈하면 된다. HTML 태그 ‎<br />를 사용하여 강제로 줄바꿈을 할 수 있다.

HTML 태그

일부 HTML 태그는 미디어위키에서 사용할 수 있습니다. 사용할 수 있는 태그는 <code>, <div>, 그리고 <span>가 있습니다. 이 태그들은 문서의 어느 부분에 넣어도 자동으로 활성화됩니다.

설명 작성하고, 결과는
Inserted
(Displays as underline in most browsers)
<ins>Inserted</ins>

또는

<u>밑줄</u>

Inserted

또는

밑줄

Deleted
(Displays as strike-through in most browsers)
<s>가로줄</s>

또는

<del>삭제됨</del>

가로줄

또는

삭제됨

Fixed width text
<code>원본 코드</code>
원본 코드
양쪽 들여쓰기
이전 텍스트
<blockquote>양쪽 들여쓰기</blockquote>
이후 텍스트
If the quote contains multiple paragraphs the tags need to be on separate lines to display properly, i.e.:
<blockquote>
First paragraph.

Second paragraph.
</blockquote>

이전 텍스트

양쪽 들여쓰기

이후 텍스트

Quotes
<q>This is a quotation</q>
The q element must not be used in place of quotation marks that do not represent quotes; for example, it is inappropriate to use the q element for marking up sarcastic statements.[1]
This is a quotation
의견
<!-- This is a comment -->
Comments are visible only 
in the edit zone.

Comments are visible only in the edit zone.

Completely preformatted text
<pre>
Text is '''preformatted''' and 
''markups'' '''''cannot''''' be done
</pre>

For marking up of preformatted text, check the "Preformatted text" entry at the end of the previous table.
Text is '''preformatted''' and 
''markups'' '''''cannot''''' be done
Customized preformatted text
<pre style="color: red">
Text is '''preformatted''' 
with a style and 
''markups'' '''''cannot''''' be done
</pre>

A CSS style can be named within the style attribute.
Text is '''preformatted''' 
with a style and 
''markups'' '''''cannot''''' be done

continued:

설명 작성하고, 결과는
Default preformatted text has a CSS attribute (white-space: pre-wrap;) to wrap the text according to available width
<pre>
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
</pre>
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
Customized preformatted text with disabled text wrapping
<pre style="white-space: pre;">
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
</pre>
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.


기호 삽입

Symbols and other special characters not available on your keyboard can be inserted in a multitude of ways. Many Operating Systems and browsers allow you to insert special characters through a menu option or Operating System panel. Additionally, you can use the WikiEditor or VisualEditor to insert them into the edit screen.

As a last resort, you can use a special sequence of characters. Those sequences are called HTML entities. For example, the following sequence (entity) &rarr; when inserted will be shown as right arrow HTML symbol → and &mdash; when inserted will be shown as an em dash HTML symbol —.


Hover over any symbol to reveal the entity that produces it. Some symbols not available in the current font will appear as empty squares.
HTML symbol entities
Á á Â â ´ Æ æ À à Α α & Å å Ã ã Ä ä Β β ¦ Ç ç ¸ ¢
Χ χ ˆ © ¤ ° Δ δ ÷ É é Ê ê È è Ε ε Η η
Ð ð Ë ë ƒ ½ ¼ ¾ Γ γ > Í í Î î ¡ Ì ì Ι ι
¿ Ï ï Κ κ Λ λ « < ¯ µ · Μ μ  
¬ Ñ ñ Ν ν Ó ó Ô ô Œ œ Ò ò Ω ω Ο ο ª º Ø ø Õ õ Ö
ö Φ φ Π π ϖ ± £ Ψ ψ " » ® Ρ ρ
Š š § ­ Σ σ ς ¹ ² ³ ß Τ τ Θ θ ϑ Þ þ ˜
× Ú ú Û û Ù ù ¨ ϒ Υ υ Ü ü Ξ ξ Ý ý ¥ ÿ Ÿ Ζ ζ
설명 작성하고, 결과는
저작권 표시 &copy;
©
Greek delta letter symbol &delta;
δ
Euro currency symbol &euro;

See the list of all HTML entities on the Wikipedia article List of HTML entities. Additionally, MediaWiki supports two non-standard entity reference sequences: &רלמ; and &رلم; which are both considered equivalent to &rlm; which is a right-to-left mark. (Used when combining right to left languages with left to right languages in the same page.)

HTML tags and symbol entities displayed themselves (with and without interpreting them)

&amp;euro;  → &euro;
<span style="color: red; text-decoration: line-through;">고쳐야 할 오타</span>  → 고쳐야 할 오타
&lt;span style="color: red; text-decoration: line-through;">Typo to be corrected</span>  → <span style="color: red; text-decoration: line-through;">고쳐야 할 오타</span>

HTML에 Nowiki

‎<nowiki /> can prohibit (HTML) tags:

  • <<nowiki />pre>  → <pre>

But not & symbol escapes:

  • &<nowiki />amp;  → &

To print & symbol escapes as text, use "&amp;" to replace the "&" character (eg. type "&amp;nbsp;", which results in "&nbsp;").

다른 형식

앞에서 설명한 텍스트 형식 지정 문법 이외에도 다른 형식 지정 참조가 있습니다.

You can find more references at 도움말:목차 .

References