Diferencia entre revisiones de «Plantilla:URL»
wikitv>Abián m Protegió «Plantilla:URL»: Vandalismo reiterado: Spam ([edit=autoconfirmed] (indefinido) [move=autoconfirmed] (indefinido)) |
wikitves>Jonesey95 Adding unknown parameter tracking through Category:Pages using URL template with unknown parameters using Module:check for unknown parameters |
||
Línea 1: | Línea 1: | ||
<includeonly>{{# | <includeonly>{{#invoke:URL|url}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using URL template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:URL]] with unknown parameter "_VALUE_"|ignoreblank=y | 1 | 2 }}<noinclude>{{documentation}}</noinclude> | ||
Revisión del 02:50 18 nov 2019
Archivo:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Esta plantilla sirve para generar un enlace externo estandarizado.
Ejemplos
Código | Resultado |
---|---|
{{URL}} | |
{{URL|}} | |
{{URL|EJEMPLO.com}} | |
{{URL|ejemplo.com}} | |
{{URL|www.ejemplo.com}} | |
{{URL|http://www.ejemplo.com}} | |
{{URL|https://www.ejemplo.com}} | |
{{URL|ftp://www.ejemplo.com}} | |
{{URL|ftp://ftp.ejemplo.com}} | |
{{URL|http://www.ejemplo.com/}} | |
{{URL|http://www.ejemplo.com/path}} | |
{{URL|www.ejemplo.com/foo}} | |
{{URL|http://www.ejemplo.com/foo|enlace}} | |
{{URL|www.ejemplo.com/foo|enlace}} | |
{{URL|http://www.ejemplo.com/path/}} | |
{{URL|www.ejemplo.com/foo/}} | |
{{URL|1=http://www.ejemplo.com/path?section=17}} | |
{{URL|1=www.ejemplo.com/foo?page=42}} | |
{{URL|http://www.ejemplo.com/foo/|enlace}} | |
{{URL|www.ejemplo.com/foo/|enlace}} |
Una plantilla para mostrar y dar formato a una URL, dentro de otros tempatos
Parámetro | Descripción | Tipo | Estado | |
---|---|---|---|---|
URL | 1 | La URL que se va a vincular | Cadena | obligatorio |
Mostrar texto | 2 | El texto que se mostrará en lugar de la dirección URL. | Cadena | sugerido |