Wikia


 
Regel 1: Regel 1:
 
<table cellspacing="0" cellpadding="0" class="{{#switch:{{{position}}}|right=fallout_navbox_box_right|left=fallout_navbox_box_left|bottom|#default=fallout_navbox_box_bottom collapsible autocollapse}}" style="width:{{{width|100%}}};">
 
<table cellspacing="0" cellpadding="0" class="{{#switch:{{{position}}}|right=fallout_navbox_box_right|left=fallout_navbox_box_left|bottom|#default=fallout_navbox_box_bottom collapsible autocollapse}}" style="width:{{{width|100%}}};">
<tr><th class="fallout_navbox_box_title">{{#switch:{{{position}}}|right|left=<div style="width:2em; float:right;">&#160;</div>|bottom|#default=}}<div style="float:left; width:{{#switch:{{{position}}}|right|left=2em|bottom|#default=6em}}; text-align:left;">{{#switch:{{{showedit}}}|no=&#160;|yes|#default={{#ifeq:{{{Template:{{{name|empty}}}|empty|Name?|{{navbar|{{{name}}}}}} }} }} }}</div><span class="fallout_navbox_maintitle">{{{title|Title?}}}</span></th></tr>
+
<tr><th class="fallout_navbox_box_title">{{#switch:{{{position}}}|right|left=<div style="width:2em; float:right;">&#160;</div>|bottom|#default=}}<div style="float:left; width:{{#switch:{{{position}}}|right|left=2em|bottom|#default=6em}}; text-align:left;">{{#switch:{{{showedit}}}|no=&#160;|yes|#default={{#ifeq:{{{name|empty}}}|empty|Name?|{{navbar|{{{name}}} }} }} }}</div><span class="fallout_navbox_maintitle">{{{title|Title?}}}</span></th></tr>
 
<tr><td class="fallout_navbox_datacont">
 
<tr><td class="fallout_navbox_datacont">
 
{| width="100%" class="fallout_navbox {{#ifeq:{{{nowraplinks|yes}}}|no||fallout_navbox_nowraplinks}}" cellspacing="0" cellpadding="0"
 
{| width="100%" class="fallout_navbox {{#ifeq:{{{nowraplinks|yes}}}|no||fallout_navbox_nowraplinks}}" cellspacing="0" cellpadding="0"

Huidige versie van 4 feb 2012 om 18:40

Name?
Title?
Sjabloon documentatie (voor het sjabloon dat hierboven getoond wordt, soms onzichtbaar)

Template used for building navboxes.

Standard navboxes (i.e. those inserted at the bottom of an article) are collapsible and will be auto-collapsed if there are more than 2 of them on a page (number can be changed in MediaWiki:Common.js). Side navboxes are not collapsible and do not count towards this limit.

Premade navboxesEdit

UsageEdit

Please note that in order to maintain a standardized look, the width should only be changed if really necessary (e.g. for sideboxes). All boxes placed at the bottom should keep the standard width, i.e. no width attribute should be specified.

The name attribute should be set at top level, i.e. in the navbox that actually contains content. All intermediate templates (those which are used to construct the final product) should hand the attribute down to Template:Nb main.

{{nb main
|name=Name of template (without "Template:" prefix)
|title=Title of your navbox
|data=
{{nb header|Header}}
{{nb group|Group|Group content}}
{{nb row|Row}}
}}

Optional:
|footer=Footer text
|footeralign=text-alignment of footer
|nowraplinks=yes/no - don't wrap links in the content fields of this navbox? (defaults to yes)
|width=Width of your navbox, e.g. ''250px'' or ''60%'' (defaults to 80%).
|position=left, right or bottom (defaults to bottom)
|showedit=yes/no, shows/hides the view/edit/talk bar in the top left (defaults to yes).

Use any combination of components you like. All components support changing their text-alignment via align (align1 and align2 for the group row; align1, align2 and blockalign for the block). See component pages for details.

ComponentsEdit

ExamplesEdit

Simple boxEdit

Test

Simple box with sub-headersEdit

Test

Simple group boxEdit

Test

Mixed box with footerEdit

Test

Documentatie overgenomen van Sjabloon:Nb main/doc.
Community content is available under CC-BY-SA unless otherwise noted.