Difference between revisions of "Template:Color topics"

From blackwiki
Jump to navigation Jump to search
Line 3: Line 3:
 
| title    = [[Color|{{#if:{{{1|}}}|Colour|Color}}]] topics
 
| title    = [[Color|{{#if:{{{1|}}}|Colour|Color}}]] topics
 
| listclass = hlist
 
| listclass = hlist
 +
| aboveclass = hlist
 +
| belowclass = hlist
 +
 +
| above =
 +
* [[Shades of red|Red]]
 +
* [[Shades of orange|Orange]]
 +
* [[Shades of yellow|Yellow]]
 +
* [[Shades of green|Green]]
 +
* [[Variations of cyan|Cyan]]
 +
* [[Shades of blue|Blue]]
 +
* [[Shades of violet|Violet]]
 +
* [[Shades of purple|Purple]]
 +
* [[Shades of magenta|Magenta]]
 +
* [[Variations of pink|Pink]]
 +
* [[Shades of white|White]]
 +
* [[Variations of gray|{{#if:{{{1|}}}|Grey|Gray}}]]
 +
* [[Shades of black|Black]]
  
 
| group1 = {{#if:{{{1|}}}|Colour|Color}} perception
 
| group1 = {{#if:{{{1|}}}|Colour|Color}} perception
Line 29: Line 46:
 
*[[Color mixing|{{#if:{{{1|}}}|Colour|Color}} mixing]]
 
*[[Color mixing|{{#if:{{{1|}}}|Colour|Color}} mixing]]
 
*[[Pastel (color)|Pastel {{#if:{{{1|}}}|colour|color}}s]]
 
*[[Pastel (color)|Pastel {{#if:{{{1|}}}|colour|color}}s]]
 +
*[[Impossible colors]]
  
 
| group3 = [[Color term#Basic color terms|Basic {{#if:{{{1|}}}|colour|color}} terms]]<br/> in English<br/> ([[Basic Color Terms: Their Universality and Evolution|Berlin and Kay]])
 
| group3 = [[Color term#Basic color terms|Basic {{#if:{{{1|}}}|colour|color}} terms]]<br/> in English<br/> ([[Basic Color Terms: Their Universality and Evolution|Berlin and Kay]])
Line 43: Line 61:
 
*[[Grey|{{#if:{{{1|}}}|Grey|Gray}}]]
 
*[[Grey|{{#if:{{{1|}}}|Grey|Gray}}]]
 
*[[White]]
 
*[[White]]
 +
 
| group4 = Variations<br/> of {{#if:{{{1|}}}|colours|colors}}  
 
| group4 = Variations<br/> of {{#if:{{{1|}}}|colours|colors}}  
 
| list4  =  
 
| list4  =  
* [[Shades of red|Red]]
 
* [[Shades of orange|Orange]]
 
* [[Shades of yellow|Yellow]]
 
* [[Shades of green|Green]]
 
* [[Variations of cyan|Cyan]]
 
* [[Shades of blue|Blue]]
 
* [[Shades of violet|Violet]]
 
* [[Shades of purple|Purple]]
 
* [[Shades of magenta|Magenta]]
 
* [[Variations of pink|Pink]]
 
* [[Shades of white|White]]
 
* [[Variations of gray|{{#if:{{{1|}}}|Grey|Gray}}]]
 
* [[Shades of black|Black]]
 
  
 
| group5 = [[Index of color-related articles|Related]]
 
| group5 = [[Index of color-related articles|Related]]
Line 65: Line 71:
 
*[[Distinction of blue and green in various languages]]
 
*[[Distinction of blue and green in various languages]]
 
**[[grue and bleen]]
 
**[[grue and bleen]]
 +
 +
| below =
 +
* {{icon|category}} [[:Category:Color|Category]]
 +
* {{Icon|Portal}} [[:Portal:Color|Portal]]
  
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 06:16, 7 March 2014

Template documentation[view] [edit] [history] [purge]

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.