Formula:Nexus ad formulam
Haec formula adhibetur in circiter 4 400 paginis: mutationes ab utentibus pluribus videbuntur. Experiri oportet in subpaginis harenariis vel experimentalibus huius formulae aut in harenario tuo. De mutationibus consulere oportebit in pagina disputationis antequam effeceris. |
Haec formula sive transcludi ( |
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]
Vide quoque[fontem recensere]
- {{Fnp}}
- {{Fsn}}
- {{Fsnp}}
- {{Interfn}}
- {{Metafn}}
- {{Nexus ad modulum}}
- {{Nexus ad iussum MediaVicialem}}
Documentatio pristina transclusa est ex Formula:Nexus ad formulam/doc. (recense | historiam inspice)
Quaesumus auctores experturos esse in harenarii (crea | effinge) ac periclitationum (crea) subpaginis huius formulae.
Lubet categorias et nexus in /doc subpaginam addere. Vide etiam subpaginas huius formulae.