"창조도시위키문법"의 두 판 사이의 차이

인디사이드위키
이동: 둘러보기, 검색
(새 문서: == 텍스트 서식 마크업 == {| class="wikitable" ! 설명 ! width=40% | 문법 ! width=40% | 결과 |- ! colspan="3" style="background: #ABE" | 글자(인라인) 서식 - "모든...)
(차이 없음)

2015년 3월 23일 (월) 16:43 판

텍스트 서식 마크업

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

이탤릭

볼드체
'''볼드'''

볼드

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

볼드 & 이탤릭

취소선
<strike> 취소선 </strike>
취소선
위키 마크업 무시
<nowiki>''마크업'' 무시</nowiki>

''마크업'' 무시

위키 마크업 한 번만 무시
[[Special:MyLanguage/API:Main page|API]]<nowiki/> 확장

API 확장

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

=== 제목 3 ===

==== 제목 4 ====

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

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

틀노트

제목 2

제목 3

제목 4

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

이전 텍스트


이후 텍스트

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

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

번호 목록
# 각 줄의 시작을
# [[Wikipedia:Number_sign|샵]] (#)으로 시작한다.
## 별표가 많아질 수록
### 하위 수준으로 적용된다.
# 줄넘김 <br />은 목록 수준을 유지한다.
### 하지만 중간 단계를 뛰어넘으면 공백을 만든다.
# 공백 줄

# 목록을 완료하고 새로운 목록을 생성한다.
다른 시작 또한
목록을 완료한다.
  1. 각 줄의 시작을
  2. (#)으로 시작한다.
    1. 별표가 많아질 수록
      1. 하위 수준으로 적용된다.
  3. 줄넘김
    은 목록 수준을 유지한다.
      1. 하지만 중간 단계를 뛰어넘으면 공백을 만든다.
  4. 공백 줄
  1. 목록을 완료하고 새로운 목록을 생성한다.

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

정의 목록
;아이템 1
: 정의 1
;아이템 2
: 정의 2-1
: 정의 2-2
아이템 1
정의 1
아이템 2
정의 2-1
정의 2-2
텍스트 들여쓰기
: 1번 들여쓰기
:: 2번 들여쓰기
::::: 다중 들여쓰기

틀노트

1번 들여쓰기
2번 들여쓰기
다중 들여쓰기
혼합 목록
# 일
# 이
#* 일.일
#* 일.이
# 삼
#;삼 아이템 일
#:삼 정의 일
# 사
#:사 정의 일
#:이렇게 하면 이어지는 들여쓰기로 보이며
#: <br /> 대신 
#: 사용할 수 있다.
# 오
## 오 하위 일
### 오 하위 일 하위 일
## 오 하위 이

틀노트

    • 일.일
    • 일.이
  1. 삼 아이템 일
    삼 정의 일
  2. 사 정의 일
    이렇게 하면 이어지는 들여쓰기로 보이며
    <br /> 대신
    사용할 수 있다.
    1. 오 하위 일
      1. 오 하위 일 하위 일
    2. 오 하위 이틀맨
사전서식 텍스트
 각 줄을 공백으로 시작한다.
 텍스트는 '''사전서식''' 되며
 ''마크업''도 '''''가능'''''하다.

틀노트

각 줄을 공백으로 시작한다.
텍스트는 사전서식 되며
마크업가능하다.
사전서식 텍스트 블록
 <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


Paragraphs

MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <br />.


HTML tags

Some HTML tags are allowed in MediaWiki, for example <code>, <div>, <span> and <font>. These apply anywhere you insert them.

Description You type You get
Inserted
(Displays as underline in most browsers)
<ins>Inserted</ins>

or

<u>Underline</u>

Inserted

or

Underline

Deleted
(Displays as strikethrough in most browsers)
<s>Struck out</s>

or

<del>Deleted</del>

Struck out

or

Deleted

Fixed width text
<code>Source code</code>

or

<tt>Fixed width text</tt>

Source code

or

Fixed width text

Blockquotes
Text before
<blockquote>Blockquote</blockquote>
Text after

Text before

Blockquote

Text after

Comment
<!-- 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>

틀노트

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>

틀노트

Text is '''preformatted''' 
with a style and 
''markups'' '''''cannot''''' be done

continued:

Description You type You get
Customized preformatted text with text wrap according to available width
<pre style="white-space: pre-wrap; 
white-space: -moz-pre-wrap; 
white-space: -pre-wrap; 
white-space: -o-pre-wrap; 
word-wrap: break-word;">
This long sentence is used to demonstrate text wrapping. 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.
Preformatted text with text wrap according to available width
<code>
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.
</code>

This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.


Inserting symbols

Symbols and other special characters not available on your keyboard can be inserted through 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 —.


틀노트

HTML symbol entities
Á á Â â ´ Æ æ À à Α α & Å å Ã ã Ä ä Β β ¦ Ç ç ¸ ¢
Χ χ ˆ © ¤ ° Δ δ ÷ É é Ê ê È è Ε ε Η η
Ð ð Ë ë ƒ ½ ¼ ¾ Γ γ > Í í Î î ¡ Ì ì Ι ι
¿ Ï ï Κ κ Λ λ « < ¯ µ · Μ μ  
¬ Ñ ñ Ν ν Ó ó Ô ô Œ œ Ò ò Ω ω Ο ο ª º Ø ø Õ õ Ö
ö Φ φ Π π ϖ ± £ Ψ ψ " » ® Ρ ρ
Š š § ­ Σ σ ς ¹ ² ³ ß Τ τ Θ θ ϑ Þ þ ˜
× Ú ú Û û Ù ù ¨ ϒ Υ υ Ü ü Ξ ξ Ý ý ¥ ÿ Ÿ Ζ ζ
Description You type You get
Copyright symbol
&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;">Typo to be corrected</span>  → Typo to be corrected
&lt;span style="color: red; text-decoration: line-through;">Typo to be corrected</span>  → <span style="color: red; text-decoration: line-through;">Typo to be corrected</span>

Nowiki for HTML

<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;").


Other formatting

Beyond the text formatting markup shown hereinbefore, here are some other formatting references:

You can find more references at Help:Contents. [[Category:Help틀:Langcat|Formatting]]