Template:Sidebar: Difference between revisions
(Created page with "{{#invoke:Sidebar|sidebar}}") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:Sidebar|sidebar}} | {{#invoke:Sidebar|sidebar}}<noinclude> | ||
== Usage == | |||
{{Sidebar | |||
| name = Sidebar | |||
| class = | |||
| wraplinks = <!-- "true" otherwise (default:) omit --> | |||
| float = | |||
| templatestyles = | |||
| child templatestyles = | |||
| grandchild templatestyles = | |||
| outertitle = 外部标题 | |||
| pretitleclass = | |||
| pretitle = 前标题文字 | |||
| titleclass = | |||
| title = 标题文字 | |||
| image = [[File:澪月Zero的头像.jpg|100px]] | |||
| caption = 图片注释 | |||
| above = 顶部文字 | |||
| heading1 = 标题1 | |||
| content1 = 内容1 | |||
| heading2 = 标题2 | |||
| content2 = 内容2 | |||
| heading3 = 标题3 | |||
| content3 = 内容3 | |||
| below = 底部文字 | |||
}} | |||
<pre> | |||
{{Sidebar | |||
| name = {{subst:PAGENAME}} | |||
| class = | |||
| wraplinks = <!-- "true" otherwise (default:) omit --> | |||
| float = | |||
| templatestyles = | |||
| child templatestyles = | |||
| grandchild templatestyles = | |||
| outertitleclass = | |||
| outertitle = | |||
| topimageclass = | |||
| topimage = | |||
| topcaption = | |||
| pretitleclass = | |||
| pretitle = | |||
| titleclass = | |||
| title = | |||
| imageclass = | |||
| image = | |||
| caption = | |||
| headingclass = | |||
| contentclass = | |||
| aboveclass = | |||
| above = | |||
| heading1 = | |||
| heading1class = | |||
| content1 = | |||
| content1class = | |||
| heading2 = | |||
| heading2class = | |||
| content2 = | |||
| content2class = | |||
| heading3 = | |||
| heading3class = | |||
| content3 = | |||
| content3class = | |||
<!-- (omitting infinite heading/content parameters) --> | |||
| belowclass = | |||
| below = | |||
| navbar = | |||
}} | |||
</pre> | |||
Note that we discourages the placement of sidebars in the lead section of articles, though they may be included on a case-by-case basis. | |||
</noinclude> |
Latest revision as of 11:27, 9 January 2023
Usage
前标题文字 |
标题文字 |
---|
顶部文字 |
标题1 |
内容1 |
标题2 |
内容2 |
标题3 |
内容3 |
底部文字 |
{{Sidebar | name = {{subst:PAGENAME}} | class = | wraplinks = <!-- "true" otherwise (default:) omit --> | float = | templatestyles = | child templatestyles = | grandchild templatestyles = | outertitleclass = | outertitle = | topimageclass = | topimage = | topcaption = | pretitleclass = | pretitle = | titleclass = | title = | imageclass = | image = | caption = | headingclass = | contentclass = | aboveclass = | above = | heading1 = | heading1class = | content1 = | content1class = | heading2 = | heading2class = | content2 = | content2class = | heading3 = | heading3class = | content3 = | content3class = <!-- (omitting infinite heading/content parameters) --> | belowclass = | below = | navbar = }}
Note that we discourages the placement of sidebars in the lead section of articles, though they may be included on a case-by-case basis.