Difference between revisions of "Template:Color topics/doc"

From blackwiki
Jump to navigation Jump to search
imported>John of Reading
m (→‎Usage: Typo fixing, replaced: it it → it using AWB)
imported>Funandtrvl
(add category)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
  
 
== Usage ==
 
== Usage ==
Line 10: Line 10:
 
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.
 
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.
  
== See also ==
+
{{Collapsible option}}
  
<includeonly>
+
<includeonly>{{sandbox other||
<!-- Categories and interwikis go here: -->
+
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:Color templates]]
[[Category:Science and nature templates]]
+
}}</includeonly>
 
 
[[fa:الگو:موضوع‌های رنگ]]
 
[[hi:साँचा:रंग सूची]]
 
[[ja:Template:Color topics]]
 
[[pl:Szablon:Barwa]]
 
[[pt:Predefinição:Lista de cores]]
 
[[ru:Шаблон:Цветовая тематика]]
 
[[si:සැකිල්ල:Color topics]]
 
[[ur:سانچہ:دھنک کے رنگ]]
 
[[zh:Template:Color topics]]
 
 
 
</includeonly>
 

Latest revision as of 22:53, 24 November 2020

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.