Diferencia entre revisiones de «Plantilla:Navbox»
(Página reemplazada por «<includeonly>{{#invoke: navbox | box }}</includeonly><noinclude> {{/doc}} N de:Vorlage:Navbox fr:Modèle:Navbox </noinclude>») |
m (Protegió «Plantilla:Navbox» ([Editar=Solo permitir administradores] (indefinido) [Pueden trasladar=Solo permitir administradores] (indefinido))) |
||
(No se muestran 22 ediciones intermedias de otro usuario) | |||
Línea 1: | Línea 1: | ||
− | <includeonly>{{# | + | <includeonly><table {{ |
+ | #if: {{{title|}}} | class="navbox hlist mw-collapsible mw-collapsed" {{#if: {{{bodystyle|}}} | style="{{{bodystyle}}}" "mw-collapsible" "mw-collapsed mw-collapsed" }} }}> | ||
+ | {{#if: {{{title|}}} | <tr> | ||
+ | <th class="navbox-top" colspan="2" "mw-collapsible" {{#if: {{{titlestyle|}}} | style="{{{titlestyle|}}}" }}> | ||
+ | {{#switch: {{{1}}} | navbar | navbar-mini = <div class="navbox-navbar"> | ||
+ | {{navbar|{{{name}}}|mini={{#ifeq: {{{1}}} | navbar-mini | 1 }}|plain=1}} | ||
+ | </div>}}<span class="navbox-title">{{{title}}}</span></th> | ||
+ | </tr>}} | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group1}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list1}}}</td> | ||
+ | </tr> | ||
+ | |||
+ | {{#if: {{{group2|}}} | {{#if: {{{list2|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group2}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list2}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group3|}}} | {{#if: {{{list3|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group3}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list3}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group4|}}} | {{#if: {{{list4|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group4}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list4}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group5|}}} | {{#if: {{{list5|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group5}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list5}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group6|}}} | {{#if: {{{list6|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group6}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list6}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group7|}}} | {{#if: {{{list7|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}> {{{group7}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list7}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group8|}}} | {{#if: {{{list8|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group8}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list8}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group9|}}} | {{#if: {{{list9|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group9}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list9}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group10|}}} | {{#if: {{{list10|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group10}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list10}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group11|}}} | {{#if: {{{list11|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group11}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list11}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group12|}}} | {{#if: {{{list12|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group12}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list12}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group13|}}} | {{#if: {{{list13|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group13}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list13}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group14|}}} | {{#if: {{{list14|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group14}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list14}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group15|}}} | {{#if: {{{list15|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group15}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list15}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group16|}}} | {{#if: {{{list16|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group16}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list16}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group17|}}} | {{#if: {{{list17|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group17}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list17}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group18|}}} | {{#if: {{{list18|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group18}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list18}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group19|}}} | {{#if: {{{list19|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group19}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list19}}}</td> | ||
+ | </tr>}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{group20|}}} | {{#if: {{{list20|}}} | | ||
+ | <tr> | ||
+ | <th class="navbox-group" {{#if: {{{groupstyle|}}} | style="{{{groupstyle = text-align:left}}}" }}>{{{group20}}}</th> | ||
+ | <td class="navbox-list" {{#if: {{{liststyle|}}} | style="{{{liststyle}}}" }}> | ||
+ | {{{list20}}}</td> | ||
+ | </tr>}} }} | ||
+ | </table></includeonly><noinclude> | ||
{{/doc}} | {{/doc}} | ||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
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)