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>Sardanaphalus
(update (copula) and formatting)
Line 1: Line 1:
{{tlx|contrast}} is a [[Wikipedia:hatnote|hatnote]] for categories.
+
{{tlxpl|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 ==
+
{{tcpl|contrast|X}} produces: {{contrast|X}}
<!-- for the documentation don't subst the result -->
+
i.e. the category contrasted is taken to be {{95%|{{[[WP:VAR|PAGENAME]]}}}} (the name of the page on which {{tnf|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}}
+
{{tcpl|contrast|X|Y}} produces: {{contrast|X|Y}}
 +
 
 +
To change the [[Copula (linguistics)|copula]] from "is" to "are", include {{para|copula|are}} or {{para|plural|true}} (or "on", "yes", etc).<br/>For example, {{tcpl|contrast|copula{{=}}are|Y|Z}} produces: {{contrast|copula=are|Y|Z}}
 +
 
 +
__TOC__
 +
 
 +
{{Hatnote templates documentation}}
  
 
<includeonly>
 
<includeonly>
 +
[[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>

Revision as of 21:15, 26 September 2014

Template:Tlxpl is a hatnote for categories.

Usage

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

Template:Tcpl produces:

i.e. the category contrasted is taken to be Template:95% (the name of the page on which Template:Tnf is transcluded).

Template:Tcpl produces:

To change the copula from "is" to "are", include |copula=are or |plural=true (or "on", "yes", etc).
For example, Template:Tcpl produces:

Contents