사용자 도구


WRAP 플러그인

이 좋은 플러그인을 왜 이제야 쓰게 되었는지…

기본 문법

대문자 <WRAP> (또는 <block> 아니면 <div>) 태그는 div 태그를 생성한다. 그리고 단락, 리스트, 테이블 등을 감싸는 “big” 컨테이너를 위해 사용되어야 한다.

<WRAP classes width :language>
"big" content
</WRAP>

or
<block classes width :language>
"big" content
</block>

or
<div classes width :language>
"big" content
</div>

소문자 <wrap> (또는 <inline> 아니면 <span>) 태그는 span 태그를 생성한다. 그리고 단락, 리스트, 테이블 등의 태그 안의 “small” 컨테이너를 위해 사용되어야 한다.

<wrap classes width :language>"small" content</wrap>

or
<inline classes width :language>"small" content</inline>

or
<span classes width :language>"small" content</span>

:!: 다음의 경우에는 소문자 span 태그가 적용되지 않는다.

  • alignments (텍스트 방향을 바꿈으로써 생성된 alignments 포함)
  • multi-columns
  • widths

wrap 태그가 제대로 닫혀지지 않는 경우에도 마찬가지.

Classesd Styles

Columns and Floats

column태그를 추가하여 열을 추가하고 너비를 설정할 수 있다.

<WRAP column 30%>...content...</WRAP>

가짜 큰 헤드라인

이탤릭, 볼드, 언더라인 텍스트를 이용하여 큰 헤드라인을 모방할 수 있다.

//**__가짜 큰 헤드라인__**//

가짜 작은 헤드라인

더 작은 헤드라인은 언더라인 텍스트를 빼면 된다.

//**가짜 작은 헤드라인**//

볼드, 이탤릭 텍스트를 원한다면 다른 방식으로 감싸면 된다.

**//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

typee.g.note
%30%makes sense in a liquid layout
px420pxmakes sense if your layout has a fixed pixel width or if your container contains images with a certain width
em20emmakes 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

<WRAP clear></WRAP>

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 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.

<WRAP centeralign>
Center aligned text ...
</WRAP>

<WRAP rightalign>
... and right aligned.
</WRAP>

:!: 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

<WRAP info></WRAP>

Tip

<WRAP tip></WRAP>

Important

<WRAP important></WRAP>

Alert

<WRAP alert></WRAP>

Help

<WRAP round help></WRAP>

Download

<WRAP download></WRAP>

Todo

<WRAP todo></WRAP>

안전 노트:

Danger

<WRAP danger></WRAP>

Warning

<WRAP warning></WRAP>

Caution

<WRAP caution></WRAP>

Notice

<WRAP round notice></WRAP>

Safety

<WRAP round safety></WRAP>

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.

<wrap info>info</wrap>, <wrap help>help</wrap>, ...

Marks

You can mark text as highlighted, less significant and especially emphasised.

You can mark text as <wrap hi>highlighted</wrap>, <wrap lo>less significant</wrap> and <wrap em>especially emphasised</wrap>.

:!: This might look ugly in some templates and should be adjusted accordingly.

기타

들여 쓰기

This text will appear indented.

<wrap indent>This text will appear indented.</wrap>

내어 쓰기

This text will appear “outdented”.

<wrap outdent>This text will appear "outdented".</wrap>

Prewrap

Inside this code block the words will wrap to a new line although they are all in one line.
<WRAP prewrap 250px>
<code>
Inside this code block the words will wrap to a new line although they are all in one line.
</code>
</WRAP>

Spoiler

다음 내용은 스포일러이다: 다스베이더는 루크의 아버지이다.

다음 내용은 스포일러이다: <wrap spoiler>다스베이더는 루크의 아버지이다.</wrap>

스포일러 박스를 선택해야(드래그해야) 박스 안의 내용을 읽을 수 있다. 말그대로 스포일할 수 있는 내용이나 문제의 답 등을 넣어두면 좋을 것 같다.

Hide

다음 텍스트는 숨겨져 있다: John, please revise that sentence.

다음 텍스트는 숨겨져 있다: <wrap hide>John, please revise that sentence.</wrap>

:!: 주의: 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를 추가한다: <WRAP pagebreak></WRAP>

Pagebreak는 브라우저의 화면상에 영향을 주지 않는다. 이 문법은 프린트할 때 강제로 새로운 페이지로 넘어가게끔 한다.

Nopagebreak

다음은 pagebreak 하지 않도록 한다:

much content, belonging together (like a long table)

다음은 pagebreak 하지 않도록 한다: <WRAP nopagebreak>much content, belonging together (like a long table)</WRAP>

이 문법 또한 브라우저의 화면상에 영향을 주지 않는다. 이것은 프린트할 때 pagebreak가 일어나지 않도록 한다.

Noprint

이 텍스트는 화면상에는 보이나 프린트할 때에는 보이지 않는다.

<wrap noprint>이 텍스트는 화면상에는 보이나 프린트할 때에는 보이지 않는다.</wrap>

Onlyprint

이 텍스트는 화면상에는 보이지 않지만 프린트할 때에는 보인다.

<wrap onlyprint>이 텍스트는 화면상에는 보이지 않지만 프린트할 때에는 보인다.</wrap>

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 emphasized and highlighted with nested bigger text inside.

Text inside outer right box, but beneath inner left box.

Round tip box underneath, after a clear.

<WRAP box bggreen fgblack 350px right :en>
//**__오른쪽에 플로팅된 외곽의 green 박스__**//

<WRAP 165px left>
Inner nested box floats left and is partly <wrap em hi>__em__phasized and __hi__ghlighted with nested <wrap bigger>__bigger__ text</wrap> inside</wrap>.
</WRAP>

Text inside outer right box, but beneath inner left box.

<WRAP clear></WRAP>

<WRAP round tip>
Round tip box underneath, after a ''clear''.
</WRAP>

</WRAP>

언어, 텍스트 방향

다음과 같이 콜론 다음에 언어 코드를 추가하여 언어와 wrap 컨테이너의 텍스트 방향을 바꿀 수 있다.

<WRAP :he>
זה עברית. ((<wrap :en>This means "This is Hebrew.", at least according to [[http://translate.google.com/|Google Translate]].</wrap>))
</WRAP>

זה עברית. 1)

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.)

1)
This means “This is Hebrew.”, at least according to Google Translate.