Difference between revisions of "Collapsible elements"
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Concise}} | {{Concise}} | ||
− | + | ==Method 1== | |
<code><nowiki><div class="toccolours mw-collapsible mw-collapsed" style="width:600px"> | <code><nowiki><div class="toccolours mw-collapsible mw-collapsed" style="width:600px"> | ||
Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is collapsed when you open the page. | Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is collapsed when you open the page. | ||
Line 8: | Line 8: | ||
Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is collapsed when you open the page. | Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is collapsed when you open the page. | ||
</div> | </div> | ||
− | + | ==Method 2== | |
− | |||
− | |||
<code><nowiki><div class="toccolours mw-collapsible" style="width:600px"> | <code><nowiki><div class="toccolours mw-collapsible" style="width:600px"> | ||
Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is not yet collapsed when you open the page, but you can hide that content. | Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is not yet collapsed when you open the page, but you can hide that content. | ||
Line 17: | Line 15: | ||
<div class="toccolours mw-collapsible" style="width:600px"> | <div class="toccolours mw-collapsible" style="width:600px"> | ||
Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is not yet collapsed when you open the page, but you can hide that content. | Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is not yet collapsed when you open the page, but you can hide that content. | ||
+ | </div> | ||
+ | ==Method 3== | ||
+ | <div class="NavFrame" style="width:600px"> | ||
+ | <div class="NavHead">'''Navigation table'''</div> | ||
+ | <div class="NavContent mw-collapsible"> | ||
+ | Let's say you want to make a navigation table at the bottom of the page that looks like you can find on this page...<ref>[https://en.wikipedia.org/wiki/Timeline_of_the_Unification_Church Wikipedia: Timeline of the Unification Church]</ref> | ||
+ | </div> | ||
</div> | </div> | ||
+ | ==See also== | ||
+ | *[[Tables - Aligning, sortable, collapsible]] | ||
+ | ==References== | ||
+ | <references/> | ||
+ | ==External links== | ||
+ | *[https://www.mediawiki.org/wiki/Manual:Collapsible_elements Mediawiki: Manual: Collapsible elements] | ||
− | + | [[Category:Formatting help]] | |
− |
Latest revision as of 09:23, 2 July 2015
Method 1
<div class="toccolours mw-collapsible mw-collapsed" style="width:600px">
Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is collapsed when you open the page.
</div>
Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is collapsed when you open the page.
Method 2
<div class="toccolours mw-collapsible" style="width:600px">
Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is not yet collapsed when you open the page, but you can hide that content.
</div>
Let's say this is your text, or table, or any other content. When you use the code above, it creates a box of 600 pixels wide, and the content is not yet collapsed when you open the page, but you can hide that content.
Method 3
Let's say you want to make a navigation table at the bottom of the page that looks like you can find on this page...[1]