자립형 페이지 옵션 버튼

위키 문법 목록

경우에 따라서는 사용자에게 기본 페이지 옵션을 숨기고 선택한 버튼만 제공하는 것이 더 편리할 수 있습니다. 이 작업을 수행하기 위한 구문은 아래와 같습니다.

[[button 종류 옵션]]

종류에 들어갈 것: edit, edit-append, edit-sections, history, print, files, tags, source (페이지 소스 보기), backlinks, talk (미디어위키/위키백과와 비슷하게 작동합니다), delete, rename, site-tools, edit-meta, watchers, parent, lock-page.

가능한 속성은 아래와 같습니다.

  • text — 대체 텍스트가 표시됩니다
  • class — A 요소에 대한 CSS 클래스
  • style — CSS 스타일 정의

아이콘이 있는 "소스 보기"와 "프린트" 버튼을 만들려면 아래 코드를 사용하면 됩니다.

[[>]]
[[button source style="background-image: url(http://www.wikidot.com/local--files/files/view-source.png); background-repeat: no-repeat; background-position: bottom right; padding-right: 20px; color: #444"]]
[[button print style="background-image: url(http://www.wikidot.com/local--files/files/document-print.png); background-repeat: no-repeat; background-position: bottom right; padding-right: 20px;color: #444"]]
[[/>]]

그러면 이렇게 나옵니다.

🈲: SCP 재단의 모든 컨텐츠는 15세 미만의 어린이 혹은 청소년이 시청하기에 부적절합니다.
따로 명시하지 않는 한 이 사이트의 모든 콘텐츠는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스를 따릅니다.