Template:Chart top: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
(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".)
 
m (1 revision imported: Templates and CSS files)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="collapsible {{#ifeq:{{yesno-no|{{{collapsed|{{{collapse|}}}}}}}}|yes|collapsed|expanded}}" style="{{#switch:{{{align|}}}{{{float|}}}
{| class="collapsible {{#ifeq:{{Yesno-no|{{{collapsed|{{{collapse|}}}}}}}}|yes|collapsed|expanded}}" style="{{#switch:{{{align|}}}{{{float|}}}
  | left = margin: 0.3em 0 0.3em 1em; float:left; clear:{{{clear|left}}}; min-width:{{{min-width|{{{width|33em}}}}}};
  | left     = margin: 0.3em 1em 0.3em 0; float:left; clear:{{{clear|left}}}; min-width:{{{min-width|{{{width|33em}}}}}};
  | right = margin: 0.3em 1em 0.3em 1em; float:right; clear:{{{clear|right}}}; min-width:{{{min-width|{{{width|33em}}}}}};
  | 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:88%; border:1px solid #aaa;"
  }} 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>
{{Documentation}}</noinclude>

Latest revision as of 18:39, 4 December 2022

Family of Chart top