Difference between revisions of "Template:Citation error/sandbox"
Jump to navigation
Jump to search
imported>Gadget850 (ud from current) |
imported>Gadget850 (cat) |
||
Line 1: | Line 1: | ||
− | <includeonly><span class="error">Error: {{{1|an error occurred}}}{{#if:{{{2|}}}| when using {{tl|{{{2}}}}}}}</span>{{#ifeq:{{{nocat|}}}|true||{{Namespace detect showall|1=[[Category:Articles with incorrect citation syntax|{{PAGENAME}}]]|2=[[Category:Articles with incorrect citation syntax|τ{{PAGENAME}}]]|main=1|category=2|file=2|help=2|template=2}}}}</includeonly><noinclude>{{Documentation}}</noinclude> | + | <includeonly><span class="error">Error: {{{1|an error occurred}}}{{#if:{{{2|}}}| when using {{tl|{{{2}}}}}}}</span>{{#ifeq:{{{nocat|}}}|true||{{Namespace detect showall |
+ | |1={{#if: {{{cat|}}}|[[Category:{{{cat}}}]]|[[Category:Articles with incorrect citation syntax|{{PAGENAME}}]]}} | ||
+ | |2={{#if: {{{cat|}}}|[[Category:{{{cat}}}]]|[[Category:Articles with incorrect citation syntax|τ{{PAGENAME}}]]}} | ||
+ | |main=1 | ||
+ | |category=2 | ||
+ | |file=2 | ||
+ | |help=2 | ||
+ | |template=2}}}}</includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 19:55, 11 March 2012
![]() | This is the template sandbox page for Template:Citation error (diff). See also the companion subpage for test cases. |
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 |
See also
- {{error}}
The above documentation is transcluded from Template:Citation error/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |