Difference between revisions of "Template:Citation error"

From blackwiki
Jump to navigation Jump to search
imported>Smith609
(Implement User:Debresser's Talk page request)
imported>Smith609
(Enhanced categorisation per talk page)
Line 1: Line 1:
<includeonly><span class="error">Error: {{{1|an error occurred}}} when using {{#if:{{{2|}}}|{{tl|{{{2}}}}}|citation template}}</span>{{#switch:{{NAMESPACE}}||Template|Help|Category=[[Category:Articles with broken citations]]|}}</includeonly><noinclude>{{template doc}}</noinclude>
+
<includeonly><span class="error">Error: {{{1|an error occurred}}} when using {{#if:{{{2|}}}|{{tl|{{{2}}}}}|citation template}}</span>{{Namespace detect showall|1=[[Category:Articles with broken citations|{{PAGENAME}}]]|2=[[Category:Articles with broken citations|τ{{PAGENAME}}]]|main=1|category=2|file=2|help=2|template=2}}</includeonly><noinclude>{{template doc}}</noinclude>

Revision as of 22:06, 2 September 2009

50px Template documentation[view] [edit] [history] [purge]

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}}Template:Namespace detect showall

See also