模板:Navbox
出自【暗黑百科】DiabloWiki_凯恩之角
{{{Header}}} | ||
---|---|---|
{{{Body1}}} |
Documentation
[purge
]
This template is used to create and generate all navboxes in the wiki. There are a total of 7 possible groups in each navbox, and each group can have five subgroups. It is imperative that the subgroups be used in order or the template will not display properly. Do not jump from Group2.3 to Group2.5 without using the subgroup in-between, as it will cause displaying errors.
BodyX.1 does not exist, this is to allow this template to be backwards compatible with already created navboxes in the wiki. When subheaders are used, BodyX assumes the role as the first body cell under a particular header.
Example
Code | Output | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Navbox |Header = Header |Body1 = Body1 |Group2 = Group2 |Body2 = Body2 |Group3 = Group3 |Group3.1 = Group3.1 |Group3.2 = Group3.2 |Body3 = Body3 |Body3.2 = Body3.2 }} |
|
Usage
Short Format (no sub-headers) | Complete Format |
---|---|
{{Navbox |Header = |Group1 = |Body1 = |Group2 = |Body2 = |Group3 = |Body3 = |Group4 = |Body4 = |Group5 = |Body5 = |Group6 = |Body6 = |Group7 = |Body7 = }} |
{{Navbox |Header = |Group1 = |Group1.1 = |Group1.2 = |Group1.3 = |Group1.4 = |Group1.5 = |Body1 = |Body1.2 = |Body1.3 = |Body1.4 = |Body1.5 = |Group2 = |Group2.1 = |Group2.2 = |Group2.3 = |Group2.4 = |Group2.5 = |Body2 = |Body2.2 = |Body2.3 = |Body2.4 = |Body2.5 = |Group3 = |Group3.1 = |Group3.2 = |Group3.3 = |Group3.4 = |Group3.5 = |Body3 = |Body3.2 = |Body3.3 = |Body3.4 = |Body3.5 = |Group4 = |Group4.1 = |Group4.2 = |Group4.3 = |Group4.4 = |Group4.5 = |Body4 = |Body4.2 = |Body4.3 = |Body4.4 = |Body4.5 = |Group5 = |Group5.1 = |Group5.2 = |Group5.3 = |Group5.4 = |Group5.5 = |Body5 = |Body5.2 = |Body5.3 = |Body5.4 = |Body5.5 = |Group6 = |Group6.1 = |Group6.2 = |Group6.3 = |Group6.4 = |Group6.5 = |Body6 = |Body6.2 = |Body6.3 = |Body6.4 = |Body6.5 = |Group7 = |Group7.1 = |Group7.2 = |Group7.3 = |Group7.4 = |Group7.5 = |Body7 = |Body7.2 = |Body7.3 = |Body7.4 = |Body7.5 = }} |