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

From blackwiki
Jump to navigation Jump to search
imported>DixonDBot
m (Migrating 5 interwiki links, now provided by Wikidata on d:Q6401533)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(12 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{tlx|contrast}} is a [[Wikipedia:hatnote|hatnote]] for categories.
+
{{documentation subpage}}
 +
{{tlp|contrast}} is a [[Wikipedia:Hatnotes|hatnote]] for categories.
  
 
== Usage ==
 
== Usage ==
<!-- Abstract usage of the template -->
+
: {{tlx|contrast&#32;|''antonym category''&#32;(|''second antonym category'')}}
<pre>
 
{{contrast
 
  |antonym category
 
  |2nd antonym category (if applicable)
 
  |plural = yes (optional)
 
}}
 
</pre>
 
  
== Example ==
+
{{tlf|contrast|X}} produces: {{contrast|X}}
<!-- for the documentation don't subst the result -->
+
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]]).
{| class="wikitable"
 
| '''Code'''
 
| '''Result'''
 
|-
 
| valign="top" | {{tlx|contrast|foo}}
 
| {{contrast|foo}}
 
|-
 
| valign="top" | {{tlx|contrast|foo|bar}}
 
| {{contrast|foo|bar}}
 
|-
 
| valign="top" | {{tlx|contrast|foo|bar|plural{{=}}yes}}
 
| {{contrast|foo|bar|plural=yes}}
 
|}
 
  
{{hatnote templates documentation}}
+
{{tlf|contrast|X|Y}} produces: {{contrast|X|Y}}
  
<includeonly>
+
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}}
 +
 
 +
__TOC__
 +
 
 +
== Redirects ==
 +
* {{tl|Cat contrast}}
 +
* {{tl|Category contrast}}
 +
* {{tl|Contrast category}}
 +
 
 +
== See also ==
 +
* {{tl|Cat distinguish}}
 +
 
 +
{{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 for category pages]]
+
}}</includeonly>
 
 
</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