Үлгі:Hidden/doc
Көрініс
Usage
[қайнарын өңдеу]Syntax
[қайнарын өңдеу]{{Hidden
|header=
|content=
|style=
|headerstyle=
|contentstyle=
|fw1=
|fw2=
|bg1=
|bg2=
|ta1=
|ta2=
}}
Parameters
[қайнарын өңдеу]Only two parameters are required for this template:
- header
- text for header (or title); alternative to using unnamed parameter {{{1}}}
- content
- text for content (or body); alternative to using unnamed parameter {{{2}}}
Optional
[қайнарын өңдеу]- style
- add CSS to the main div.
- headerstyle
- add CSS to the header.
- contentstyle
- add CSS to the content box.
- expanded
- any nonblank value will cause the template to be initially expanded by default.
Note: This template will not respect the user preference "justify paragraphs".
Examples
[қайнарын өңдеу]Basic
[қайнарын өңдеу]In this example only the two required parameters are specified.
| Code | {{hidden|Title text here|Body text line 1<br/>Body text line 2}}
|
| Result | Title text here
|
Header background
[қайнарын өңдеу]| Code | {{hidden
|Title text here
|Body text line 1<br/>Body text line 2
|headerstyle=background:#ccccff
|style=text-align:center;
}}
|
| Result | Title text here
|
CSS
[қайнарын өңдеу]| Code |
{{hidden
| style = border:1px dashed red; width: 50%;
| headerstyle = background: #ccccff; font-size: 110%;
| contentstyle = text-align: center; color:green;
| header = Title text here
| content = Body text line 1<br />Body text line 2<br />Body text line 3
}}
|
| Result |
Title text here
|