Difference between revisions of "Template:Collapsible"

From TFC:TNG
Jump to navigation Jump to search
(Updated the template data.)
Line 7: Line 7:
 
<noinclude><templatedata>
 
<noinclude><templatedata>
 
{
 
{
    "description": "Template for adding 'spoiler' like content windows.",
+
"description": "Template for adding 'spoiler' like content windows.",
    "params": {
+
"params": {
        "collapsed": {
+
"collapsed": {
            "label": "Collapsed",
+
"label": "Collapsed",
            "description": "If this should be collapsed by default on load.",
+
"description": "If this should be collapsed by default on load.",
            "type": "string"
+
"type": "string",
        },
+
"suggested": true
        "title": {
+
},
            "label": "Title",
+
"title": {
            "description": "Bold, always shown on top of the template text.",
+
"label": "Title",
            "type": "line"
+
"description": "Bold, always shown on top of the template text.",
        }
+
"type": "line"
    }
+
},
 +
"alwaysshowncontent": {
 +
"label": "Always Shown Content",
 +
"description": "Content that is always shown in the box. This information can't be hidden.",
 +
"type": "content"
 +
},
 +
"hiddencontent": {
 +
"label": "Hidden Content",
 +
"description": "Content that can be hidden within the box.",
 +
"type": "content",
 +
"required": true
 +
}
 +
},
 +
"format": "block"
 
}
 
}
 
</templatedata></noinclude>
 
</templatedata></noinclude>

Revision as of 04:42, 28 January 2020

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