Difference between revisions of "Template:Education stages"
imported>RogueScholar (Add titlestyle and navbar parameters with empty defaults for use when embedded as a child within other navboxes) |
imported>RogueScholar (Add title parameter (keeping existing title as default) for embedded use and created TemplateData) |
||
| Line 1: | Line 1: | ||
{{Navbox with columns | {{Navbox with columns | ||
|name = Education stages | |name = Education stages | ||
| − | |title = [[Educational stage|Stages]] of formal [[education]] | + | |title = {{{title|[[Educational stage|Stages]] of formal [[education]]}}} |
|titlestyle = {{{titlestyle|}}} | |titlestyle = {{{titlestyle|}}} | ||
|border = {{{border|}}} | |border = {{{border|}}} | ||
| Line 72: | Line 72: | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
| − | {{ | + | {{Documentation|link box=off|content= |
| − | [[Category:Education navigational boxes]] | + | == Blank example == |
| − | </noinclude> | + | ::<pre style="width: 25%; overflow: auto;">{{Education stages|state=}}</pre> |
| + | |||
| + | == Collapsible states == | ||
| + | {{Collapsible option|default=autocollapse}} | ||
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "title": { | ||
| + | "label": "Title", | ||
| + | "description": "The text to display on the top bar, which is always visible and can include wikilinks", | ||
| + | "example": "[[Educational stage]]s", | ||
| + | "type": "string", | ||
| + | "default": "[[Educational stage|Stages]] of formal [[education]]" | ||
| + | }, | ||
| + | "titlestyle": { | ||
| + | "label": "Title text style", | ||
| + | "description": "Accepts standard CSS formatting options to control the appearance of the box's title", | ||
| + | "example": "font-size: 95%; color: indigo;", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "border": { | ||
| + | "label": "Border spacing", | ||
| + | "description": "Controls the appearance and spacing of the outer border, primarily for use when embedded within another navigation box. Set to one of: ['child', 'subgroup', 'none'] or no value for standard format.", | ||
| + | "example": "child", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "state": { | ||
| + | "label": "Collapsible state", | ||
| + | "description": "Defines when and how the box will appear expanded or collapsed initially, set to one of: ['collapsed', 'expanded', 'autocollapse', 'plain', 'off']", | ||
| + | "example": "expanded", | ||
| + | "type": "string", | ||
| + | "default": "autocollapse", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "navbar": { | ||
| + | "label": "Title bar", | ||
| + | "description": "Controls the options present in the title bar, plain removes the V•T•E links on the left side. Set to one of: ['plain', 'off'] or no value for standard format.", | ||
| + | "example": "plain", | ||
| + | "type": "string" | ||
| + | } | ||
| + | }, | ||
| + | "description": "Displays a navigation box with links to articles on all the major stages of education", | ||
| + | "format": "inline", | ||
| + | "paramOrder": [ | ||
| + | "state", | ||
| + | "title", | ||
| + | "titlestyle", | ||
| + | "navbar", | ||
| + | "border" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
| + | }} | ||
| + | [[Category:Education navigational boxes]]</noinclude> | ||
Revision as of 19:40, 15 October 2019
Blank example
{{Education stages|state=}}
Collapsible states
Initial visibility: currently defaults to autocollapse
To set this template's initial visibility, the |state= parameter may be used:
|state=collapsed:{{Education stages|state=collapsed}}to show the template collapsed, i.e., hidden apart from its title bar|state=expanded:{{Education stages|state=expanded}}to show the template expanded, i.e., fully visible|state=autocollapse:{{Education stages|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 Education stages
Displays a navigation box with links to articles on all the major stages of education
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Collapsible state | state | Defines when and how the box will appear expanded or collapsed initially, set to one of: ['collapsed', 'expanded', 'autocollapse', 'plain', 'off']
| String | suggested |
| Title | title | The text to display on the top bar, which is always visible and can include wikilinks
| String | optional |
| Title text style | titlestyle | Accepts standard CSS formatting options to control the appearance of the box's title
| String | optional |
| Title bar | navbar | Controls the options present in the title bar, plain removes the V•T•E links on the left side. Set to one of: ['plain', 'off'] or no value for standard format.
| String | optional |
| Border spacing | border | Controls the appearance and spacing of the outer border, primarily for use when embedded within another navigation box. Set to one of: ['child', 'subgroup', 'none'] or no value for standard format.
| String | optional |