wiki:recommended_plugin
[공지]회원 가입 방법
[공지]글 작성 및 수정 방법
[홈레코딩 필독서]"모두의 홈레코딩"구매링크
[공지]글 작성 및 수정 방법
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판다음 판 | 이전 판 | ||
wiki:recommended_plugin [2022/02/10] – 정승환 | wiki:recommended_plugin [2023/10/30] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 1: | 줄 1: | ||
======추천 플러그인====== | ======추천 플러그인====== | ||
- | =====인클루드===== | + | =====Include===== |
https:// | https:// | ||
줄 16: | 줄 16: | ||
도쿠위키에 다양한 새로운 위키 문법을 추가해준다. 필수. 특히 dw2pdf 와 같은 플러그인과 완벽 호환됨. | 도쿠위키에 다양한 새로운 위키 문법을 추가해준다. 필수. 특히 dw2pdf 와 같은 플러그인과 완벽 호환됨. | ||
- | ====== Examples for the Wrap Plugin ====== | + | {{page> |
- | ===== Basic syntax | + | 이 밖에도 많은 문법 기능이 추가된다.\\ |
+ | 편집기 위에 메뉴가 나타나므로 몇가지 제외하고 문법을 따로 익힐필요는 없어보임 | ||
+ | =====SocialCard===== | ||
- | An uppercase **%%< | + | https://www.dokuwiki.org/ |
- | < | + | SNS에 링크할시 자동으로 오픈 그래프를 표시해준다. |
- | <WRAP classes #id width : | + | |
- | " | + | |
- | </ | + | |
- | or | + | 페이스북은 이미지가 안나오는 버그가 있으나 action.php에서 og:image 부분의 $secure 부분 삭제를 통해 버그 수정 가능 |
- | <block classes #id width :language> | + | |
- | " | + | |
- | </ | + | |
- | or | + | =====Upgrade===== |
- | <div classes #id width : | + | |
- | " | + | |
- | </ | + | |
- | </ | + | |
- | A lowercase **%%< | + | https://www.dokuwiki.org/ |
- | < | + | 도쿠위키에 자체 도쿠위키 업그레이드 기능을 추가해준다. |
- | <wrap classes #id width : | + | 시놀로지 DSM7.0 이후로 도쿠위키에 대한 시놀로지 패키지 지원이 끊겼지만, |
- | or | + | 사실 DSM7.0에 도쿠위키를 새로 설치하는 것도 어렵지는 않다. 다운로드 받아서 설치하면 됨. |
- | <inline classes #id width : | + | Windows 용의 마이크로 aphache 가 포함되어 설치도 가능함.... |
- | or | + | https://download.dokuwiki.org/ |
- | <span classes #id width :language>" | + | |
- | </code> | + | |
- | :!: Please note, some things **won' | + | =====DISQUS===== |
- | * **alignments** (including alignments generated by changing the text direction) | + | DISQUS 댓글 시스템을 도쿠위키에 설치할 수 있게 해준다. |
- | * **multi-columns** | + | |
- | * and **widths** | + | |
- | if the according wrap isn't floated as well. | + | |
- | A shorthand of uppercase **%%< | + | 해당 플러그인의 설명에는 아래의 코드를 사용하는 탬플릿의 Main.php 에 댓글이 표시되고 싶은 위치 에 넣으면 된다고 하는데, 사실 $shortname 을 자신의 Disqus Shortname 으로 적어주어야만 제대로 동작한다 뭔가 변소 호출에 실패 하는 듯하다. |
- | < | + | https://www.dokuwiki.org/plugin: |
- | <WRAP classes #id /> | + | |
- | or | + | |
- | <block classes #id /> | + | |
- | or | + | |
- | <div classes #id /> | + | |
- | </ | + | |
- | and | + | < |
- | < | + | global $ACT; |
- | <wrap classes #id /> | + | if($ACT == ' |
- | or | + | $disqus = & |
- | <inline classes #id /> | + | if($disqus) echo $disqus->_disqus($shortname); |
- | or | + | } |
- | <span classes #id /> | + | ?> |
</ | </ | ||
- | ===== Classes and Styles ===== | + | 를 아래와 같이 해야한다. |
- | + | < | |
- | ==== Columns and Floats ==== | + | global $ACT; |
- | + | if($ACT | |
- | You can have columns easily by adding the class '' | + | $disqus |
- | < | + | |
- | + | } | |
- | The example below uses the following structure: | + | ?> |
- | + | ||
- | < | + | |
- | <WRAP group> | + | |
- | + | ||
- | <WRAP third column> | + | |
- | <WRAP third column> | + | |
- | <WRAP third column> | + | |
- | + | ||
- | </WRAP> | + | |
</ | </ | ||
+ | 필자의 경우는 아래와 같이 wikipage stop 과 page info 사이에 코드를 넣어서 작동하게 했다. | ||
- | <WRAP group> | + | {{:wiki:20221014-172042.png}} |
- | <WRAP third column> | + | |
- | === Floating Options === | + | |
- | + | ||
- | Normally you would only need the class '' | + | |
- | + | ||
- | * **'' | + | |
- | * **'' | + | |
- | * **'' | + | |
- | * **'' | + | |
- | </ | + | |
- | + | ||
- | <WRAP third column> | + | |
- | === Widths === | + | |
- | + | ||
- | You can set any valid widths (but only on divs): '' | + | |
- | + | ||
- | ^type^e.g.^note^ | + | |
- | ^'' | + | |
- | ^'' | + | |
- | ^'' | + | |
- | + | ||
- | </ | + | |
- | <WRAP third column> | + | |
- | === Width Keywords === | + | |
- | + | ||
- | With certain width keywords you can fit your columns automatically to fill the available horizontal space. Those columns will also react to the screen size, so will be responsive and wrap underneath each other on mobile devices. | + | |
- | + | ||
- | There are four width keywords. These should not be combined with any other width, only '' | + | |
- | + | ||
- | * **'' | + | |
- | * **'' | + | |
- | * **'' | + | |
- | * **'' | + | |
- | + | ||
- | :!: Attention: In order to work properly, wraps with width keywords need an **additional '' | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | You can use the same options with spans (as each element that floats is automatically a block level element), but it probably doesn' | + | |
- | + | ||
- | :!: Attention: What is the difference between widths and width keywords and when is it best to use which? **Widths** can cause problems and will never fully add up, therefore will break the layout under some circumstances. (See [[http:// | + | |
- | + | ||
- | All of those options will also work in the [[#boxes and notes]] wraps (see below). | + | |
- | + | ||
- | === Old Emulated Headline (deprecated) === | + | |
- | + | ||
- | When the '' | + | |
- | + | ||
- | If that config options is enabled and you need text that is bold and italic, simply use it the other way around: '' | + | |
- | + | ||
- | + | ||
- | === Multi-columns === | + | |
- | + | ||
- | <WRAP colmedium> | + | |
- | Multi-columns work best in modern browsers (no IE9 and below) but should still be considered experimental as some browser behaviour is still inconsistent and buggy. | + | |
- | + | ||
- | Just use **'' | + | |
- | Or you can use **'' | + | |
- | The former type of column is determined by its width, the latter by its amount. The width-based columns are ideal for different layouts and device widths. | + | |
- | + | ||
- | :!: Note: Multi-columns don't make sense for spans. | + | |
- | </ | + | |
- | + | ||
- | Don't use this for bigger columns containing more than just text. Use the [[#columns and floats]] mentioned above instead. | + | |
- | + | ||
- | + | ||
- | ==== Alignments ==== | + | |
- | + | ||
- | You can use these different text alignments: | + | |
- | + | ||
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | + | ||
- | <WRAP centeralign> | + | |
- | Center aligned text ... | + | |
- | </ | + | |
- | + | ||
- | <WRAP rightalign> | + | |
- | ... and right aligned. | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | <WRAP centeralign> | + | |
- | Center aligned text ... | + | |
- | </ | + | |
- | + | ||
- | <WRAP rightalign> | + | |
- | ... and right aligned. | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | :!: You cannot add alignments to spans. | + | |
- | + | ||
- | + | ||
- | ==== Boxes and Notes ==== | + | |
- | + | ||
- | <WRAP round box 500px center> | + | |
- | === round box 500px center === | + | |
- | + | ||
- | * '' | + | |
- | * any of the classes '' | + | |
- | * the classes '' | + | |
- | * '' | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <WRAP info 300px left> | + | |
- | === Info === | + | |
- | %%<WRAP info></ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <WRAP tip 300px left> | + | |
- | === Tip === | + | |
- | %%<WRAP tip></ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <WRAP important 300px left> | + | |
- | === Important === | + | |
- | %%<WRAP important></ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <WRAP alert 300px left> | + | |
- | === Alert === | + | |
- | %%<WRAP alert></ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <WRAP round help 300px left> | + | |
- | === Help === | + | |
- | %%<WRAP round help></ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <WRAP download 300px left> | + | |
- | === Download === | + | |
- | %%<WRAP download></ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <WRAP todo 300px left> | + | |
- | === Todo === | + | |
- | %%<WRAP todo></ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <WRAP clear /> | + | |
- | + | ||
- | + | ||
- | **Safety Notes:** | + | |
- | + | ||
- | Best only use simple markup in safety notes. | + | |
- | + | ||
- | <WRAP danger 30% left> | + | |
- | === Danger === | + | |
- | %%<WRAP danger></ | + | |
- | </ | + | |
- | + | ||
- | <WRAP warning 30% left> | + | |
- | === Warning === | + | |
- | %%<WRAP warning></ | + | |
- | </ | + | |
- | + | ||
- | <WRAP caution 30% left> | + | |
- | === Caution === | + | |
- | %%<WRAP caution></ | + | |
- | </ | + | |
- | + | ||
- | <WRAP round notice 30% left> | + | |
- | === Notice === | + | |
- | %%<WRAP round notice></ | + | |
- | </ | + | |
- | + | ||
- | <WRAP round safety 30% left> | + | |
- | === Safety === | + | |
- | %%<WRAP round safety></ | + | |
- | </ | + | |
- | + | ||
- | <WRAP clear /> | + | |
- | + | ||
- | + | ||
- | You can use notes and boxes also inside text with spans like this: | + | |
- | <wrap info> | + | |
- | <wrap info> | + | |
- | + | ||
- | ==== Marks ==== | + | |
- | + | ||
- | You can mark text as <wrap hi> | + | |
- | + | ||
- | You can mark text as <wrap hi> | + | |
- | + | ||
- | :!: This might look ugly in some templates and should be adjusted accordingly. | + | |
- | + | ||
- | ==== Tabs ==== | + | |
- | + | ||
- | You can create a row of tabs by simply wrapping a list of links in '' | + | |
- | + | ||
- | <WRAP tabs> | + | |
- | * [[Some page]] | + | |
- | * [[example|This page]] | + | |
- | * [[Another page]] | + | |
- | </ | + | |
- | + | ||
- | <WRAP tabs> | + | |
- | * [[Some page]] | + | |
- | * [[example|This page]] | + | |
- | * [[Another page]] | + | |
- | </ | + | |
- | + | ||
- | :!: Please note, the styling of these tabs depend on the template you are using and not on the wrap plugin. If you only see a list of links and no tabs, please make sure to add " | + | |
- | + | ||
- | ==== Miscellaneous ==== | + | |
- | + | ||
- | === Clear float === | + | |
- | + | ||
- | After using any of the float classes, you might come across following text protruding into the space where only the floating containers should be. To prevent that, you should simply add this after your last column: | + | |
- | + | ||
- | <WRAP clear /> | + | |
- | + | ||
- | === Table width === | + | |
- | + | ||
- | You can set the width of a table via '' | + | |
- | + | ||
- | <WRAP tablewidth 80%> | + | |
- | ^ Table ^ is ^ | + | |
- | | 80% | wide | | + | |
- | </ | + | |
- | + | ||
- | <WRAP tablewidth 80%> | + | |
- | ^ Table ^ is ^ | + | |
- | | 80% | wide | | + | |
- | </ | + | |
- | + | ||
- | === Indent === | + | |
- | + | ||
- | <wrap indent> | + | |
- | + | ||
- | <wrap indent> | + | |
- | + | ||
- | === Outdent === | + | |
- | + | ||
- | <wrap outdent> | + | |
- | + | ||
- | <wrap outdent> | + | |
- | + | ||
- | === Prewrap === | + | |
- | + | ||
- | <WRAP prewrap 250px> | + | |
- | < | + | |
- | Inside this code block the words will wrap to a new line although they are all in one line. | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | <WRAP prewrap 250px> | + | |
- | < | + | |
- | Inside this code block the words will wrap to a new line although they are all in one line. | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | === Spoiler === | + | |
- | + | ||
- | Here follows a spoiler: <wrap spoiler> | + | |
- | + | ||
- | Here follows a spoiler: <wrap spoiler> | + | |
- | + | ||
- | Just select the text in the spoiler box to be able to read its content. | + | |
- | + | ||
- | === Button links === | + | |
- | + | ||
- | A link that looks like a button: <wrap button> | + | |
- | + | ||
- | A link that looks like a button: <wrap button> | + | |
- | + | ||
- | === Hide === | + | |
- | + | ||
- | The following text is hidden: <wrap hide> | + | |
- | + | ||
- | The following text is hidden: <wrap hide> | + | |
- | + | ||
- | :!: Warning: The text will still appear in the source code, in non-modern browsers and is searchable. Do not hide any security risky secrets with it! | + | |
- | + | ||
- | === Pagebreak === | + | |
- | + | ||
- | The following will add a pagebreak: <WRAP pagebreak /> | + | |
- | + | ||
- | The following will add a pagebreak: <WRAP pagebreak /> | + | |
- | + | ||
- | This has no effect on the browser screen. A [[http:// | + | |
- | + | ||
- | === Nopagebreak === | + | |
- | + | ||
- | The following will try to avoid a pagebreak: <WRAP nopagebreak> | + | |
- | + | ||
- | The following will try to avoid a pagebreak: <WRAP nopagebreak> | + | |
- | + | ||
- | This also has no effect on the browser screen. It will try to [[http:// | + | |
- | + | ||
- | === Noprint === | + | |
- | + | ||
- | <wrap noprint> | + | |
- | + | ||
- | <wrap noprint> | + | |
- | + | ||
- | === Onlyprint === | + | |
- | + | ||
- | <wrap onlyprint> | + | |
- | + | ||
- | <wrap onlyprint> | + | |
- | + | ||
- | + | ||
- | ==== Combining and Nesting ==== | + | |
- | + | ||
- | You can combine and nest all classes and types of boxes, e.g. | + | |
- | + | ||
- | <WRAP box 350px right :en> | + | |
- | ===Outer box floats right === | + | |
- | + | ||
- | <WRAP 165px left> | + | |
- | Inner nested box floats left and is partly <wrap em hi> | + | |
- | </ | + | |
- | + | ||
- | Text inside outer right box, but beneath inner left box. | + | |
- | + | ||
- | <WRAP clear /> | + | |
- | + | ||
- | <WRAP round tip> | + | |
- | Round tip box underneath, after a '' | + | |
- | </ | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | + | ||
- | < | + | |
- | <WRAP box 350px right :en> | + | |
- | === Outer box floats right === | + | |
- | + | ||
- | <WRAP 165px left> | + | |
- | Inner nested box floats left and is partly <wrap em hi> | + | |
- | </ | + | |
- | + | ||
- | Text inside outer right box, but beneath inner left box. | + | |
- | + | ||
- | <WRAP clear /> | + | |
- | + | ||
- | <WRAP round tip> | + | |
- | Round tip box underneath, after a '' | + | |
- | </ | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ===== Language and Text Direction ===== | + | |
- | + | ||
- | You can change the language and the reading direction of a wrap container by simply adding a colon followed by the language code, like this: | + | |
- | + | ||
- | < | + | |
- | <WRAP :he> | + | |
- | זה עברית. ((<wrap :en>This means "This is Hebrew.", | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | <WRAP :he> | + | |
- | זה עברית. ((<wrap :en>This means "This is Hebrew.", | + | |
- | </ | + | |
- | + | ||
- | The text direction ('' | + | |
- | (If you specify a language not listed there, it simply won't do anything.) | + | |
- | + | ||
- | 이 밖에도 많은 문법 기능이 추가된다.\\ | + | |
- | 편집기 위에 메뉴가 나타나므로 몇가지 제외하고 문법을 따로 익힐필요는 없어보임 | + | |
- | ======SocialCard====== | + | |
- | + | ||
- | https:// | + | |
- | + | ||
- | SNS에 링크할시 자동으로 오픈 그래프를 표시해준다. | + | |
- | + | ||
- | 페이스북은 이미지가 안나오는 버그가 있으나 action.php에서 og:image 부분의 $secure 부분 삭제를 통해 버그 수정 가능 | + | |
- | + |
[홈레코딩 필독서]"모두의 홈레코딩"구매링크
wiki/recommended_plugin.1644427517.txt.gz · 마지막으로 수정됨: 2022/02/10 저자 정승환