Difference between revisions of "Template:Category contrast/doc"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(+cat Hatnote templates / -cat Hat notes)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(24 intermediate revisions by 15 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 +
{{tlp|contrast}} is a [[Wikipedia:Hatnotes|hatnote]] for categories.
  
{{tlx|contrast}} is a [[Wikipedia:hatnote|hatnote]] for categories.
+
== Usage ==
 +
: {{tlx|contrast |''antonym category'' (|''second antonym category'')}}
 +
 
 +
{{tlf|contrast|X}} produces: {{contrast|X}}
 +
i.e. the category contrasted is taken to be {{[[WP:VAR|PAGENAME]]}} (the name of the page on which {{tlf|contrast}} is [[Wikipedia:Transclusion|transcluded]]).
 +
 
 +
{{tlf|contrast|X|Y}} produces: {{contrast|X|Y}}
  
For reference, there is information about [[Wikipedia:Hatnote|hatnotes in general]], [[Wikipedia:Hatnote#Examples of proper use|when and how to use them]], a complete [[Wikipedia:Hatnote#Templates|list of the other hatnotes]] available, and [[Wikipedia:Otheruses templates (example usage)|examples of their use]].
+
To change the [[Copula (linguistics)|copula]] from "is" to "are", include {{para|copula|are}} or {{para|plural|true}} (or "<code>on</code>", "<code>yes</code>", etc).<br/>For example, {{tlf|contrast|copula{{=}}are|Y|Z}} produces: {{contrast|copula=are|Y|Z}}
  
== Usage ==
+
__TOC__
<!-- Abstract usage of the template -->
 
<pre>
 
{{contrast
 
  |antonym category
 
  |2nd antonym category (if applicable)
 
}}
 
</pre>
 
  
== Example ==
+
== Redirects ==
<!-- for the documentation don't subst the result -->
+
* {{tl|Cat contrast}}
{| class="wikitable"
+
* {{tl|Category contrast}}
| '''Code'''
+
* {{tl|Contrast category}}
| '''Result'''
 
|-
 
| valign="top" | <code><nowiki>{{contrast}}</nowiki></code>
 
| {{contrast}}
 
|-
 
| valign="top" | <code><nowiki>{{contrast|foo}}</nowiki></code>
 
| {{contrast|foo}}
 
|-
 
| valign="top" | <code><nowiki>{{contrast|foo|bar}}</nowiki></code>
 
| {{contrast|foo|bar}}
 
|}
 
  
 
== See also ==
 
== See also ==
*[[Template:Contrast2]]
+
* {{tl|Cat distinguish}}
*[[Template:CatRel]] - for horizontal linkage of related categories
+
 
<includeonly>
+
{{Category hatnote templates}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
[[Category:Hatnote templates for category pages]]
 
[[Category:Category namespace templates]]
 
[[Category:Category namespace templates]]
[[Category:Disambiguation and redirection templates|{{PAGENAME}}]]
+
[[Category:Disambiguation and redirection templates]]
[[Category:Hatnote templates]]
+
}}</includeonly>
 
 
[[mk:Шаблон:Спротивно]]
 
[[zh:Template:對比]]
 
</includeonly>
 

Latest revision as of 00:55, 24 April 2020

{{contrast}} is a hatnote for categories.

Usage

{{contrast |antonym category (|second antonym category)}}

{{contrast|X}} produces:

i.e. the category contrasted is taken to be {{PAGENAME}} (the name of the page on which {{contrast}} is transcluded).

{{contrast|X|Y}} produces:

To change the copula from "is" to "are", include |copula=are or |plural=true (or "on", "yes", etc).
For example, {{contrast|copula=are|Y|Z}} produces:

Redirects

See also