틀: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"
|class=wikitable
|col1style=padding-right:1.0em; |col2style=padding-left:0.5em;padding-right:0.5em;
|-
|style="width:9.0em;"| {{para|text}} || the text to display in the box
| {{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|image}} || a full image tag (or other content); if this is not present or set to "none", no image is displayed
| {{para|class}} | CSS classes to apply to the box
| {{para|style}} | styles to apply to the box
|-
| {{para|imageright}} || a full image tag (or other content) to display in a separate table cell on the right of the box
| {{para|textstyle}} | styles to apply to the text cells only
| {{para|abovestyle}} | styles to apply to the above cell only
|-
| {{para|position}} || if set to {{code|left}}, floats the box on the left side of the page rather than the right
| {{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|metadata}} || if set to {{code|no}}, suppresses the "metadata" HTML class
| {{para|text}} | the text to display in the box
| {{para|imageright}} | a full image tag (or other content) to display in a separate table cell on the right of the box
|-
| {{para|class}} || CSS classes to apply to the box
| {{para|below}} | content to appear in a separate row underneath the main cell (and spanning the entire width of the box)
}}
|-
| {{para|style}} || styles to apply to the box
|-
| {{para|textstyle}} || styles to apply to the text cells only
|-
| {{para|above}} || content to appear in a separate row above the main cell (and spanning the entire width of the box)
|-
| {{para|abovestyle}} || styles to apply to the above cell 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|<!-- DO NOTHING -->|
<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 판

틀:Clear right 틀:Sidebox

This template is a meta-template that can be used to create nicely-styled floating content boxes (see opposite).

Usage

틀:Aligned table

See also

틀:Lua