Template:FormattingError/doc: Difference between revisions

m
Text replacement - " " to " "
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> Outputs an error message in red into the page and adds the page to [[:Category:…')
 
m (Text replacement - " " to " ")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
Outputs an error message in red into the page and adds the page to [[:Category:Pages with incorrect formatting templates use]]. 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.&nbsp;[[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.
Outputs an error message in red into the page and adds the page to [[:Category:Pages with incorrect formatting templates use]]. 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.
=== Usage ===
=== Usage ===
* <nowiki>{{FormattingError|</nowiki>''error message''<nowiki>}}</nowiki>
* <nowiki>{{FormattingError|</nowiki>''error message''<nowiki>}}</nowiki>
Line 18: Line 18:
<includeonly>
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Metatemplates|{{PAGENAME}}]]


</includeonly>
</includeonly>