Template:Collapsible

From Daniel Larson Wiki
Revision as of 17:28, 18 January 2024 by TheEndZone (talk | contribs) (Created page with "{| class="mw-collapsible {{#ifeq:{{{state}}}|expanded||mw-collapsed}}" style="border:1px solid #aaa; background-color:#f9f9f9; padding:5px; font-size:95%; clear:both; margin:0 auto; width:75%;" ! style="background-color:#ccf;" | {{{1}}} |- | {{{2}}} |}<noinclude>{{Usage|1=This is a formatting template used to create collapsible boxes around content. This is especially useful for image galleries, navigation boxes, lists, and other sections that make a long article unwield...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
{{{1}}}
{{{2}}}

Usage

These usage notes will not be included in articles bearing this template.

This is a formatting template used to create collapsible boxes around content. This is especially useful for image galleries, navigation boxes, lists, and other sections that make a long article unwieldy.

The format for using this template is as follows:

{{collapsible|title|content}}

-Displays:

title
content

You can have the table expanded by default, by setting “state” to “expanded”.

{{collapsible|state=expanded|title|content}}

-Displays:

title
content

As an example, the following box will contain a gallery of Chris's homemade Yu-Gi-Oh! cards.

{{collapsible
|Chris's homemade ''[[Yu-Gi-Oh!]]'' cards
|<gallery perrow="5">
Image:104-GirlfriendAttract.jpg|example caption
Image:105-LonesomeSelf.jpg
Image:106-FrustratedVirgin.jpg|another caption
Image:107-HookedOnSonichu2.jpg
Image:108-PlanForAttraction.jpg
Image:109-CWCSpellsCard.jpg
Image:138-CurseYeHaMeHa.jpg
Image:139-CWCsDarkGlare.jpg
Image:140-AJerk.jpg
Image:141-JerksLoiteringLot.jpg
Image:142-QuizGirlfriend.jpg
Image:143-MaryLeeWalsh.jpg
Image:145-ShatteredHeart.jpg
Image:146-Jerkop.jpg
</gallery>}}

-Displays:

Chris's homemade Yu-Gi-Oh! cards