Difference between revisions of "Template:Collapsible"

From TFC:TNG
Jump to navigation Jump to search
(Stop the template data from getting in the template...)
Line 7: Line 7:
 
<noinclude><templatedata>
 
<noinclude><templatedata>
 
{
 
{
     "description": "A template for linking to a commons category about an article",
+
     "description": "Template for adding 'spoiler' like content windows.",
 
     "params": {
 
     "params": {
 
         "collapsed": {
 
         "collapsed": {
             "label": "Commons category",
+
             "label": "Collapsed",
             "description": "The commons category you want to link to.",
+
             "description": "If this should be collapsed by default on load.",
             "default": "Category:CommonsRoot",
+
             "type": "string"
             "type": "string",
+
        },
             "required": true
+
        "title": {
 +
            "label": "Title",
 +
             "description": "Bold, always shown on top of the template text.",
 +
             "type": "line"
 
         }
 
         }
 
     }
 
     }
 
}
 
}
 
</templatedata></noinclude>
 
</templatedata></noinclude>

Revision as of 04:32, 28 January 2020

Template for adding 'spoiler' like content windows.

Template parameters

ParameterDescriptionTypeStatus
Collapsedcollapsed

If this should be collapsed by default on load.

Stringoptional
Titletitle

Bold, always shown on top of the template text.

Lineoptional