Difference between revisions of "Template:Collapsible"
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 04:11, 28 January 2020
Template Data
Template for adding 'spoiler' like content windows.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Collapsed | collapsed | If this should be collapsed by default on load. | String | suggested |
Title | title | Bold, always shown on top of the template text. | Line | optional |
Always Shown Content | alwaysshowncontent | Content that is always shown in the box. This information can't be hidden. | Content | optional |
Hidden Content | hiddencontent | Content that can be hidden within the box. | Content | required |
Examples
{{InlineItemImage|Oak Log|Log}}
is good!
{{InlineItemImage|Oak Log|Log|background=sure}}
Look mawh, I have a background!
{{InlineItemImage|Nope Log|Log|background=}}
sad face.