Template:Sidebar: Difference between revisions

    叶子和他的Vtuber们
    (Created page with "{{#invoke:Sidebar|sidebar}}")
     
    No edit summary
    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 {{section link|Wikipedia:Manual of Style/Lead section#Elements}} discourages the placement of sidebars in the lead section of articles, though they may be included on a case-by-case basis.
     
    </noinclude>

    Revision as of 11:09, 9 January 2023

    Usage

    {{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 Wikipedia:Manual of Style/Lead section#Elements § Notes

    discourages the placement of sidebars in the lead section of articles, though they may be included on a case-by-case basis.