Difference between revisions of "Template:Citation error/doc"

From blackwiki
Jump to navigation Jump to search
(sl:Predloga:Citation error)
imported>Andrybak
 
(9 intermediate revisions by 9 users not shown)
Line 5: Line 5:
 
This template produces an error message to be displayed in citation templates, and categorizes the citation as broken.
 
This template produces an error message to be displayed in citation templates, and categorizes the citation as broken.
  
This template uses two un-named parameters:
+
This template uses two unnamed parameters:
  
 
* The first is the message
 
* The first is the message
Line 12: Line 12:
 
The {{tl|para}} template can be used to show parameters.
 
The {{tl|para}} template can be used to show parameters.
  
Only main, help and template pages will show this message; these pages will be placed into [[:Category:Articles with broken citations]].
+
All pages will show the error message. Main, help and template pages will be placed into [[:Category:Articles with incorrect citation syntax]] unless {{para|nocat|true}}.
  
 
=== Example ===
 
=== Example ===
<pre>{{Citation error|no {{para|title}} specified|Cite web}}</pre>
 
  
{{Citation error|no {{para|title}} specified|Cite web|nocat=true}}
+
{{markup
 +
|<nowiki>{{Citation error|no {{para|title}} specified|Cite web}}</nowiki>
 +
|{{Citation error|no {{para|title}} specified|Cite web|nocat=true}}
 +
}}
  
 
=== See also ===
 
=== See also ===
 
* {{tl|error}}
 
* {{tl|error}}
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
+
[[Category:Error-message templates]]
[[sl:Predloga:Citation error]]
+
}}</includeonly>
</includeonly>
 

Latest revision as of 19:55, 27 February 2020

Usage

This template produces an error message to be displayed in citation templates, and categorizes the citation as broken.

This template uses two unnamed parameters:

  • The first is the message
  • The second is optional and is the template name; it will automatically be wikilinked

The {{para}} template can be used to show parameters.

All pages will show the error message. Main, help and template pages will be placed into Category:Articles with incorrect citation syntax unless |nocat=true.

Example

Markup Renders as
{{Citation error|no {{para|title}} specified|Cite web}}

Error: no |title= specified when using {{Cite web}}

See also