틀:정리정돈

위키백과, 우리 모두의 백과사전.
둘러보기로 가기 검색하러 가기
틀 설명문서[보기] [편집] [역사] [새로 고침]

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

기본 사용법[편집]

{{정리정돈}}을 쓰시려면

{{정리정돈|<objects>}}

또는 {{정리정돈 시작}}/{{정리정돈 끝}}을 쓰시려면

{{정리정돈 시작}}
<object>
{{정리정돈 중간}}
<object>
...
{{정리정돈 끝}}

이렇게 넣어주세요.

앞서 언급한 {{정리정돈 중간}}는 꼭 넣지 않아도 됩니다. Thus, <object> may simply be a string of wiki code for many images / templates.

추가 기능[편집]

{{stack| <objects> | float=left/right | 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.

{{stack| float=left/right | clear=true/false
|1=<object(s)>
|2=<object(s)>
|3=<object(s)>, etc. up to 9 parameters in the current version
}}
  • NB This multiple argument version does include extra vertical whitespace between each (set of) <object(s)>.

기본 예[편집]

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

=====Lipsum=====
[[파일:Example.png|thumb|right|예제 1A]]
[[파일:Example.png|thumb|right|예제 1B]]
... 내용 ...

=====Lorem=====
[[파일:Example.png|thumb|left |예제 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=====
{{stack|
[[파일:Example.png|thumb|right|Example 2a]]
[[파일:Example.png|thumb|right|Example 2b]]
}}
... text ...

=====Lorem=====
[[파일:Example.png|thumb|left |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 ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem[편집]
예제 1C

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Ipsum[편집]

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

With stack[편집]

Lipsum[편집]
Example 1a
Example 2a

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem[편집]
Example 3a

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Ipsum[편집]

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

With stack begin[편집]

Lipsum with second table wider[편집]
Sample table 1
Example 1a
Example 1b
Sample wider table 2
Example 2a
Example 2b

틀:Lipsum

Lorem[편집]
Sample table 3
Example 3a

틀:Lipsum

Ipsum[편집]

틀:Lipsum

틀:Lipsum

Lipsum with first table wider[편집]
Sample wider table 1
Example 1a
Example 1b
Sample table 2
Example 2a
Example 2b

틀:Lipsum

Lorem[편집]
Sample table 3
Example 3a

틀:Lipsum

Ipsum[편집]

틀:Lipsum

틀:Lipsum

With stack begin and mid[편집]

Lipsum with second table wider[편집]
Sample table 1
Example 1a
Example 1b
Sample wider table 2
Example 2a
Example 2b

틀:Lipsum

Lorem[편집]
Sample table 3
Example 3a

틀:Lipsum

Ipsum[편집]

틀:Lipsum

틀:Lipsum

Lipsum with first table wider[편집]
Sample wider table 1
Example 1a
Example 1b
Sample table 2
Example 2a
Example 2b

틀:Lipsum

Lorem[편집]
Sample table 3
Example 3a

틀:Lipsum

Ipsum[편집]

틀:Lipsum

틀:Lipsum

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 틀:Tl3 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.

Example.png
Example.png
{{stack|[[파일:Example.png|50px]]}}
{{stack|[[파일:Example.png|50px]]}}

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

Infobox


Line 1
Line 2
Line 3
Line 4
L5
L6
L7
L8
L9

Test

A wikitable here, as a typical left-side table. The overlap on left-side tables had been a frequent problem with allowing other boxes to "float:right" on a page. So this is a test of how well a floating portal-box would avoid overlapping onto a left-side table.

The example here uses {{stack}} to float 2 portal boxes (for Animals & Cats), as follows:

  • {{stack |{{portal|Animals}}{{portal|Cats}} }}

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 <table> to float the boxes.

정리정돈 틀[편집]

See also[편집]