Formula:Error formalis
Outputs an error message in red into the page and adds the page to Categoria:Paginae cum erroribus formalibus. An anchor (FormattingError) is inserted at the start of the error message, so you can find any errors on a page easily by adding #FormattingError at the end of the URL (e.g. Template:val/test#FormattingError). Used in complex templates that check their arguments for validity, so incorrect use can be spotted while editing a page or afterwards.
De usu
[fontem recensere]Vicitextus:
{{Error formalis|Error: Gallia est omnis divisa in partes tres}}
vel
{{Error formalis|Error: Gallia est omnis divisa in partes tres|propositum=exhibitio}}
Effectus:
- Error: Gallia est omnis divisa in partes tres
When using the nocategory argument, the error message is displayed as usual, but the page is not added to Categoria:Paginae cum erroribus formalibus. This is useful in documentation pages for templates that use {{Error formalis}} and show what errors they can generate without adding these documentation pages to the category. For an example of this, see {{LinkForElement}}.
This template can be evaluated using the {{#iferror:}} parser function:
{{#iferror:{{val|XX}}|error|OK}}→error
Synonyma
[fontem recensere]- {{FormattingError}} – nomen interviciale
Ulteriora si cupis
[fontem recensere]|
Categoriae vestigatoriae Haec formula categoriis vestigatoriis utitur: |
- {{Error}}
- What links here for a list of pages that use this template
- Categoria:Paginae cum erroribus formalibus for a list of pages that have been marked as using a formatting template incorrectly using this template.
Documentatio pristina transclusa est ex Formula:Error formalis/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.
