Grouse

EditingGuide: Difference between revisions

From Grouse House Wiki

(Created page with "== General Editing Guide and Templates == === Templates and Styles Available for Use === '''Crowdsourcing Notice''' {{Crowdsourcing}} <pre>{{Crowdsourcing}}</pre> '''Single column list box like here''' <pre><html><table class="TB-basic-list"> <th style="text-align:center;">List Title</th> <tr style="background-color: gray; text-align: center; font-weight: bold;"><td>List Subtitle</td></tr> <tr><td>List Content</td></tr> </table></html></pre> '...")
 
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
== General Editing Guide and Templates ==
This page contains important editing information, tips, and tricks for creating and managing wiki pages.


=== Templates and Styles Available for Use ===
'''Crowdsourcing Notice'''
{{Crowdsourcing}}
<pre>{{Crowdsourcing}}</pre>


'''Single column list box like [[Lunar_Event#Schedule|here]]'''
{| class="mw-collapsible mobiletoc"
<pre><html><table class="TB-basic-list">
! Table of Contents
<th style="text-align:center;">List Title</th>
|-
<tr style="background-color: gray; text-align: center; font-weight: bold;"><td>List Subtitle</td></tr>
| class="disclaimer | ''Links not working? Sections must be expanded to jump to a subheader within them!''
<tr><td>List Content</td></tr>
|-
</table></html></pre>
| class="mtocl1" | [https://grousehouse.wiki/Grouse:EditingGuide#Important_Information Important Information]
|-
| class="mtocl1" | [https://grousehouse.wiki/Grouse:EditingGuide#General_Editing_Resources General Editing Resources]
|-
| class="mtocl1" | [https://grousehouse.wiki/Grouse:EditingGuide#Uploading_Images Uploading Images]
|-
| class="mtocl2" | [https://grousehouse.wiki/Grouse:EditingGuide#Image_Naming_Conventions Image Naming Conventions]
|-
| class="mtocl1" | [https://grousehouse.wiki/Grouse:EditingGuide#Adding_Images_to_an_Article Adding Images to an Article]
|-
| class="mtocl1" | [https://grousehouse.wiki/Grouse:EditingGuide#Color_Guide Color Guide]
|-
| class="mtocl1" | [https://grousehouse.wiki/Grouse:EditingGuide#Basic_Page_Setup Basic Page Setup]
|-
| class="mtocl2" | [https://grousehouse.wiki/Grouse:EditingGuide#Headers_and_Sections Headers and Sections]
|}


'''Basic Responsive Image Grid'''<br>
Used on the Main page-this format is best for larger images.


<pre><div class="imagegrid">
{{SectionToggles}}
<div class="gridimage">[[File: IMAGE SOURCE]]</div>
<h2 class="c-header active">Important Information</h2>
<div class="gridimage">[[File: IMAGE SOURCE]]</div>
<div class="c-content" style="display: block;">
<div class="gridimage">[[File: IMAGE SOURCE]]</div>
== Important Information ==
<div class="gridimage">[[File: IMAGE SOURCE]]</div>
 
</div></pre>
Grousehouse.wiki is hosted on a small server and large processes can overload the server, causing the site to go down. When editing very large pages, please edit only by section (the edit links that appear next to headers), rather than by the whole page, in order to prevent issues. If you notice that the site has gone down or experience any other major issues, please ping Maddie in the Discord.
 
 
</div>
 
<h2 class="c-header active">General Editing Resources</h2>
<div class="c-content" style="display: block;">
== General Editing Resources ==
 
Wiki pages can be edited using HTML or Wikitext markup. Documentation for both languages are linked below.
 
 
[https://en.wikipedia.org/wiki/Help:Wikitext Wikitext help page]
 
[https://developer.mozilla.org/en-US/docs/Web/HTML HTML documentation]
 
 
If you would like to use HTML in an article, you must surround it with < html> < /html> tags. There are a few exceptions to this: Mediawiki can parse all of the HTML tags listed [https://www.mediawiki.org/wiki/Help:HTML_in_wikitext here], so surrounding these tags is not necessary.
 
 
The wiki also supports CSS formatting and Javascript functions. Maddie manages and creates both of these, so please check with her if you'd like something formatted or a feature added. Please do not edit pages ending in .css or .js without permission.
 
 
</div>
 
<h2 class="c-header active">Uploading Images</h2>
<div class="c-content" style="display: block;">
== Uploading Images ==
 
Some images can be uploaded directly to the wiki by an editor, but many will need to be added to the wiki directly by Maddie. This is so that the image can be accessed easily in the server, allowing certain Javascript functions (decor previewers, marking templates, etc.) to work. Generally, item images can be uploaded directly to the wiki, but not decoration or background items. If you're unsure whether or not you should upload an image directly to the wiki, feel free to ask Maddie!
 
 
You can upload an image on the [http://grousehouse.wiki/Special:Upload Upload] page, or by dragging and dropping a file into the menu bar visible while editing any page.
 
 
Below are some images which should not be uploaded directly to the wiki. Instead, place these images in a Google Drive folder and ping Maddie in the Discord to let me know that the images need to be uploaded directly to the server.
* Decoration and background thumbnails
* Decoration stages
* Plain marking or bases
 
 
When uploading images or creating a Google Drive folder with images to be uploaded to the wiki, be sure to follow naming convention guidelines outlined below.
 
 
<h3 class="c-header active">Image Naming Conventions</h3>
<div class="c-content" style="display: block;">
=== Image Naming Conventions ===
 
For ease of finding images used on the wiki, specific names are used for certain images. When downloading images, please stick strictly to these naming conventions.
 
 
'''Genetics'''
 
Genetics traits should be downloaded and uploaded into a Google Drive folder, since Maddie will add them to the server files directly. Downloaded genetics do not need to follow a specific naming convention as the images are edited before being added to the wiki. However, make sure that what has been downloaded is clear in the name (don't just leave it Untitled, etc).
 
 
'''Decor and Backgrounds'''
 
All decoration and background images should be downloaded and uploaded into a Google Drive folder, since Maddie will add them to the server files directly.
 
 
When saving a decoration or background, use the name of the item in plain text with no punctuation. For example, Scar: Cheekbone [Left] would be switch to Scarcheekboneleft. [USA] Utah - Bryce Canyon would be switched to Usautahbrycecanyon. The first letter of the image should be capitalized.
 
 
'''Thumbnails'''
 
 
The thumbnail images of decor and backgrounds should be the item's plain name by itself.
 
 
Decorname
 
Backgroundname
 
 
'''Decor Stages'''
 
 
If the decor is different on all stages, please use:
 
 
Decorname_adult
Decorname_motherly
Decorname_relaxed
Decorname_sentinel
Decorname_adolescent
Decorname_pup
Decorname_pupyoung
Decorname_pupnewborn

Decorname_brachycephaly
Decorname_conjoined
Decorname_polycephaly
Decorname_polymelia
Decorname_sirenomelia
 
 
If the decor is the same on all stages, please use:
 
 
Decorname_all
 
 
'''Backgrounds'''
 
 
For the thumbnail of a background, please use:
 
 
Backgroundname
 
 
For the full version of backgrounds, please use:
 


'''Small Image Grid'''<br>
Backgroundname_preview
This grid format is best used for lists of items like [[[[Lunar_Event#Event-Specific_Trophies|here]].


In this template, Fields 1 and 2 can be used to share any text, like the item's obtention or cost.
<pre>{{ItemGrid}}
{{ItemGridItem|[[File: IMAGE SOURCE]]|ITEM NAME|FIELD 1|FIELD 2}}
{{EndItemGrid}}</pre>


'''Explore Encounters'''<br>
If you are curious about naming schemes for additional items, please feel free to ask Maddie in Discord!
Explore encounter tables follow a simple format.


Image and text
<pre><html><table class="explore_encounter"><tr><td colspan=3 style="background:white;">[[File: IMAGE SOURCE.png]]</td></tr>
<tr><td colspan=3>ENCOUNTER TEXT</td></tr></pre>


Multiple choice options
</div>
<pre><tr class="encounter_options">
</div>
<td style="width: 20%;">OPTION 1</td>
<td style="width: 50%;">RESULT 1</td>
<td style="width: 30%;">REWARD 1</td></tr>
<tr class="encounter_options">
<td style="width: 20%;">OPTION 2</td>
<td style="width: 50%;">RESULT 2</td>
<td style="width: 30%;">REWARD 2</td></tr></pre>


If an option has multiple results, you can use a rowspan.
<h2 class="c-header active">Adding Images to an Article</h2>
<pre><tr class="encounter_options">
<div class="c-content" style="display: block;">
<td style="width: 20%;" rowspan=2>OPTION 1</td>
== Adding Images to an Article ==
<td style="width: 50%;">RESULT 1a</td>
<td style="width: 30%;">REWARD 1a</td></tr>
<tr class="encounter_options">
<td style="width: 50%;">RESULT 1b</td>
<td style="width: 30%;">REWARD 1b</td></tr></pre>


Be sure to close the table when you're done!
Images can be added to articles in two different way.
<pre></table></html></pre>


'''Shopkeeper Table'''<br>
This table is used at the top of any shops to share the shopkeeper's image and text.


<pre><table class="shopkeeper" style="background-color:#dedede;border:1px solid black;">
Images which have been uploaded to the website through the on-site uploading feature, and which can be found through searching its name in the [https://grousehouse.wiki/index.php?title=Special:Search&profile=images&search=&fulltext=1 multimedia search] can be uploaded with Wikitext. You can type <html><b>[[File:name]]</b></html>, with name being replaced with the file name and extension of the image you are added. For example, <html>[[File:Nestingmaterial.png]]</html> will add the Nesting Material image.
<tr style="border: 1px solid black;">
<td style="background-color:#c7c7c7;"><b>SHOPKEEPER NAME</b></td><td style="text-align:right;background-color:#c7c7c7;"></td></tr>
<tr><td><img src="IMAGE SOURCE"></td>
<td>SHOPKEEPER TEXT</td></tr>
</table></html></pre>




'''Shop Content'''<br>
Images can also be added with HTML. Images uploaded directly to the server by Maddie must be added to a page this way, but any other image can also be added this way if you wish. With HTML, images must be added using their links with <img src="link">. You will be able to find the link to an image by opening it in a new tab. You do not need to include grousehouse.wiki in the link, just /images/path. For example, the link to the Spring icon would be "/images/0/04/Icon-season-spring.png". If you're not sure where a specific image is located, Maddie can find it for you if you ask them in Discord!
Shop content templates are separated by shop to make updating easier.


Lunar Shop Content
<pre>{{ShopContent}}
{{LunarShopItem||ITEM NAME|[[File: IMAGE THUMB SOURCE]]|COST (DIGIT ONLY)|ADDITIONAL REQUIREMENTS|[[FILE: PREVIEW IMAGE SOURCE]]}}
{{EndShopContent}}</pre>


</div>


'''Lunar Event Applicators'''<br>
<h2 class="c-header active">Color Guide</h2>
Monthly lunar event applicators.
<div class="c-content" style="display: block;">
== Color Guide ==


Base month
Here are some hex codes for some common colors used across the site.
<pre><table class="lunar_applicators">
<tr style="border: 1px solid black;">
<td style="background-color:#c7c7c7;" colspan=4><b>MONTH YEAR</b></td>
</tr><tr style="border: 1px solid black;">
<td colspan=4>[[File: PREVIEW IMAGE SOURCE|class="img_appmonth"]]</td>
</tr><tr style="border: 1px solid black;">
<td style="width: 25%;">[[File: BASE ICON SOURCE]]<br>'''Base Applicator [NAME]'''<br>[[File:Icon-lunartear.png]] 500 LT</td>
<td style="width: 25%;">[[File: CLAW ICON SOURCE.png]]<br>'''Claw Applicator [NAME]'''<br>[[File:Icon-lunartear.png]] 80 LT</td>
<td style="width: 25%;">[[File: NOSE ICON SOURCE.png]]<br>'''Nose Applicator [NAME]'''<br>[[File:Icon-lunartear.png]] 80 LT</td>
<td style="width: 25%;">[[File: SKIN ICON SOURCE.png]]<br>'''Skin Applicator [NAME]'''<br>[[File:Icon-lunartear.png]] 80 LT</td>
</tr><tr style="border: 1px solid black;">
<td>[[File: EYES ICON SOURCE.png]]<br>'''Eye Applicator [NAME]'''<br>[[File:Icon-lunartear.png]] 200 LT</td>
<td></td><td></td><td></td></tr></table></pre>


Markings month
<pre><table class="lunar_applicators">
<tr style="border: 1px solid black;">
<td style="background-color:#c7c7c7;" colspan=4><b>MONTH YEAR</b></td>
</tr><tr style="border: 1px solid black;">
<td colspan=4>[[File: PREVIEW IMAGE SOURCE.png|class="img_appmonth"]]</td>
</tr><tr style="border: 1px solid black;">
<td style="width: 25%;"></td>
<td style="width: 25%;">[[File: MARKINGS ICON SOURCE.png]]<br>'''Markings Applicator [NAME]'''<br>[[File:Icon-lunartear.png]] 250 LT</td><td style="width: 25%;">[[File: EYES ICON SOURCE.png]]<br>'''Eye Applicator [NAME]'''<br>[[File:Icon-lunartear.png]] 200 LT</td><td style="width: 25%;"></td></tr></table></pre>


Special event with eye applicator
<table style="width: 100%;">
<pre><table class="lunar_applicators">
<tr>
<tr style="border: 1px solid black;">
<td style="background-color: #3a5f70; width: 10%;"></td><td style="padding-left: 1em; width: 20%;">#3a5f70</td><td>Primary table headers</td>
<td style="background-color:#c7c7c7;" colspan=4><b>MONTH YEAR</b></td>
</tr><tr>
<td style="background-color: #648a9b; width: 10%;"></td><td style="padding-left: 1em;">#648a9b</td><td>Secondary table headers</td>
</tr><tr>
</tr><tr>
<td colspan=3>During this Special Lunar Event, every previous applicator returned, so only an eye applicator was introduced.</td>
<td style="background-color: #f4f4f4; width: 10%;"></td><td style="padding-left: 1em;">#f4f4f4</td><td>Used alongside white for alternating table rows</td>
</tr><tr style="border: 1px solid black;">
</tr><tr>
<td colspan=3>[[File: PREVIEW IMAGE SOURCE.png]]</td>
<td style="background-color: #dbdbdb; width: 10%;"></td><td style="padding-left: 1em;">#dbdbdb</td><td>Used to emphasize table cells that aren't headers</td>
</tr><tr style="border: 1px solid black;">
</tr><tr>
<td style="width: 33%;"></td>
<td style="background-color: #d4d4d4; width: 10%;"></td><td style="padding-left: 1em;">#d4d4d4</td><td>Sidebar mid gray</td>
<td style="width: 33%;">[[File: EYES ICON SOURCE.png]]<br>'''Eye Applicator [NAME]'''<br>[[File:Icon-lunartear.png]] 200 LT</td>
</tr><tr>
<td style="width: 33%;"></td></tr></table></pre>
<td style="background-color: #d33; width: 10%;"></td><td style="padding-left: 1em;">#d33</td><td>Warning red</td>
</tr>
</table>


Special event with no new applicators
<pre><table class="lunar_applicators">
<tr style="border: 1px solid black;">
<td style="background-color:#c7c7c7;" colspan=4><b>MONTH YEAR</b></td>
</tr><tr>
<td colspan=3>No new applicators were released during this Special Lunar Event.</td>
</tr></table></pre>


'''Crafting Recipe'''
</div>
 
<h2 class="c-header active">Basic Page Setup</h2>
<div class="c-content" style="display: block;">
 
== Basic Page Setup ==
 
<h3 class="c-header active">Headers and Sections</h3>
<div class="c-content" style="display: block;">
=== Headers and Sections ===
 
Headers define how a section is presented in the article. Sections are collapsible, allowing users with Javascript enabled to hide a section from view. The header of each section must be defined by three elements: a header with a specific class, a div to start the collapsed content (if applicable), and a second header use to get around Mediawiki editing constraints. Headers entered without using a class will not appear on the page!
 
 
Right now, the use of these classes are only required for H2 and H3 headers - if you're using any header smaller than that, feel free to just use equal signs instead!
 
 
===='''Collapsible Headers'''====
 
 
Collapsible headers are the default for the wiki. They should be used for every section unless otherwise specified. When using collapsible headers, each section must begin with a header class and collapsible content div, and end with a
<pre style="margin:0;"></div></pre>
For the section to include a working edit button, you must also add a second header to get around Mediawiki constraints.
 
 
In order to define the top of the collapsible content section, you can add this text. You will change the display style depending on whether or not the content is collapsed by default.
<pre><div class="c-content" style="display: block;"></pre>
 
 
For example, a section might appear like this if it is collapsible and open by default.
<pre><h2 class="c-header active">Header</h2>
<div class="c-content" style="display: block;">
== Header ==
Section content.
</div></pre>
 
 
'''Open by Default'''
 
To create a section that's open by default, add the following class to your header tag and change the collapsible div display style to "block".
 
 
'''Main Header'''
<pre><h2 class="c-header active">Header</h2>
<div class="c-content" style="display: block;"></pre>
 
'''Sub Header'''
<pre><h3 class="c-header active">Header</h3>
<div class="c-content" style="display: block;"></pre>
 
 
'''Examples'''
 
Here are some of the common headers used across the site as examples you can copy and paste.


<pre>{{CraftingRecipe
|RECIPE NAME
|[[File: RECIPE THUMB SOURCE]]
|INGREDIENTS - with images and separated by breaks (example below)
|OBTENTION METHOD
|[[File: PREVIEW IMAGE SOURCE]]
}}</pre>


Ingredients formatting example
'''H2 Collapsed by Default'''
<pre>
<pre><h2 class="c-header hidden">Header</h2>
{{CraftingRecipe
<div class="c-content" style="display: none;">
|RECIPE NAME
== Header ==
|[[File: RECIPE THUMB SOURCE]]
Section content.
|[[File:chargedcore.png]] x1 Charged Core<br>[[File:charged_eyeball.png]] x2 Charged Eyeball<br>[[File:essence-covered-furclump.png]] x10 Essence-Covered Fur Clump<br>[[File:glowing_spores.png]] x15 Glowing Spores
</div></pre>
|OBTENTION METHOD
|[[File: PREVIEW IMAGE SOURCE]]
}}</pre>


=== Tips and Tricks ===
'''Making a section collapsible'''<br><br>


Article sections are not collapsible by default on the desktop version of the wiki. In order to make a caption collapse, the header must be an h2 header, and the content in the section must be surrounded by a classed div.<
'''H3 Collapsed by Default'''
<pre>== HEADER ==
<pre><h3 class="c-header hidden">Header</h3>
<div class="c-content">
<div class="c-content" style="display: none;">
CONTENT
=== Header ===
Section content.
</div></pre>
</div></pre>


'''Adding a caption to an image'''<br><br>


Mediawiki's built-in Frame format helps you add a caption to an image. By default, the framed image will be off to the side of the page, but adding a "center" parameter will move it to the center.
</div>
<pre>[[File: IMAGE SOURCE|frame|CAPTION]]
[[File: IMAGE SOURCE|center|frame|CAPTION]]</pre>

Latest revision as of 23:15, 22 December 2024

This page contains important editing information, tips, and tricks for creating and managing wiki pages.


Table of Contents
Links not working? Sections must be expanded to jump to a subheader within them!
Important Information
General Editing Resources
Uploading Images
Image Naming Conventions
Adding Images to an Article
Color Guide
Basic Page Setup
Headers and Sections


Important Information

Important Information

Grousehouse.wiki is hosted on a small server and large processes can overload the server, causing the site to go down. When editing very large pages, please edit only by section (the edit links that appear next to headers), rather than by the whole page, in order to prevent issues. If you notice that the site has gone down or experience any other major issues, please ping Maddie in the Discord.


General Editing Resources

General Editing Resources

Wiki pages can be edited using HTML or Wikitext markup. Documentation for both languages are linked below.


Wikitext help page

HTML documentation


If you would like to use HTML in an article, you must surround it with < html> < /html> tags. There are a few exceptions to this: Mediawiki can parse all of the HTML tags listed here, so surrounding these tags is not necessary.


The wiki also supports CSS formatting and Javascript functions. Maddie manages and creates both of these, so please check with her if you'd like something formatted or a feature added. Please do not edit pages ending in .css or .js without permission.


Uploading Images

Uploading Images

Some images can be uploaded directly to the wiki by an editor, but many will need to be added to the wiki directly by Maddie. This is so that the image can be accessed easily in the server, allowing certain Javascript functions (decor previewers, marking templates, etc.) to work. Generally, item images can be uploaded directly to the wiki, but not decoration or background items. If you're unsure whether or not you should upload an image directly to the wiki, feel free to ask Maddie!


You can upload an image on the Upload page, or by dragging and dropping a file into the menu bar visible while editing any page.


Below are some images which should not be uploaded directly to the wiki. Instead, place these images in a Google Drive folder and ping Maddie in the Discord to let me know that the images need to be uploaded directly to the server.

  • Decoration and background thumbnails
  • Decoration stages
  • Plain marking or bases


When uploading images or creating a Google Drive folder with images to be uploaded to the wiki, be sure to follow naming convention guidelines outlined below.


Image Naming Conventions

Image Naming Conventions

For ease of finding images used on the wiki, specific names are used for certain images. When downloading images, please stick strictly to these naming conventions.


Genetics

Genetics traits should be downloaded and uploaded into a Google Drive folder, since Maddie will add them to the server files directly. Downloaded genetics do not need to follow a specific naming convention as the images are edited before being added to the wiki. However, make sure that what has been downloaded is clear in the name (don't just leave it Untitled, etc).


Decor and Backgrounds

All decoration and background images should be downloaded and uploaded into a Google Drive folder, since Maddie will add them to the server files directly.


When saving a decoration or background, use the name of the item in plain text with no punctuation. For example, Scar: Cheekbone [Left] would be switch to Scarcheekboneleft. [USA] Utah - Bryce Canyon would be switched to Usautahbrycecanyon. The first letter of the image should be capitalized.


Thumbnails


The thumbnail images of decor and backgrounds should be the item's plain name by itself.


Decorname

Backgroundname


Decor Stages


If the decor is different on all stages, please use:


Decorname_adult Decorname_motherly Decorname_relaxed Decorname_sentinel Decorname_adolescent Decorname_pup Decorname_pupyoung Decorname_pupnewborn
 Decorname_brachycephaly Decorname_conjoined Decorname_polycephaly Decorname_polymelia Decorname_sirenomelia


If the decor is the same on all stages, please use:


Decorname_all


Backgrounds


For the thumbnail of a background, please use:


Backgroundname


For the full version of backgrounds, please use:


Backgroundname_preview


If you are curious about naming schemes for additional items, please feel free to ask Maddie in Discord!


Adding Images to an Article

Adding Images to an Article

Images can be added to articles in two different way.


Images which have been uploaded to the website through the on-site uploading feature, and which can be found through searching its name in the multimedia search can be uploaded with Wikitext. You can type [[File:name]], with name being replaced with the file name and extension of the image you are added. For example, [[File:Nestingmaterial.png]] will add the Nesting Material image.


Images can also be added with HTML. Images uploaded directly to the server by Maddie must be added to a page this way, but any other image can also be added this way if you wish. With HTML, images must be added using their links with <img src="link">. You will be able to find the link to an image by opening it in a new tab. You do not need to include grousehouse.wiki in the link, just /images/path. For example, the link to the Spring icon would be "/images/0/04/Icon-season-spring.png". If you're not sure where a specific image is located, Maddie can find it for you if you ask them in Discord!


Color Guide

Color Guide

Here are some hex codes for some common colors used across the site.


#3a5f70Primary table headers
#648a9bSecondary table headers
#f4f4f4Used alongside white for alternating table rows
#dbdbdbUsed to emphasize table cells that aren't headers
#d4d4d4Sidebar mid gray
#d33Warning red


Basic Page Setup

Basic Page Setup

Headers and Sections

Headers and Sections

Headers define how a section is presented in the article. Sections are collapsible, allowing users with Javascript enabled to hide a section from view. The header of each section must be defined by three elements: a header with a specific class, a div to start the collapsed content (if applicable), and a second header use to get around Mediawiki editing constraints. Headers entered without using a class will not appear on the page!


Right now, the use of these classes are only required for H2 and H3 headers - if you're using any header smaller than that, feel free to just use equal signs instead!


Collapsible Headers

Collapsible headers are the default for the wiki. They should be used for every section unless otherwise specified. When using collapsible headers, each section must begin with a header class and collapsible content div, and end with a

</div>

For the section to include a working edit button, you must also add a second header to get around Mediawiki constraints.


In order to define the top of the collapsible content section, you can add this text. You will change the display style depending on whether or not the content is collapsed by default.

<div class="c-content" style="display: block;">


For example, a section might appear like this if it is collapsible and open by default.

<h2 class="c-header active">Header</h2>
<div class="c-content" style="display: block;">
== Header ==
Section content.
</div>


Open by Default

To create a section that's open by default, add the following class to your header tag and change the collapsible div display style to "block".


Main Header

<h2 class="c-header active">Header</h2>
<div class="c-content" style="display: block;">

Sub Header

<h3 class="c-header active">Header</h3>
<div class="c-content" style="display: block;">


Examples

Here are some of the common headers used across the site as examples you can copy and paste.


H2 Collapsed by Default

<h2 class="c-header hidden">Header</h2>
<div class="c-content" style="display: none;">
== Header ==
Section content.
</div>


H3 Collapsed by Default

<h3 class="c-header hidden">Header</h3>
<div class="c-content" style="display: none;">
=== Header ===
Section content.
</div>