Template:Smoking
Part of a series on |
Smoking |
---|
This template is designed for the series on Smoking acting as an access point to the multiple articles closely tied to the main subject. There are currently six different functions for this template all of which control the show/hide attribute of the template.
Parameters
[edit]This template includes collapsible lists.
- • To set it to display all lists when it appears (i.e. all lists expanded), use:
-
{{Smoking |expanded=all}}
or, if enabled,{{Smoking |all}}
(i.e. omitting "expanded=
").
- • To set it to display one particular list while keeping the remainder collapsed (i.e. hidden apart from their headings), use:
-
{{Smoking |expanded=listname}}
or, if enabled,{{Smoking |listname}}
- …where listname is one of the following (do not include any quotemarks):
- "tobacco", "cannabis", "opium", "crack", "other"
- For example,
{{Smoking |expanded=opium}}
or, if enabled,{{Smoking |opium}}
Examples
[edit]Basic operation
[edit]To place the template into the article, add it after the navigational templates and cleanup templates so that it is directly preceding the text. There should be no blank line between the template and the text.
{{other uses|Smoking (disambiguation)}}
{{Smoking}}
'''Smoking''' is a practice where a substance, most commonly [[tobacco]],
is burned and the [[smoke]] tasted or inhaled. This is primarily done as
a form of [[recreational drug use]], as [[combustion]] releases the
[[active ingredient]]s in drugs such as [[nicotine]] and makes them
available for absorption through the [[lung]]s.
Part of a series on |
Smoking |
---|
Smoking is a practice where a substance, most commonly tobacco, is burned and the smoke tasted or inhaled. This is primarily done as a form of recreational drug use, as combustion releases the active ingredients in drugs such as nicotine and makes them available for absorption through the lungs.
Expanding a section
[edit]To expand a section by default, add "expanded = section" to the template, where section is one of the five listed above. The section within the template will therefore default as "show", rather than "hide". Remember to add the pipe symbol " | " (generally located above the enter or return key) to separate the template name and the parameters.
{{other uses|Smoking (disambiguation)}}
{{Smoking|expanded=tobacco}}
'''Smoking''' is a practice where a substance, most commonly [[tobacco]],
is burned and the [[smoke]] tasted or inhaled. This is primarily done as
a form of [[recreational drug use]], as [[combustion]] releases the
[[active ingredient]]s in drugs such as [[nicotine]] and makes them
available for absorption through the [[lung]]s.
Part of a series on |
Smoking |
---|
Smoking is a practice where a substance, most commonly tobacco, is burned and the smoke tasted or inhaled. This is primarily done as a form of recreational drug use, as combustion releases the active ingredients in drugs such as nicotine and makes them available for absorption through the lungs.
Expanding all sections
[edit]To show all five sections at once add "expanded = all" to the template.
{{other uses|Smoking (disambiguation)}}
{{Smoking|expanded=all}}
'''Smoking''' is a practice where a substance, most commonly [[tobacco]],
is burned and the [[smoke]] tasted or inhaled. This is primarily done as
a form of [[recreational drug use]], as [[combustion]] releases the
[[active ingredient]]s in drugs such as [[nicotine]] and makes them
available for absorption through the [[lung]]s.
Part of a series on |
Smoking |
---|
Smoking is a practice where a substance, most commonly tobacco, is burned and the smoke tasted or inhaled. This is primarily done as a form of recreational drug use, as combustion releases the active ingredients in drugs such as nicotine and makes them available for absorption through the lungs.