Template:Collapsible: Difference between revisions

From FBSA Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{| class="mw-collapsible mw-collapsed" style="background:none; border:none;" ! style="border-top: 2px solid #ddd; border-bottom:2px solid #ddd; margin:1em; paddin...")
 
No edit summary
Line 1: Line 1:
<includeonly>{| class="mw-collapsible mw-collapsed" style="background:none; border:none;"
<includeonly>{| class="mw-collapsible mw-collapsed" style="background:none; border:none;"
! style="border-top: 2px solid #ddd; border-bottom:2px solid #ddd; margin:1em; padding:0.2em;" | '''{{{title|}}}''&nbsp;&nbsp;&nbsp;'''
! style="border-top: 2px solid #ddd; border-bottom:2px solid #ddd; margin:1em; padding:0.2em;" | '''{{{header|}}}''&nbsp;&nbsp;&nbsp;'''
|-
|-
|{{{1}}}
|{{{1}}}
Line 6: Line 6:
|style="border-top: 2px solid #ddd; border-bottom:2px solid #ddd; margin:1em; padding:0.2em;" | '''{{{footer|}}}'' '''
|style="border-top: 2px solid #ddd; border-bottom:2px solid #ddd; margin:1em; padding:0.2em;" | '''{{{footer|}}}'' '''
|}</includeonly><noinclude>
|}</includeonly><noinclude>
<pre><nowiki>{{Collapsible|This collapses!}}</nowiki></pre>
 
<pre><nowiki>{{Collapsible|Neat, right?|title="This has a custom title!"}}</nowiki></pre>
{{Collapsible|This collapses!}}
<pre><nowiki>{{Collapsible|This is a spoiler.}}</nowiki></pre>
{{Collapsible|Neat!|header="This is a header!"}}
{{Collapsible|Cool!|footer="This is a footer!"}}
{{Collapsible|Awesome!|header="This is a header with a footer!"|footer="The aforementioned footer!"}}


Adaptation of [[Template:Spoilers]] using MediaWiki collapsible tables to keep the information concealed unless the reader specifically expands the section to read them. I basically just copy-pasted what they did and added additional parameters so you can put in whatever you want.
Adaptation of [[Template:Spoilers]] using MediaWiki collapsible tables to keep the information concealed unless the reader specifically expands the section to read them. I basically just copy-pasted what they did and added additional parameters so you can put in whatever you want.


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 21:35, 13 April 2022


   
This collapses!
"This is a header!"   
Neat!
   
Cool!
"This is a footer!"
"This is a header with a footer!"   
Awesome!
"The aforementioned footer!"

Adaptation of Template:Spoilers using MediaWiki collapsible tables to keep the information concealed unless the reader specifically expands the section to read them. I basically just copy-pasted what they did and added additional parameters so you can put in whatever you want.