문법

기본 문법

기본적으로 Creole 문법을 따른다.

문단

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

  • Bug
    "=>" 표현이 ⇒ 인 데, 문단으로 인식하여 엉킨다. <nowiki></nowiki>를 잘 활용하면 해결된다.


목록

* aaa
    * bbb
  - xxx
    - yyy

  • aaa
    • bbb
  1. xxx
    1. yyy

문자열

  • 개행 : \\ (※ 뒤 공백 포함!)
  • 밑줄(Underline) : __문자열__
  • 굵게(Bold) : **문자열** (※ "*"은 문단 표시 문법과 겹치므로 혼용시 주의 필요!)
  • 기울임(Italic) : //문자열//

Source Code

본문 내 삽입

  • 방법1

<sxh python>
print "Hello, World!";
</sxh>

print "Hello, World!";

  • 방법2

<code python>
print "Hello, World!";
</file>

print "Hello, World!";

내려 받을 수 있는 소스 파일

<file python HelloWorld.py>
print "Hello, World!";
</code>

print "Hello, World!";

문자열 꾸미기 (Typography)

https://www.dokuwiki.org/plugin:typography

short name css property name description
fc color color of text
bg background-color background color of text
fs font-size font size of text (large or small)
fw font-weight weight of a font (thick or thin characters in text)
fv font-variant display text in a small-caps font
ff font-family font family for text, must be single quoted if a font name contains white-space and non-ASCII characters
lh line-height space between the lines
ls letter-spacing an extra space between characters (in px, em, etc)
ws word-spacing an additional space between words (in px, em, etc)
sp white-space specifies how white-space is handled (preserve or collapse)
va vertical-align sets the vertical alignment
- text-transform controls the capitalization of text (capitalize, uppercase or lowercase)
- text-shadow adds shadow to text
wf (web-font) specify a web font class which prefixed “wf-”

공지(Note)

https://www.dokuwiki.org/plugin:note

특정 페이지의 요약 설명이나 공지를 나타내는 기능.

'OPTION' : important, warning, tip

<note 'OPTION'>
Some messages...
</note>

empty
important
warning
tip

표 (Table)

|<70%>|
^  제목1       ^  제목 2      ^  제목 3    ^
|왼쪽 정렬     |  가운데 정렬  |  오른쪽 정렬|
|  세로 합병   |  가로 합병               ||
|:::          |  -           |  -        |

※ 정렬은 띄어쓰기 "두칸"으로 구분한다.

제목1 제목 2 제목 3
왼쪽 정렬 가운데 정렬 오른쪽 정렬
세로 합병 가로 합병
- -

넘겨주기 (Redirect)

https://www.dokuwiki.org/plugin:pageredirect

~~REDIRECT>namespace:page~~
#redirect namespace:page

주석(Comment)

동해물과 /*백두산이*/ 마르고 닳도록              //앞에 빈칸 있어야 인식!
하느님이<WRAP hide>보우하사</WRAP>우리나라 만세
동해물과 마르고 닳도록
하느님이

보우하사

우리나라 만세

페이지안에 페이지 포함시키기(include)

https://www.dokuwiki.org/plugin:include

{{page>[id]&[flags]}}
{{section>[id]#[section]&[flags]}}
{{namespace>[namespace]&[flags]}}
{{tagtopic>[tag]&[flags]}}

Tag/Category

같은 주제로 묶어서 탐색할 때 사용

https://www.dokuwiki.org/plugin:tag

{{tag>문법 syntax wiki_syntax}}

참조

Indexmenu (File tree)

https://www.dokuwiki.org/plugin:indexmenu

{{indexmenu>#1 .:jack#1 .:june|js}}


토론 (Discussion)

https://www.dokuwiki.org/plugin:discussion

작성한 페이지에 댓글을 달아 사용자간 소통할 수 있는 기능

~~DISCUSSION:closed~~
~~DISCUSSION:closed~~
~~DISCUSSION:closed~~

~~DISCUSSION:closed|Custom Title String~~
~~DISCUSSION:closed|Custom Title String~~

wiki/syntax.txt · Last modified: 2022/05/17 11:36 by ledyx