Diferencia entre revisiones de «Plantilla:Navbox»

De WikiMinecraft
Saltar a: navegación, buscar
Línea 2: Línea 2:
 
#if: {{{title|}}} | class="navbox hlist {{{state|collapsible}}}" {{#if: {{{bodystyle|}}} | style="{{{bodystyle}}}" }} }}>
 
#if: {{{title|}}} | class="navbox hlist {{{state|collapsible}}}" {{#if: {{{bodystyle|}}} | style="{{{bodystyle}}}" }} }}>
 
{{#if: {{{title|}}} | <tr>
 
{{#if: {{{title|}}} | <tr>
<th class="navbox-top" colspan="2" {{#if: {{{titlestyle|}}} | style="{{{titlestyle|}}}" }}>
+
<th class="navbox-top" colspan="2" "mw-collapsible" {{#if: {{{titlestyle|}}} | style="{{{titlestyle|}}}" }}>
 
{{#switch: {{{1}}} | navbar | navbar-mini = <div class="navbox-navbar">
 
{{#switch: {{{1}}} | navbar | navbar-mini = <div class="navbox-navbar">
 
{{navbar|{{{name}}}|mini={{#ifeq: {{{1}}} | navbar-mini | 1 }}|plain=1}}
 
{{navbar|{{{name}}}|mini={{#ifeq: {{{1}}} | navbar-mini | 1 }}|plain=1}}

Revisión del 23:00 11 abr 2014

Template-info.png Documentación

This template should be used to in navbox templates, which should then be included at the bottom of each page that is linked in the template.

Usage

Parameter(s) Usage Default value(s)
{{{name}}} Should be identical to the template's name without namespace. Does nothing unless {{{1}}} is set to navbar or navbar-mini. {{{name}}}
{{{title}}} Sets the title used at the top of the navbox. {{{title}}}
{{{state}}} Allows you to change the collapsing state of the table. More info. Collapsed is removed while on pages in the Template namespace, to make editing easier. collapsible collapsed
{{{1}}} navbar: Will add a navigation bar giving links to view, discuss, and edit the template. Requires {{{name}}} to be set. Note: This will only correctly link to templates that are actually in the Template: namespace.

navbar-mini: Identical to navbar, except the titles of the links are v, d, and e instead of view, discuss, and edit.

None
{{{titlestyle}}} Allows custom styling for the title area None
{{{bodystyle}}} Allows custom styling for the body area None
{{{groupstyle}}} Allows custom styling for the group area None
{{{liststyle}}} Allows custom styling for the list area None
{{{group1-20}}} Adds the heading for the group number specified {{{group1}}} = {{{group1}}}
{{{group2-20}}} = None
{{{list1-20}}} Adds text for the list number specified {{{list1}}} = {{{list1}}}
{{{list2-20}}} = None

Example

La documentación anterior se transcluye de Plantilla:Navbox/doc. (edit | history)