VOOZH about

URL: https://minecraft.wiki/w/Template:Grass_header

⇱ Template:Grass header – Minecraft Wiki


Template:Grass header

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
This template uses the following TemplateStyles: Template:Grass header/styles.css.

Creates a box with a header that is, by default, grass. It can also be simplified and be made collapsible.

This template uses styling from the main page.

Parameters

Parameter Function
|type= One of the following:
  • grass (default)
  • simple - a simple header style
  • collapsible - makes the box collapsible (using a simple style)
|1= The text in the header. If this parameter is continue, it closes a previously opened box without closing the wrapper. If this parameter is close, it closes both the final box and the wrapper.
|2= If this parameter is continue, it adds the box without adding another wrapper. With content, if this parameter is open/close, it opens/closes the beginning/end of the wrapper.
|wrapperstyle= Adds styling to the wrapper around the box
|boxclass= Set the class of the box
|boxstyle= Adds styling to the box
|header= Alternative for |1= (deprecated)
|headertag= Change the header tag to something other than h2. Only works for simple and collapsible.
|headerstyle= Adds styling to the header
|line= Adds a line below the header. Only works for simple and collapsible
|collapsed= Whether the box is already collapsed. Only works for collapsible
|content= The content in the cell. If this is specified, the box does not need to be closed.
|contentclass= Adds a class to the content
|contentstyle= Adds styling to the content

Example usage

{{grass header|Example grass header}}
This text is always visible.
{{grass header|close}}

Example grass header

This text is always visible.

{{grass header|type=collapsible|Collapsible box with header|line=1|headertag=h3}}
This text can be collapsed
{{grass header|close}}

Collapsible box with header


This text can be collapsed

{{grass header|type=simple|Header box with content|content=This is one single template call}}

Header box with content

This is a single template call
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Grass header/doc.
Retrieved from "https://minecraft.wiki/w/Template:Grass_header?oldid=3482292"

Navigation menu