Diferencia entre revisiones de «Plantilla:Navbox»
m (1 revisión) |
m (Protegió «Plantilla:Navbox» ([Editar=Solo permitir administradores] (indefinido) [Pueden trasladar=Solo permitir administradores] (indefinido))) |
||
(No se muestran 25 ediciones intermedias de 2 usuarios) | |||
Línea 1: | Línea 1: | ||
<includeonly><table {{ | <includeonly><table {{ | ||
− | #if: {{{title|}}} | class="navbox hlist | + | #if: {{{title|}}} | class="navbox hlist mw-collapsible mw-collapsed" {{#if: {{{bodystyle|}}} | style="{{{bodystyle}}}" "mw-collapsible" "mw-collapsed mw-collapsed" }} }}> |
{{#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}} | ||
Línea 8: | Línea 8: | ||
</tr>}} | </tr>}} | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group1}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group1}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list1}}}</td> | {{{list1}}}</td> | ||
Línea 15: | Línea 15: | ||
{{#if: {{{group2|}}} | {{#if: {{{list2|}}} | | {{#if: {{{group2|}}} | {{#if: {{{list2|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group2}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group2}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list2}}}</td> | {{{list2}}}</td> | ||
Línea 22: | Línea 22: | ||
-->{{#if: {{{group3|}}} | {{#if: {{{list3|}}} | | -->{{#if: {{{group3|}}} | {{#if: {{{list3|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group3}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group3}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list3}}}</td> | {{{list3}}}</td> | ||
Línea 29: | Línea 29: | ||
-->{{#if: {{{group4|}}} | {{#if: {{{list4|}}} | | -->{{#if: {{{group4|}}} | {{#if: {{{list4|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group4}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group4}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list4}}}</td> | {{{list4}}}</td> | ||
Línea 36: | Línea 36: | ||
-->{{#if: {{{group5|}}} | {{#if: {{{list5|}}} | | -->{{#if: {{{group5|}}} | {{#if: {{{list5|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group5}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group5}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list5}}}</td> | {{{list5}}}</td> | ||
Línea 43: | Línea 43: | ||
-->{{#if: {{{group6|}}} | {{#if: {{{list6|}}} | | -->{{#if: {{{group6|}}} | {{#if: {{{list6|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group6}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group6}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list6}}}</td> | {{{list6}}}</td> | ||
Línea 50: | Línea 50: | ||
-->{{#if: {{{group7|}}} | {{#if: {{{list7|}}} | | -->{{#if: {{{group7|}}} | {{#if: {{{list7|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}> {{{group7}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}> {{{group7}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list7}}}</td> | {{{list7}}}</td> | ||
Línea 57: | Línea 57: | ||
-->{{#if: {{{group8|}}} | {{#if: {{{list8|}}} | | -->{{#if: {{{group8|}}} | {{#if: {{{list8|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group8}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group8}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list8}}}</td> | {{{list8}}}</td> | ||
Línea 64: | Línea 64: | ||
-->{{#if: {{{group9|}}} | {{#if: {{{list9|}}} | | -->{{#if: {{{group9|}}} | {{#if: {{{list9|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group9}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group9}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list9}}}</td> | {{{list9}}}</td> | ||
Línea 71: | Línea 71: | ||
-->{{#if: {{{group10|}}} | {{#if: {{{list10|}}} | | -->{{#if: {{{group10|}}} | {{#if: {{{list10|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group10}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group10}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list10}}}</td> | {{{list10}}}</td> | ||
Línea 78: | Línea 78: | ||
-->{{#if: {{{group11|}}} | {{#if: {{{list11|}}} | | -->{{#if: {{{group11|}}} | {{#if: {{{list11|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group11}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group11}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list11}}}</td> | {{{list11}}}</td> | ||
Línea 85: | Línea 85: | ||
-->{{#if: {{{group12|}}} | {{#if: {{{list12|}}} | | -->{{#if: {{{group12|}}} | {{#if: {{{list12|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group12}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group12}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list12}}}</td> | {{{list12}}}</td> | ||
Línea 92: | Línea 92: | ||
-->{{#if: {{{group13|}}} | {{#if: {{{list13|}}} | | -->{{#if: {{{group13|}}} | {{#if: {{{list13|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group13}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group13}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list13}}}</td> | {{{list13}}}</td> | ||
Línea 99: | Línea 99: | ||
-->{{#if: {{{group14|}}} | {{#if: {{{list14|}}} | | -->{{#if: {{{group14|}}} | {{#if: {{{list14|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group14}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group14}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list14}}}</td> | {{{list14}}}</td> | ||
Línea 106: | Línea 106: | ||
-->{{#if: {{{group15|}}} | {{#if: {{{list15|}}} | | -->{{#if: {{{group15|}}} | {{#if: {{{list15|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group15}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group15}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list15}}}</td> | {{{list15}}}</td> | ||
Línea 113: | Línea 113: | ||
-->{{#if: {{{group16|}}} | {{#if: {{{list16|}}} | | -->{{#if: {{{group16|}}} | {{#if: {{{list16|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group16}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group16}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list16}}}</td> | {{{list16}}}</td> | ||
Línea 120: | Línea 120: | ||
-->{{#if: {{{group17|}}} | {{#if: {{{list17|}}} | | -->{{#if: {{{group17|}}} | {{#if: {{{list17|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group17}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group17}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list17}}}</td> | {{{list17}}}</td> | ||
Línea 127: | Línea 127: | ||
-->{{#if: {{{group18|}}} | {{#if: {{{list18|}}} | | -->{{#if: {{{group18|}}} | {{#if: {{{list18|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group18}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group18}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list18}}}</td> | {{{list18}}}</td> | ||
Línea 134: | Línea 134: | ||
-->{{#if: {{{group19|}}} | {{#if: {{{list19|}}} | | -->{{#if: {{{group19|}}} | {{#if: {{{list19|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group19}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group19}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list19}}}</td> | {{{list19}}}</td> | ||
Línea 141: | Línea 141: | ||
-->{{#if: {{{group20|}}} | {{#if: {{{list20|}}} | | -->{{#if: {{{group20|}}} | {{#if: {{{list20|}}} | | ||
<tr> | <tr> | ||
− | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle}}}" }}>{{{group20}}}</th> | + | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group20}}}</th> |
<td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
{{{list20}}}</td> | {{{list20}}}</td> |
Revisión actual del 15:54 20 abr 2014
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
Example group 1 | Example list 1 | ||||||
---|---|---|---|---|---|---|---|
Example group 2 |
Text above a child navbox
|
La documentación anterior se transcluye de Plantilla:Navbox/doc. (edit | history)