Esta plantilla formatea un enlace para su uso en plantillas de hatnote. Acepta hasta tres parámetros posicionales: el enlace, un valor de visualización opcional y una anulación de destino opcional (que, si se proporciona, hace que el parámetro de enlace sea opcional). Estos parámetros también se pueden proporcionar por nombre, como link , display y target respectivamente. Los enlaces a categorías y archivos se escapan automáticamente con el truco de dos puntos , y los enlaces a secciones se formatean automáticamente como page § section , en lugar del valor predeterminado de MediaWiki de page#section .
Esta plantilla no funciona con subst .
Enlace solamente:
{{format link|link}}
Enlace más pantalla:
{{format link|link|display}}
Enlace con un nombre de página en cursiva:
{{format link|link|italicizepage=yes}}
Enlace con un nombre de sección en cursiva:
{{format link|link|italicizesection=yes}}
Si el enlace o los valores de visualización contienen un signo igual, deberá especificar los nombres de los parámetros de la siguiente manera:
{{format link|1=link|2=display}}
Enlace con una anulación de objetivo:
{{format link|link|display|target}}
Enlace con parámetros suministrados por nombre:
{{format link|link=link|display=display|target=target}}
{{format link|Lion}}
→ [[León]] → León{{format link|Lion#Etymology}}
→ [[León#Etimología|León § Etimología]] → León § Etimología{{format link|Category:Lions}}
→ [[:Categoría:Leones]] → Categoría:Leones{{format link|Lion#Etymology|Etymology of lion}}
→ [[León#Etimología|Etimología de león]] → Etimología de león{{format link|#Bar|Foo#Bar}}
→ [[:Foo#Bar|§ Barra]] → § Barra{{format link|Quo warranto#Philippines|italicizepage=true}}
→ [[Quo warranto#Philippines|<i>Quo warranto</i> § Filipinas]] → Quo warranto § Filipinas{{format link|Cybercrime Prevention Act of 2012#Disini v. Secretary of Justice|italicizesection=true}}
→ [[Ley de Prevención del Delito Cibernético de 2012#Disini v. Secretary of Justice|Ley de Prevención del Delito Cibernético de 2012 § <i>Disini v. Secretary of Justice</i>]] → Ley de Prevención del Delito Cibernético de 2012 § Disini v. Secretary of Justice{{format link}}
→ Error: no se ha especificado ningún enlace o destino. (ayuda)Si se utiliza esta plantilla y no se proporciona ni el parámetro de enlace (o parámetro posicional 1) ni el parámetro de destino (o parámetro posicional 3), la plantilla devolverá un mensaje de error. Se debe proporcionar al menos uno de ellos.