• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Divhide

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

Contents

  • 1 Usage
    • 1.1 1st parameter
    • 1.2 2nd parameter
    • 1.3 width parameter
    • 1.4 show parameter
    • 1.5 color parameter
  • 2 Note on using this template to close discussions
  • 3 See also

Usage

This template will allow you to collapse a section of a page. It may only be used outside of articlespace. The first parameter is the title of the collapse section, and the second (optional parameter) is the width. To close the section, use {{divhide|end}}.

1st parameter

The first unnamed parameter is used at the top for the title and at the bottom to mark the end of the hidden section.

{{divhide|Test}}
These are the hidden contents.
{{divhide|end}}
Test

These are the hidden contents.

2nd parameter

The second unnamed parameter is used to specify the width.

{{divhide|Half test|50%}}
These are the hidden contents, and the box only takes up 50% of the page.
{{divhide|end}}
Half test

These are the hidden contents, and the box only takes up 50% of the page.

width parameter

The width parameter may be used to specify the width.

{{divhide|Width test|width=75%}}
These are the hidden contents, and the box only takes up 75% of the page.
{{divhide|end}}
Width test

These are the hidden contents, and the box only takes up 75% of the page.

show parameter

The parameter |show=yes may be used to show the contents by default.

{{divhide|Show test|show=yes}}
This section is shown by default.
{{divhide|end}}
Show test

This section is shown by default.

color parameter

The color parameter may be used to specify the background color.

{{divhide|Color test|color=#90EE90}}
The header of this section has different background color.
{{divhide|end}}
Color test

The header of this section has different background color.

Note on using this template to close discussions

This template should typically not be used to close discussions as {{hat}} is available for this purpose; but if it is, it should only be used by uninvolved editors or administrators in conjunction with the talk page guidelines and relevant advice at refactoring. It should not be used by involved parties to end a discussion over the objections of other editors.

See also

  • {{Divbox}} - allows you to create coloured text background
  • {{Collapse}}, {{Collapse top}} and {{Collapse bottom}}
  • {{Hidden}}, {{Hidden begin}} and {{Hidden end}}
  • {{Show}}
The above documentation is transcluded from Template:Divhide/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Divhide&oldid=1177081802"
Last edited on 25 September 2023, at 21:06

Languages

    • বাংলা
    • भोजपुरी
    • فارسی
    • हिन्दी
    • Bahasa Indonesia
    • മലയാളം
    • Bahasa Melayu
    • Oʻzbekcha / ўзбекча
    • ភាសាខ្មែរ
    • Simple English
    • سنڌي
    • Slovenščina
    • کوردی
    • தமிழ்
    • တႆး
    • ไทย
    • Тоҷикӣ
    • اردو
    • Tiếng Việt
    • Zazaki
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 25 September 2023, at 21:06 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop