Difference between revisions of "Template:Color topics"

From blackwiki
Jump to navigation Jump to search
imported>Waldyrious
imported>Psychonaut
(remove non-basic colour terms, and add a prominent notice for those who continue to ignorantly reinsert them)
Line 119: Line 119:
 
  {{Navbox subgroup
 
  {{Navbox subgroup
 
| group7 = [[Basic color term|Basic terms]]
 
| group7 = [[Basic color term|Basic terms]]
| list7 =
+
| list7 =  
 +
 
 +
<!-- Do not add further colors to this list! These 11 are the only basic color terms in English. -->
 
*[[Red]]
 
*[[Red]]
 
*[[Green]]
 
*[[Green]]
 
*[[Blue]]
 
*[[Blue]]
*[[Cyan]]
 
*[[Magenta]]
 
 
*[[Yellow]]
 
*[[Yellow]]
 
*[[Orange (colour)|Orange]]
 
*[[Orange (colour)|Orange]]
 
*[[Purple]]
 
*[[Purple]]
*[[Violet (color)|Violet]]
 
*[[Indigo]]
 
 
*[[Pink]]
 
*[[Pink]]
 
*[[Brown]]
 
*[[Brown]]
Line 135: Line 133:
 
*[[Grey|{{#if:{{{1|}}}|Grey|Gray}}]]
 
*[[Grey|{{#if:{{{1|}}}|Grey|Gray}}]]
 
*[[White]]
 
*[[White]]
 +
<!-- Do not add further colors to this list! These 11 are the only basic color terms in English. -->
  
 
| group8 = [[:Category:Color in culture|Cultural differences]]
 
| group8 = [[:Category:Color in culture|Cultural differences]]

Revision as of 15:36, 5 October 2016

Usage

If the template is used with no parameters it defaults to the American spelling of color

If one parameter is passed it will default to the Commonwealth spelling of colour

{{Color_topics|colour}}

More than one parameter will be ignored. The value passed as the first parameter does not matter (for example it could be "x", "colour" or even "color") so long as it is set to something, then Commonwealth spelling will be used. However to make it self documenting it is recommended that "colour" be used as the parameter value.

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Color topics|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Color topics|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Color topics|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.