Template:Chart top: Difference between revisions
This cannot auto-collapse by default, per MOS:DONTHIDE. It should never be auto-collapsed on purpose in mainspace with this parameter, either, for the same reason. Collapsing stuff is potentially less objectionable in other namespaces. See also MOS:ACCESS for usability and accessibility issues. And use Template:Yesno-no, to interpret values like "Y", "false", etc. Also permit "collapse" not just "collapsed". |
Richardpruen (talk | contribs) m 1 revision imported: Templates and CSS files |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="collapsible {{#ifeq:{{ | {| class="collapsible {{#ifeq:{{Yesno-no|{{{collapsed|{{{collapse|}}}}}}}}|yes|collapsed|expanded}}" style="{{#switch:{{{align|}}}{{{float|}}} | ||
| left = margin: 0.3em | | left = margin: 0.3em 1em 0.3em 0; float:left; clear:{{{clear|left}}}; min-width:{{{min-width|{{{width|33em}}}}}}; | ||
| right = margin: 0.3em | | right = margin: 0.3em 0 0.3em 1em; float:right; clear:{{{clear|right}}}; min-width:{{{min-width|{{{width|33em}}}}}}; | ||
| #default = margin: 0.3em auto auto; clear:{{{clear|none}}}; min-width:{{{min-width|{{{width|60em}}}}}}; | | #default = margin: 0.3em auto auto; clear:{{{clear|none}}}; min-width:{{{min-width|{{{width|60em}}}}}}; | ||
}} width:{{{width|auto}}}; font-size: | }} width:{{{width|auto}}}; font-size:85%; border:1px solid #aaa" | ||
! style="padding:0.2em 0.3em 0.2em {{#if:{{{template_name|}}}|0.3em|4.3em}};background:none; width:{{{width|auto}}}" | {{#if:{{{template_name|}}} | ! style="padding:0.2em 0.3em 0.2em {{#if:{{{template_name|}}}|0.3em|4.3em}};background:{{#if:{{{background|}}}|{{{background|}}}|none}}; width:{{{width|auto}}}" | {{#if:{{{template_name|}}} | ||
|{{Navbar-collapsible|{{{1|Family of {{PAGENAME}}}}}|{{{template_name}}}}} | |{{Navbar-collapsible|{{{1|Family of {{PAGENAME}}}}}|{{{template_name}}}}} | ||
|{{{1|Family of {{PAGENAME}}}}} | |{{{1|Family of {{PAGENAME}}}}} | ||
Line 11: | Line 11: | ||
| style="text-align:{{{text-align|center}}}" | <noinclude> | | style="text-align:{{{text-align|center}}}" | <noinclude> | ||
|} | |} | ||
{{ | {{Documentation}}</noinclude> |