Formula:Nexus ad formulam

E Vicipaedia
(Redirectum de Formula:Fn)
Icon documentationis Documentatio formulae[inspice] [recense] [historiam ostende] [purga]
Hanc paginam, in spatio Formulae nominali, oportet Latine convertere.

Haec formula sive transcludi ({{Nexus ad formulam|...}}) sive substitui potest ({{subst:Nexus ad formulam|...}}).

Haec formula Lua utitur:


Utere hac formula ut nexum ad formulam inseras.

De usu[fontem recensere]

This is the template link with parameters (or {{fn}}) template.

It can be used in documentation and talk page discussions to show how a template name would be used in code.

Here is how this template looks. Code to the left and actual rendering to the right:

{{fn|name|parameters}} = {{name|parameters}}

Features of {{fn}}:

  • It shows a template name with a link to that template.
  • It shows up to eight parameters.
  • It also shows empty parameters. (See examples below.)
  • It prevents line wraps in its output.
  • It uses normal text style.

Examples[fontem recensere]

Code Output Comments
{{fn|name}} {{name}}
{{fn|name|first}} {{name|first}}
{{fn|name|first|last}} {{name|first|last}}
{{fn|name|a|b|c|d|e|f|g|h|i|j}} {{name|a|b|c|d|e|f|g|h|i|j}} Shows up to eight parameters. The rest are dropped.
{{fn|name||three|four}} {{name||three|four}} Also shows empty parameters.
{{fn|name||three|}} {{name||three|}} Even shows empty parameters that come at the end.
{{fn|name|first=a|last=b}} {{name|first=a|last=b}} Equal signs are a problem, but there are a couple ways to fix:
{{fn|name|2=first=a|3=last=b}} {{name|first=a|last=b}} Use numbered parameters to fix it. Here, parameter "|2=" is assigned the string "first=a". Start with #2, since "name" is already in the "|1=" slot. Note that all subsequent parameters after a numbered parameter must also be numbered.
{{fn|name|first{{=}}a|last{{=}}b}} {{name|first=a|last=b}} Or, simply use, "{{=}}", the equal-sign template, to "escape" the symbol.
{{fn|name|2=1=a|3=2=b}} {{name|1=a|2=b}} Both techniques also work with numbered positional parameters (e.g.: "|1=", "|2=").
{{fn|name|2=1=a|last{{=}}b}} {{name|last=b}} The named parameter ("|last=") clobbered the prior one ("|2="). Again, all subsequent parameters after a numbered parameter must also be numbered...
{{fn|name|2=1=a|3=last=b}} {{name|1=a|last=b}} ... but that's easy to fix, by adding the position number ("|3=") to the last parameter.

Synonyma[fontem recensere]

  • {{Fn}}
  • {{Nf}}
  • {{Tl}} – nomen interviciale

Vide quoque[fontem recensere]