Difference between revisions of "Template:Collapsible"

From TFC:TNG
Jump to navigation Jump to search
(New page layout with Examples.)
(Helps If I copy paste the right data....)
Line 39: Line 39:
 
=Examples=
 
=Examples=
  
<code><nowiki>{{InlineItemImage|Oak Log|Log}}</nowiki></code>
+
<code><nowiki>{{Collapsible|collapsed=yes|alwaysshowncontent= You always see this! I can't be hidden!| hiddencontent= You only see this if you expanded me!}}</nowiki></code>
  
words words words {{InlineItemImage|Oak Log|Log}} is good!
+
{{Collapsible|collapsed=yes|alwaysshowncontent= You always see this! I can't be hidden!| hiddencontent= You only see this if you expanded me!}}
  
<code><nowiki>{{InlineItemImage|Oak Log|Log|background=sure}}</nowiki></code>
+
<code><nowiki><code><nowiki>{{Collapsible|title= This is a title!| hiddencontent= I'm always shown by default if collapsed is missing or empty!}}</nowiki></code></nowiki></code>
  
Look mawh, {{InlineItemImage|Oak Log|Log|background=sure}}I have a background!
+
{{Collapsible|title= This is a title!| hiddencontent= I'm always shown by default if collapsed is missing or empty!}}
  
<code><nowiki>{{InlineItemImage|Nope Log|Log|background=}}</nowiki></code>
+
<code><nowiki>{{Collapsible| hiddencontent= Sometimes you don't always want something so hide it all!}}</nowiki></code>
  
and now I don't {{InlineItemImage|Nope Log|Log|background=}} sad face.
+
{{Collapsible| hiddencontent= Sometimes you don't always want something so hide it all!}}
 
</noinclude>
 
</noinclude>

Revision as of 04:12, 28 January 2020


Template Data

Template for adding 'spoiler' like content windows.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Collapsedcollapsed

If this should be collapsed by default on load.

Stringsuggested
Titletitle

Bold, always shown on top of the template text.

Lineoptional
Always Shown Contentalwaysshowncontent

Content that is always shown in the box. This information can't be hidden.

Contentoptional
Hidden Contenthiddencontent

Content that can be hidden within the box.

Contentrequired

Examples

{{Collapsible|collapsed=yes|alwaysshowncontent= You always see this! I can't be hidden!| hiddencontent= You only see this if you expanded me!}}

You always see this! I can't be hidden!
You only see this if you expanded me!


<code><nowiki>{{Collapsible|title= This is a title!| hiddencontent= I'm always shown by default if collapsed is missing or empty!}}</nowiki>

This is a title!
I'm always shown by default if collapsed is missing or empty!


{{Collapsible| hiddencontent= Sometimes you don't always want something so hide it all!}}

Sometimes you don't always want something so hide it all!