틀:정리정돈/설명문서

이 틀은 빈 문단이 생기거나 떠다니는 등의 문제가 생기는 것을 방지하기 위해서 사진이나 정보 틀처럼 떠다니는 틀을 정리하기 위해 쓰입니다. 유동 오류나 빈칸 오류를 막고 정리하는 것을 적용하는 대상은 맨 처음에 나오는 사진 및 틀 묶음에 한해 틀에 기입해주세요. 가장 처음에 있는 항목에 위치한 오브젝트들을 정리할 수 있고, 그에 따라 그 밑에 있는 세부항목에서 일부러 빈칸을 띄우지 않아도 됩니다.

**기본 사용법**
정리정돈을 쓰시려면
또는 정리정돈 시작/정리정돈 끝을 쓰시려면
...
이렇게 넣어주세요.
앞서 언급한 는 꼭 넣지 않아도 됩니다. Thus,  may simply be a string of wiki code for many images / templates.

**추가 기능**
stack|  
clear=true/false
or
stack begin | float=left/right | clear=true/false
where
*float= left or right (default is right)
*: This option can be used to float the stack to the left or right of the page
*clear= true or false (default is false)
*: This option can be used to force the stack to the far left or right (e.g., near an infobox).
You can also explicily list multiple arguments, which is then identical to the stack begin, stack mid and stack end version.

*NB This multiple argument version does include extra vertical whitespace between each (set of) .

**기본 예**
정리정돈 틀의 사용예제를 보시려면 아래 상황을 참고해 주세요. 이 문서의 첫번째 항목 ("Lipsum" 항목)의 맨 위에 위치한 오른쪽의 떠다니는 두 사진과, 두번째 항목 ("Lorem" 항목)의 맨 위에 위치한 왼쪽의 떠다니는 사진에 적용하고 싶다고 가정해 봅시다. 이때 정리정돈 틀을 쓰지 않았다면, 편집할 때의 내용은 다음과 같습니다.

**=Lipsum=**
예제 1A
예제 1B
... 내용 ...

**=Lorem=**
예제 1C
... 내용 ...

**=Ipsum=**
... 내용 ...
이때의 결과는 틀을 사용하지 않았을 때 항목 밑에서 볼 수 있습니다. Notice how the left floating image (Example 1c) is prevented from floating above the last right floating image (Example 1b). You may need to resize the width of your browser to fully appreciate the issue. To fix this problem, we can stack the two right floating images together, using the following code

**=Lipsum=**
... text ...

**=Lorem=**
Example 2c
... text ...

**=Ipsum=**
... text ...
The result of this is show in the with stack section below. Notice how by adding this stack template, the left floating image (Example 2c) can now float higher and is not blocked from floating higher than the top of the last right floating image (Example 2b).

**틀을 사용하지 않았을 때**

**=Lipsum=**
예제 1A
예제 1B

**=Lorem=**
예제 1C

**=Ipsum=**

**With stack**

**=Lipsum=**

**=Lorem=**
Example 3a

**=Ipsum=**

**With stack begin**

**=Lipsum with second table wider=**

**=Lorem=**

**=Ipsum=**

**=Lipsum with first table wider=**

**=Lorem=**

**=Ipsum=**

**With stack begin and mid**

**=Lipsum with second table wider=**

**=Lorem=**

**=Ipsum=**

**=Lipsum with first table wider=**

**=Lorem=**

**=Ipsum=**

**NB**
Obviously these current examples don't show any difference between with and without mid except for probably unwanted vertical space.
In fact, the reason for creating stack mid, at least in  one example, was resolved by removing table style align=right from tables between stack begin and stack end.
However stack mid may still be useful for tables that would otherwise prefer to use the multiple argument three... option, which should be identical to using stack begin, stack mid and stack end where the latter easily allows the  table syntax (which must begin on the start of the line).

**More examples**
Stack can also be used to float 1 or more images across a page.
It might take some experience to learn how the box area floats, in combination with various images or WP:Wikitables on a page. The operation of Template:stack is very quick, using the  feature of the HTML markup language.

**Float portal boxes**
Because auto-floating of portal boxes could cause a loss of margin control, the Template:stack can be used, as needed in some articles, when floating a portal box would look better alongside an infobox (or right-side image).
Test
The example here uses stack to float 2 portal boxes (for Animals & Cats), as follows:
The 2 portal-boxes are stacked together, and floated together as a stack, by both being listed in parameter 1 to stack. Although the 2 portal-boxes were specified below the Mona Lisa image, because the infobox+image were also stacked together, then the stack moved the 2 portal-boxes, even higher, alongside the infobox.
Normally, a portal-box would be stuck below the Mona Lisa image, causing this entire text section to format further below, and causing a large text-gap of empty whitespace to appear near the infobox. There is no limit to the number of portalboxes (or Commonscat boxes) which can be listed within a stack call, such as in a stub or an article with many stacked images near the bottom. Using stack is extremely efficient, due to being a short template which uses builtin tag  to float the boxes.

**정리정돈 틀**
 정리정돈- 정리정돈 시작- 정리정돈 중간- 정리정돈 끝

**See also**
 Double image places images side by side horizontally- Multiple image allows both vertical and horizontal layouts- Superimpose—places one image over another- Superimpose2—places up to 50 image layers over one another
분류:그래픽에 관한 틀