130 likes | 809 Views
MediaWiki 사용법. 정경훈 wp:ko:User:PuzzletChung. Features. Common features with other wiki one article (page) for one title Linking Uploading media Templates. Title of an article. 띄어쓰기 가능 (_ 로 대체 ) Namespaces Image:, Category:, Project:, User:, Help:, Template:, Special: ‘ Talk ’ s 제약
E N D
MediaWiki 사용법 정경훈 wp:ko:User:PuzzletChung
Features • Common features with other wiki • one article (page) for one title • Linking • Uploading media • Templates
Title of an article • 띄어쓰기 가능 (_로 대체) • Namespaces • Image:, Category:, Project:, User:, Help:, Template:, Special: • ‘Talk’s • 제약 • No #<>[]|{} • Case-sensitive (단, 첫 글자 대문자)
링크 • CamelCase 안 됨! • [[링크]] • [[namespace:링크]] • [[링크|이렇게]] • [[wp:링크]] • [[wp:링크|이렇게]] • [[/하위 페이지]] • [[../하위 페이지]] • [[page#heading]] • [[#heading]] • 자기 자신에 대한 링크는 bold 처리됨 • [http://ko.wikipedia.org/ 이렇게]
문법 • ‘‘‘bold’’’, ‘‘italic’’, ‘‘‘‘‘bold and italic’’’’’ • 한 번 줄 바꿈은 무시됨 • 서명 • ~~~ = 서명 • ~~~~ = 서명+시각 • ~~~~~ = 시각 • Tags • <strike>, <u>, <tt>, <small>, <sup>, <sub>, <br>, <center>, <pre>, <blockquote>, <div>, <span>, <!-- -->, …… • <nowiki>, <math>, <ref> and <references/> • == heading (h2) == • === heading (h3) === • <hr> ----
목록 * Unordered list # Ordered list : Indented text ; “Definition list” (bold text) * Nested List *# Nested List *#: Nested List *#:# Nested List *#:#; Nested List
표 {| class=“wikitable” border=“1” |+ Table Caption |- class=“this is tr” ! This is th ! Another th !! Yet another th |- class=“another tr” | style=“some style” | This is td | Another td || Yet another td |}
Using MediaWiki • Minor changes • Edit summary • Save, Show preview, Show changes • Diffs and History • Page moving (rename) • Revert and rollback • #REDIRECT [[foo]] • CSS & JS • [[MediaWiki:Monobook.css]] • [[MediaWiki:Common.css]] • [[MediaWiki:Common.js]] • [[User:Foo/Monobook.css]]
Image: • [[Image:Sshot.png]] • [[Image:Sshot.png|300x250px]] • [[Image:Sshot.png|thumb|내 스샷]] • [[Image:Sshot.png|thumb|300x250px|내 스샷]] <gallery> Image:Sshot1.png|스샷 설명 1 그림 들어갈 자리를 차지하는 글자 Image:Sshot2.png|스샷 설명 2 … </gallery>
Category: • Automatically generated list of articles that links to that category • [[Category:미디어위키]] • [[Category:미디어위키|사용법]] • [[:Category:미디어위키]]
Template: • {{foo}} includes [[Template:Foo]] • {{:foo}} includes [[Foo]] • {{help:foo}} includes [[Help:Foo]] {{example}} {{navigation box example}}
Infobox • Template 안에 {{{bar}}}라고 쓰면 bar라는 이름의 argument를 받는다 • {{{bar|기본값}}} • Template을 쓸 때 {{foo|bar=1}}이라고 쓰면 bar의 값으로 1이 넘어간다 • {{foo|arg1|arg2}} • {{{1}}} arg1 • {{{2}}} arg2 {{infobox example |name=pizza |origin=Italy |price=5000 won}}
기타 • Special:Specialpages (Special:) • Special:Allmessages (MediaWiki:) • Variables • {{SITENAME}}, {{SERVER}} • {{PAGENAME}} – excluding namespace • {{CURRENTDAY}}, {{LOCALDAY}} • ParserFunctions • {{#expr:1+1}}