Difference between revisions of "Template:Contradiction inline/doc"
imported>Fgnievinski |
imported>Nnemo (Notably accessibility) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE | + | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS LINKS AT THE END --> |
| + | |||
{{distinguish|Template:Contradict-inline}} | {{distinguish|Template:Contradict-inline}} | ||
| Line 6: | Line 7: | ||
=== 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>}} | {{code|<nowiki>{{contradiction-inline |reason= |date=}}</nowiki>}} | ||
| + | |||
=== Parameters === | === Parameters === | ||
| + | |||
;{{Para|date}}: | ;{{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]]. | 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}}: | ;{{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 | + | 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 a HTML <code><!-- comment --></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 article's 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>&quot;</code> if it is essential to include a double quote. | 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>&quot;</code> if it is essential to include a double quote. | ||
| Line 26: | Line 30: | ||
{{Inline tags}} | {{Inline tags}} | ||
| + | |||
<includeonly> | <includeonly> | ||
| − | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | + | |
| + | <!-- CATEGORIES AND INTERWIKIS LINKS HERE, THANKS --> | ||
| + | |||
[[Category:Coherency templates]] | [[Category:Coherency templates]] | ||
[[Category:Inline cleanup templates]] | [[Category:Inline cleanup templates]] | ||
[[fa:الگو:متناقض]] | [[fa:الگو:متناقض]] | ||
| + | |||
</includeonly> | </includeonly> | ||
Revision as of 08:37, 21 July 2015
| This is a documentation subpage for Template:Contradiction inline. It contains usage information, categories and other content that is not part of the original template page. |
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 a 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 article's 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 " if it is essential to include a double quote.
See also
- {{Contradict-inline}}, an equivalent when the contradiction involves not just one article, but two
- {{Contradict-other}}
- {{Contradict-other-multiple}}
- {{Contradict}}
- {{Inconsistent}}, equivalent for mere inconsistencies