Template:Collapsible
From Warhammer 40k - Lexicanum
[edit] []
Template documentation
Template providing multiple ways to create a collapsible element.
Usage
{{Collapsible|<constant>|<collapsible>|expandtext=<expand>|collapsetext=<collapse>|style=<style>|toggle=<cardinal>|collapsed=<binary>}}
Prerequisite values
-
<constant>- text always visible. If needed, leave this field empty, but don't omit it; -
<collapsible>- text hidden by the template.
Accessory fields
-
<expand>- display of the toggle in its collapsed state; -
<collapse>- display of the toggle in its expanded state; -
<style>- HTML style attribute field; -
<binary>- repository for any value, which inclusion makes collapsible element collapsed to begin with.
External field
-
<cardinal>- cardinal reference for Template:Collapsible toggle integration, its function within mentioned template documentation.
Examples
{{Collapsible|constant|collapsible}}
constant
collapsible
{{Collapsible|constant|collapsible|expandtext=expand|collapsetext=collapse|style=font-weight:bold;color:#452300|collapsed=any-value-whatsoever}}
constant
collapsible