Difference between revisions of "Template:FRS 2013"
imported>Zyxw m (add {{TemplateData header}} (via JWB)) |
imported>Zyxw (→TemplateData: update template description, add parameter description and other fields for "state", change format from "block" to "inline") |
||
| Line 73: | Line 73: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| + | "description": "This template displays a navigation box containing links to articles about Fellows of the Royal Society elected in 2013, including FRS, HonFRS, ForMemRS & Royal Members.", | ||
"params": { | "params": { | ||
| − | "state": {} | + | "state": { |
| + | "description": "This parameter may be used to set the template's initial visibility: if \"collapsed\" the content is hidden and only the title bar is visible (with [show] link), if \"expanded\" the content and title bar are fully visible (with [hide] link), and if \"autocollapse\" the template is collapsed when the page contains other collapsible items.", | ||
| + | "default": "autocollapse", | ||
| + | "example": "expanded", | ||
| + | "type": "string", | ||
| + | "required": false | ||
| + | } | ||
}, | }, | ||
| − | + | "format": "inline" | |
| − | "format": " | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 23:50, 23 February 2017
Initial visibility: currently defaults to autocollapse
To set this template's initial visibility, the |state= parameter may be used:
|state=collapsed:{{FRS 2013|state=collapsed}}to show the template collapsed, i.e., hidden apart from its title bar|state=expanded:{{FRS 2013|state=expanded}}to show the template expanded, i.e., fully visible|state=autocollapse:{{FRS 2013|state=autocollapse}}
If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.
TemplateData
TemplateData for FRS 2013
This template displays a navigation box containing links to articles about Fellows of the Royal Society elected in 2013, including FRS, HonFRS, ForMemRS & Royal Members.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| State | state | This parameter may be used to set the template's initial visibility: if "collapsed" the content is hidden and only the title bar is visible (with [show] link), if "expanded" the content and title bar are fully visible (with [hide] link), and if "autocollapse" the template is collapsed when the page contains other collapsible items.
| String | optional |