====== WRAP 플러그인 ====== 이 좋은 플러그인을 왜 이제야 쓰게 되었는지... ===== 기본 문법 ===== 대문자 **%%%%** (또는 **%%%%** 아니면 **%%
%%**) 태그는 **''div''** 태그를 생성한다. 그리고 단락, 리스트, 테이블 등을 감싸는 **"big"** 컨테이너를 위해 사용되어야 한다. "big" content or "big" content or
"big" content
소문자 **%%%%** (또는 **%%%%** 아니면 **%%%%**) 태그는 **''span''** 태그를 생성한다. 그리고 단락, 리스트, 테이블 등의 태그 안의 **"small"** 컨테이너를 위해 사용되어야 한다. "small" content or "small" content or "small" content :!: 다음의 경우에는 소문자 span 태그가 적용되지 않는다. * **alignments** (텍스트 방향을 바꿈으로써 생성된 alignments 포함) * **multi-columns** * **widths** wrap 태그가 제대로 닫혀지지 않는 경우에도 마찬가지. ===== Classesd Styles ===== ==== Columns and Floats ==== ''column''태그를 추가하여 열을 추가하고 너비를 설정할 수 있다. ...content... //**__가짜 큰 헤드라인__**// 이탤릭, 볼드, 언더라인 텍스트를 이용하여 큰 헤드라인을 모방할 수 있다. //**__가짜 큰 헤드라인__**// //**가짜 작은 헤드라인**// 더 작은 헤드라인은 언더라인 텍스트를 빼면 된다. //**가짜 작은 헤드라인**// 볼드, 이탤릭 텍스트를 원한다면 다른 방식으로 감싸면 된다. **//No Headline//** //**__다른 플로팅 옵션__**// Normally you would only need the class ''column'', but for more sophisticated uses (not only for columns, but for any other classes, like [[#boxes and notes]] as well) you can have several kinds of "floats": * **''column''** is the same as ''left'' in LTR languages and the same as ''right'' in RTL languages * **''left''** will let you float your wrap on the left * **''right''** will let the wrap float right * **''center''** will position the wrap in the horizontal center of the page //**__너비__**// You can set any valid widths (but only on divs): ''%, px, em, ex, pt, pc, cm, mm, in'', but most of the time you'd only want either ^type^e.g.^note^ ^''%''|''30%''|makes sense in a liquid layout| ^''px''|''420px''|makes sense if your layout has a fixed pixel width or if your container contains images with a certain width| ^''em''|''20em''|makes sense if you like your wrap container to grow and shrink with the font size or if your layout is em-based| A **table** inside a column or box will always be **100% wide**. This makes positioning and sizing tables possible. After using any of the float classes, you might come across something like this, where the following text protrudes into the space where only the floating containers should be ... ... to prevent that, you should simply add after your last column. You **can** use the same options with spans (as each element that floats is automatically a block level element), but it probably doesn't make too much sense. :!: Widths on spans normally do not work (by design), but can make sense, when it is floating. :!: Attention: Widths can cause problems and will often look different and break in some browsers. If you're not a web developer, you might not understand any problems regarding the [[http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug|box model]]. Just try to test your columns in all major browsers and make your widths smaller than you initially think they should be. All of those options will also work in the [[#boxes and notes]] wraps (see below). === 다중 열 === For modern browsers (Firefox, Chrome and Safari) you can use multi-columns. Just use **''%%col2%%''** for 2 columns, **''%%col3%%''** for 3 columns, **''%%col4%%''** for 4 columns and **''%%col5%%''** for 5 columns. :!: Note: Multi-columns don't make sense for spans. ==== 정렬 ==== You can use these different text alignments: * ''leftalign'' * ''rightalign'' * ''centeralign'' * ''justify'' Center aligned text ... ... and right aligned. Center aligned text ... ... and right aligned. :!: You cannot add alignments to spans. ==== 박스와 노트 ==== //**__round box 570px center__**// * ''box'' creates a box around the container and uses the colours from the template's ''style.ini'' as default colours (''%%__background_alt__%%'' and ''%%__text__%%'') * any of the classes ''info'', ''tip'', ''important'', ''alert'', ''help'', ''download'', ''todo'' will add a special note container with a corresponding icon * the classes ''danger'', ''warning'', ''caution'', ''notice'', ''safety'' use safety colours (and no icons) * ''round'' can be added to anything with a background colour or a border and will only work in modern browsers (no Internet Explorer) //**Info**// //**Tip**// //**Important**// //**Alert**// //**Help**// //**Download**// //**Todo**// **안전 노트:** //**Danger**// //**Warning**// //**Caution**// //**Notice**// //**Safety**// You can use notes and boxes also inside text with spans like this: info, help, alert, important, tip, download, todo and round box and danger, warning, caution, notice, safety. info, help, ... ==== Marks ==== You can mark text as highlighted, less significant and especially emphasised. You can mark text as highlighted, less significant and especially emphasised. :!: This might look ugly in some templates and should be adjusted accordingly. ==== 기타 ==== === 들여 쓰기 === This text will appear indented. This text will appear indented. === 내어 쓰기 === This text will appear "outdented". This text will appear "outdented". === Prewrap === Inside this code block the words will wrap to a new line although they are all in one line. Inside this code block the words will wrap to a new line although they are all in one line. === Spoiler === 다음 내용은 스포일러이다: 다스베이더는 루크의 아버지이다. 다음 내용은 스포일러이다: 다스베이더는 루크의 아버지이다. 스포일러 박스를 선택해야(드래그해야) 박스 안의 내용을 읽을 수 있다. 말그대로 스포일할 수 있는 내용이나 문제의 답 등을 넣어두면 좋을 것 같다. === Hide === 다음 텍스트는 숨겨져 있다: John, please revise that sentence. 다음 텍스트는 숨겨져 있다: John, please revise that sentence. :!: 주의: 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 === 다음은 pagebreak를 추가한다: 다음은 pagebreak를 추가한다: [[http://reference.sitepoint.com/css/page-break-after|Pagebreak]]는 브라우저의 화면상에 영향을 주지 않는다. 이 문법은 프린트할 때 강제로 새로운 페이지로 넘어가게끔 한다. === Nopagebreak === 다음은 pagebreak 하지 않도록 한다: much content, belonging together (like a long table) 다음은 pagebreak 하지 않도록 한다: much content, belonging together (like a long table) 이 문법 또한 브라우저의 화면상에 영향을 주지 않는다. 이것은 프린트할 때 [[http://reference.sitepoint.com/css/page-break-inside|pagebreak가 일어나지 않도록]] 한다. === Noprint === 이 텍스트는 화면상에는 보이나 프린트할 때에는 보이지 않는다. 이 텍스트는 화면상에는 보이나 프린트할 때에는 보이지 않는다. === Onlyprint === 이 텍스트는 화면상에는 보이지 않지만 프린트할 때에는 보인다. 이 텍스트는 화면상에는 보이지 않지만 프린트할 때에는 보인다. ==== Typography ==== 다음의 typography 클래스들은 사용하지 않는 것을 권장한다. 그것의 의미를 알 수 있는 클래스를 만드는 것이 더 낫다. * font family: ''sansserif'', ''serif'', ''monospace'' * font size: ''bigger'', ''muchbigger'', ''smaller'' * font colour: ''fgred'', ''fggreen'', ''fgblue'', ''fgcyan'', ''fgviolet'', ''fgyellow'', ''fggrey'', ''fgwhite'', ''fgblack'' * background colour: ''bgred'', ''bggreen'', ''bgblue'', ''bgcyan'', ''bgviolet'', ''bgyellow'', ''bggrey'', ''bgwhite'', ''bgblack'' ==== 조합, 둘러싸기 ==== 모든 클래스와 박스 형태는 조합, 둘러싸기를 할 수 있다. 예를 들면 다음과 같다. //**__오른쪽에 플로팅된 외곽의 green 박스__**// Inner nested box floats left and is partly __em__phasized and __hi__ghlighted with nested __bigger__ text inside. Text inside outer right box, but beneath inner left box. Round tip box underneath, after a ''clear''. //**__오른쪽에 플로팅된 외곽의 green 박스__**// Inner nested box floats left and is partly __em__phasized and __hi__ghlighted with nested __bigger__ text inside. Text inside outer right box, but beneath inner left box. Round tip box underneath, after a ''clear''. ===== 언어, 텍스트 방향 ===== 다음과 같이 콜론 다음에 언어 코드를 추가하여 언어와 wrap 컨테이너의 텍스트 방향을 바꿀 수 있다. זה עברית. ((This means "This is Hebrew.", at least according to [[http://translate.google.com/|Google Translate]].)) זה עברית. ((This means "This is Hebrew.", at least according to [[http://translate.google.com/|Google Translate]].)) The text direction (''rtl'', right to left or ''ltr'', left to right) will get inserted automatically and is solely dependent on the language. The list of currently supported languages is taken from: http://meta.wikimedia.org/wiki/Template:List_of_language_names_ordered_by_code (If you specify a language not listed there, it simply won't do anything.)