Difference between revisions of "Template:Collapsible"

From TFC:TNG
Jump to navigation Jump to search
(Updated the template data.)
(New page layout with Examples.)
Line 5: Line 5:
 
</div>
 
</div>
  
<noinclude><templatedata>
+
<noinclude>
 +
=Template Data=
 +
<templatedata>
 
{
 
{
 
"description": "Template for adding 'spoiler' like content windows.",
 
"description": "Template for adding 'spoiler' like content windows.",
Line 34: Line 36:
 
"format": "block"
 
"format": "block"
 
}
 
}
</templatedata></noinclude>
+
</templatedata>
 +
=Examples=
 +
 
 +
<code><nowiki>{{InlineItemImage|Oak Log|Log}}</nowiki></code>
 +
 
 +
words words words {{InlineItemImage|Oak Log|Log}} is good!
 +
 
 +
<code><nowiki>{{InlineItemImage|Oak Log|Log|background=sure}}</nowiki></code>
 +
 
 +
Look mawh, {{InlineItemImage|Oak Log|Log|background=sure}}I have a background!
 +
 
 +
<code><nowiki>{{InlineItemImage|Nope Log|Log|background=}}</nowiki></code>
 +
 
 +
and now I don't {{InlineItemImage|Nope Log|Log|background=}} sad face.
 +
</noinclude>

Revision as of 05:11, 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

{{InlineItemImage|Oak Log|Log}}

words words words Oak Log.png

is good!

{{InlineItemImage|Oak Log|Log|background=sure}}

Look mawh, Oak Log.png I have a background!

{{InlineItemImage|Nope Log|Log|background=}}

and now I don't No block image.png

sad face.