Plantilla:Botón enlazable/doc

De Wikiversidad

Uso[editar]

ENGLISH[editar]

Example: {{Botón enlazable|Portada}} ⇒ Portada

See w:en:Template:Clickable button 2 for documentation and updates

This template styles a link like a button, using the mediawiki.ui.button module. This expands the clickable area and tap target for the link. It can be used in the following ways,

  • Code: {{Botón enlazable|página principal}} or {{Botón|página principal}}
  • Code: {{Botón enlazable|Portada|Página principal}}
  • Code: {{Botón enlazable|Portada|url=https://es.wikiversity.org}}
  • Code: {{Botón enlazable|Portada|class=mw-ui-destructive}}
  • Code: {{Botón enlazable|Portada|class=mw-ui-progressive}}


Template data[editar]

Styles a link like a button, using the mediawiki.ui.button module

Parámetros de la plantilla

Es preferible escribir los parámetros en una sola línea.

ParámetroDescripciónTipoEstado
Link/Label1

Defines the page to link to, and uses that page's title as the text for the button

Ejemplo
Foobar
Nombre de páginaobligatorio
Label2

Defines the text that appears on the button

Desconocidosugerido
URLurl

Defines a web address for the button to link to

Ejemplo
https://www.example.com
URLopcional
classclass

Defines the visual type of the button

Ejemplo
mw-ui-progressive, mw-ui-destructive
Cadenaopcional
stylestyle

sin descripción

Cadenaopcional
categorycategory

sin descripción

Lógicoopcional