Difference between revisions of "Template:Contradiction inline/doc"

From blackwiki
Jump to navigation Jump to search
imported>Chealer
imported>Trappist the monk
(Documentation for |date= and |reason= parameters;)
Line 5: Line 5:
 
=== Usage ===
 
=== Usage ===
 
This template is used to mark sentences or phrases that contradict material ''in the same article''.  To mark a sentence or phrase that contradicts something in a ''different'' article, use {{Tl|contradict-inline}} instead.
 
This template is used to mark sentences or phrases that contradict material ''in the same article''.  To mark a sentence or phrase that contradicts something in a ''different'' article, use {{Tl|contradict-inline}} instead.
 +
 +
{{code|<nowiki>{{contradiction-inline |reason= |date=}}</nowiki>}}
 +
=== Parameters ===
 +
;{{Para|date}}:
 +
This template allows an optional date parameter that records when the tag was added. If this template is added without the date parameter, the date parameter will be added soon after by a [[WP:BOT|bot]].
 +
 +
;{{Para|reason}}:
 +
Because it may not be immediately apparent to other editors where contradictions lie in an article, it is generally helpful to add a brief explanation to the tag: <code><nowiki>{{contradiction-inline|reason=</nowiki><var>location of the contradicting information</var><nowiki>}}</nowiki></code> (this is preferable to using an HTML <code>&lt;!-- comment --&gt;</code> after the tag, as it is more tidy to keep all of the {{tlx|contradiction-inline}}-related code inside the template). If the explanation would be lengthy, use the articles talk page but note that in the {{para|reason}} parameter ({{para|reason|<var>See Talk at {{no italics|Contradiction description}};</var>}}).
 +
 +
As well as being visible in the source code for editors' benefit, the {{para|reason}} parameter is, if provided, displayed when the mouse cursor hovers over the "contradiction" link in the article. For technical reasons, this mouseover feature does not work if the reason text contains double quotes. Use single quotes instead, or use the code <code>&amp;quot;</code> if it is essential to include a double quote.
  
 
=== See also ===
 
=== See also ===

Revision as of 15:56, 21 September 2012

This template will categorize tagged articles into Category:Self-contradictory articles.

Usage

This template is used to mark sentences or phrases that contradict material in the same article. To mark a sentence or phrase that contradicts something in a different article, use {{contradict-inline}} instead.

{{contradiction-inline |reason= |date=}}

Parameters

|date=

This template allows an optional date parameter that records when the tag was added. If this template is added without the date parameter, the date parameter will be added soon after by a bot.

|reason=

Because it may not be immediately apparent to other editors where contradictions lie in an article, it is generally helpful to add a brief explanation to the tag: {{contradiction-inline|reason=location of the contradicting information}} (this is preferable to using an HTML <!-- comment --> after the tag, as it is more tidy to keep all of the {{contradiction-inline}}-related code inside the template). If the explanation would be lengthy, use the articles talk page but note that in the |reason= parameter (|reason=See Talk at Template:No italics;).

As well as being visible in the source code for editors' benefit, the |reason= parameter is, if provided, displayed when the mouse cursor hovers over the "contradiction" link in the article. For technical reasons, this mouseover feature does not work if the reason text contains double quotes. Use single quotes instead, or use the code &quot; if it is essential to include a double quote.

See also