Difference between revisions of "Template:Carbonates"

From blackwiki
Jump to navigation Jump to search
imported>Ccv2020
(Added links)
imported>Andrybak
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="wikitable" style="background-color:transparent; font-size:12px; text-align:center; border:0; margin-left: auto; margin-right: auto;"
+
<div class="navbox mw-collapsible <includeonly>{{#ifeq:{{{state|}}}|collapsed|mw-collapsed|{{{state|autocollapse}}}}}</includeonly>" style="padding:3px">
|+ Carbonates
+
<div class="navbox-title">{{navbar-collapsible| Compounds containing the [[carbonate]] group| Template:Carbonates}}</div>
 +
{| class="mw-collapsible-content center"
 
|- style="background-color:mistyrose;" <!--  PERIODE 1  -->
 
|- style="background-color:mistyrose;" <!--  PERIODE 1  -->
 
| [[Carbonic acid|H<sub>2</sub>CO<sub>3</sub>]]
 
| [[Carbonic acid|H<sub>2</sub>CO<sub>3</sub>]]
Line 138: Line 139:
 
| No
 
| No
 
| Lr
 
| Lr
|}
+
|}</div>
 
<noinclude>
 
<noinclude>
{{collapsible option}}
+
{{collapsible option}}{{sandbox other||
 
[[Category:Carbonates| ]]
 
[[Category:Carbonates| ]]
[[Category:Chemistry templates]]
+
[[Category:Chemistry navigational boxes]]
 
[[Category:Chemistry compounds templates]]
 
[[Category:Chemistry compounds templates]]
</noinclude>
+
 
 +
}}</noinclude>

Latest revision as of 16:26, 7 November 2020

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{Carbonates|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Carbonates|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Carbonates|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.