틀:Side box/doc: 두 판 사이의 차이
Revi HQ
내용 추가됨 내용 삭제됨
(add an above row to the example) |
(Aligned table, category) |
||
1번째 줄: | 1번째 줄: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{High-risk|650,000+ }} |
{{High-risk|650,000+ }} |
||
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> |
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --> |
||
{{clear right}} |
{{clear right}} |
||
{{Sidebox |metadata=no |image={{smaller|(''image'')}} |imageright={{smaller|(''image<br/>right'')}} |
{{Sidebox |metadata=no |image={{smaller|(''image'')}} |imageright={{smaller|(''image<br/>right'')}} |
||
|above=content to appear in a separate row above the main cell {{smaller|(''above'')}} |
| above = content to appear in a separate row above the main cell {{smaller|(''above'')}} |
||
|text=the text to display in the box {{smaller|(''text'')}} |
| text = the text to display in the box {{smaller|(''text'')}} |
||
|below=content to appear in a separate row underneath the main cell {{smaller|(''below'')}} |
| below = content to appear in a separate row underneath the main cell {{smaller|(''below'')}} |
||
}} |
}} |
||
This template is a meta-template that can be used to create nicely-styled floating content boxes (see opposite). |
This template is a meta-template that can be used to create nicely-styled floating content boxes (see opposite). |
||
== Usage == |
== Usage == |
||
{{Aligned table |
|||
|class=wikitable |
|||
|col1style=padding-right:1.0em; |col2style=padding-left:0.5em;padding-right:0.5em; |
|||
|- |
|||
| {{para|metadata}} | if set to {{code|no}}, suppresses the "metadata" HTML class |
|||
| {{para|position}} | if set to {{code|left}}, floats the box on the left side of the page rather than the right |
|||
|- |
|||
| {{para| |
| {{para|class}} | CSS classes to apply to the box |
||
⚫ | |||
|- |
|||
| {{para| |
| {{para|textstyle}} | styles to apply to the text cells only |
||
⚫ | |||
|- |
|||
| {{para| |
| {{para|above}} | content to appear in a separate row above the main cell (and spanning the entire width of the box) |
||
| {{para|image}} | a full image tag (or other content); if this is not present or set to "none", no image is displayed |
|||
|- |
|||
| {{para| |
| {{para|text}} | the text to display in the box |
||
⚫ | |||
|- |
|||
| {{para| |
| {{para|below}} | content to appear in a separate row underneath the main cell (and spanning the entire width of the box) |
||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
| {{para|textstyle}} || styles to apply to the text cells only |
|||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
| {{para|below}} || content to appear in a separate row underneath the main cell (and spanning the entire width of the box) |
|||
⚫ | |||
== See also == |
== See also == |
||
42번째 줄: | 33번째 줄: | ||
*{{tl|Sidebar box}} |
*{{tl|Sidebar box}} |
||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
||
| <!--CATEGORIES BELOW THIS LINE, PLEASE:--> |
|||
[[Category:Box templates]] |
|||
[[Category:Wikipedia metatemplates]] |
[[Category:Wikipedia metatemplates]] |
||
}}</includeonly> |
}}</includeonly> |
2014년 9월 6일 (토) 20:34 판
This is a documentation subpage for 틀:Side box. It contains usage information, categories and other content that is not part of the original 틀 page. |
This template is used on 650,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in a single edit. Please consider discussing any changes on the talk page before implementing them. |
This template is a meta-template that can be used to create nicely-styled floating content boxes (see opposite).
Usage
See also
- {{Mbox}}
- {{Sidebar box}}