FANDOM


Plantilla Documentación (Edit)

Uso

Plantilla:NavBox, Plantilla:NavBox/row, Plantilla:NavBox/head y Plantilla:NavBox/empty son usadas en unisono para construir plantillas de navegación.

Plantilla:NavBox es la base de la plantilla. cualquier valor en show expande la plantilla automáticamente cuando se carga la página. Reemplaza {{{1}}} con cualquier número y combinación de Plantilla:NavBox/row, Plantilla:NavBox/head and Plantilla:NavBox/empty. Add additional CSS properties to the box using style.

{{NavBox
|bgcolor=
|fgcolor=
|style=
|name=
|show=
|{{{1}}}
}}

Plantilla:NavBox/head creates area with a background colour inside Plantilla:NavBox or Plantilla:NavBox. Enter the text to be displayed in {{{1}}}. Set newrow to any value if there is another section below it of the same width (see example below.)

{{NavBox/head
|bgcolor=
|fgcolor=
|newrow=
|{{{1}}}
}}

Plantilla:NavBox/empty creates area with a black background colour inside Plantilla:NavBox or Plantilla:NavBox. Enter the text to be displayed in its single field. Set newrow to any value if there is another section below it of the same width (see example below.)

{{NavBox/empty
|bgcolor=
|fgcolor=
|newrow=
|{{{1}}}
}}

Plantilla:NavBox/row generates a two-column row. Replace field {{{1}}} with the row's title, which is displayed in the left column. Field {{{2}}} must be some combination of Plantilla:NavBox/row, Plantilla:NavBox/head and Plantilla:NavBox/empty.

{{NavBox/row
|{{{1}}}
|{{{2}}}
}}

To avoid extraneous newlines, observe the arrangement of the closing braces on the last line in the example below.

When web links, it may be necessary to escape = characters with =.

Optional Fields

The following are some notes on optional fields.

  • bgcolor
    • Manually sets the background color of the header text.
    • If using hex triplet (ex. #000000) the # must be replaced with #.
  • fgcolor
    • Manually sets the foreground color of the header text.
    • If using hex triplet (ex. #000000) the # must be replaced with #.

Ejemplo

{{NavBox
|name=Test
|
{{NavBox/empty|Argh!|newrow=x}}
{{NavBox/head|Polka Dots|newrow=x}}
{{NavBox/row
|Dressup
|
{{NavBox/head|Polka Dots 2|newrow=x}}
{{NavBox/empty|Argh 2!|newrow=x}}
{{NavBox/row
|Dressup 2
|
{{NavBox/head|Polka Dots 3|newrow=x}}
{{NavBox/empty|Argh 3!|newrow=x}}
{{NavBox/row
|Dressup 3
|
{{NavBox/head|Polka Dots 4|newrow=x}}
{{NavBox/empty|Argh 4!|newrow=x}}
}}
}}
}}
{{NavBox/row
|Mannequin
|
{{NavBox/row
|Sleeping<br/>security<br/>guard
|
{{NavBox/empty|Officer}}
}}
{{NavBox/row
|Mouse
|
{{NavBox/empty|Hole}}
}}
}}
{{NavBox/row
|Hamsterstan<br/>Gerbilstan
|
{{NavBox/empty|Flywheel}}
}}
}}

Known issues

Nested NavBox/row (and their content) may not expand vertically to fill the full height of a parent NavBox/row. This may occur when the parent's name is tall. This may be fixed later with CSS3 flexible layout.

El contenido de la comunidad está disponible bajo CC-BY-SA a menos que se indique lo contrario.