因为以下原因,您没有权限编辑本页: 您所请求的操作仅限于这些用户组的用户使用:用户、FANDOM助手、Wiki主管、内容团队人员 您没有权限编辑Template名字空间内的页面。 您可以查看与复制此页面的源代码。 <noinclude>{{documentationpage}}</noinclude> Template for creating simple group navboxes. Supports up to 8 groups with 5 subgroups each. Navboxes created with this template auto-collapse if there are more than 2 on a page (see [[:Template:Nb main]]). ==Usage== <pre> {{navbox group |name=Template name (without "Template:" prefix); you can use {{subst:PAGENAME}} |title =Title of your navbox |headerA =content of first header |groupA1 =name of first group row |contentA1 =content of first group row |groupA2 =name of second group row |contentA2 =content of second group row etc. Optional: |footer =Content of footer, if needed |blockA =Block name. Turns all subgroups belonging to group A (groupA1, groupA2 etc) into subgroups under this header. (blockB, blockC etc for the other groups) |headeralign =different text-alignment for header rows (left/right/center) if desired; centered by default |groupalign =different text-alignment for group and block cells (left/right/center) if desired; centered by default |contentalign =different text-alignment for content cells (left/right/center) if desired; left-aligned by default |footeralign =different text-alignment for footer (left/right/center) if desired; centered by default |nowraplinks =yes/no, whether links should be wrapped (no) or not (yes); defaults to yes }} </pre> All header, group and content fields are not displayed if not specified. Exception: If you turn a group into a block, the first subgroup of that block has to be set (e.g. if you set ''blockB=Some block'', groupB1 has to be specified). Maximum content is 8 groups (A up to H) with 5 subgroups (1 up to 5) each. ==Examples== ===without footer=== <pre> {{navbox group |name=%7B%7Bsubst%3APAGENAME%7D%7D |title=Title of your navbox |headerA=Header A |groupA1=First subgroup of A |contentA1=First subgroup content of A |groupA2=Second subgroup of A |contentA2=Second subgroup content of A |headerB=Header B |groupB1=First subgroup of B |contentB1=First subgroup content of B |groupB2=Second subgroup of B |contentB2=Second subgroup content of B }} </pre> results in: {{navbox group |name=Navbox group/doc |title=Title of your navbox |headerA=Header A |groupA1=First subgroup of A |contentA1=First subgroup content of A |groupA2=Second subgroup of A |contentA2=Second subgroup content of A |headerB=Header B |groupB1=First subgroup of B |contentB1=First subgroup content of B |groupB2=Second subgroup of B |contentB2=Second subgroup content of B }} ===with footer=== <pre> {{navbox group |name=%7B%7Bsubst%3APAGENAME%7D%7D |title=Title of your navbox |headerA=Header A |groupA1=First subgroup of A |contentA1=First subgroup content of A |groupA2=Second subgroup of A |contentA2=Second subgroup content of A |headerB=Header B |groupB1=First subgroup of B |contentB1=First subgroup content of B |groupB2=Second subgroup of B |contentB2=Second subgroup content of B |footer=Footer }} </pre> results in: {{navbox group |name=Navbox group/doc |title=Title of your navbox |headerA=Header A |groupA1=First subgroup of A |contentA1=First subgroup content of A |groupA2=Second subgroup of A |contentA2=Second subgroup content of A |headerB=Header B |groupB1=First subgroup of B |contentB1=First subgroup content of B |groupB2=Second subgroup of B |contentB2=Second subgroup content of B |footer=Footer }} 该页面使用的模板: Template:Directionbox(查看源代码)Template:Documentationpage(查看源代码)Template:Navbar(查看源代码)Template:Navbox group(查看源代码)Template:Nb group(查看源代码)Template:Nb header(查看源代码)(受半保护)Template:Nb main(查看源代码)(受半保护)返回至Template:Navbox group/doc。