Difference between revisions of "Template:Education stages"

From blackwiki
Jump to navigation Jump to search
imported>AnthonyIreland
m (Updated to link correctly to the respective articles.)
 
(30 intermediate revisions by 20 users not shown)
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|}}}
 
|border = {{{border|}}}
 
|border = {{{border|}}}
 
|state = {{{state|autocollapse}}}
 
|state = {{{state|autocollapse}}}
 +
|navbar = {{{navbar|}}}
 
|colwidth = 20%
 
|colwidth = 20%
|col4width =40%
+
|col4width = 40%
 
|col1header = [[Early childhood education]]
 
|col1header = [[Early childhood education]]
 
|col2header = [[Primary education]]
 
|col2header = [[Primary education]]
 
|col3header = [[Secondary education]]
 
|col3header = [[Secondary education]]
|col4header = [[Tertiary education]]  
+
|col4header = [[Tertiary education]]
  
|col1 ={{Navbox with columns|child
+
|col1 = {{Navbox with columns|child
 
   |colwidth = 50%
 
   |colwidth = 50%
 
   |colstyle = text-align:center;
 
   |colstyle = text-align:center;
  
   |col1header = [[Preschool education|Preschool]] →
+
   |col1header = [[Preschool]]<br>&rarr;
   |col2header = [[Kindergarten]] &rarr;
+
   |col2header = [[Kindergarten]]<br>&rarr;
 
 
 
  }}
 
  }}
  
|col2 = {{Navbox with columns|child
+
|col2 = {{Navbox with columns|child
 
   |colwidth = 50%
 
   |colwidth = 50%
 
   |colstyle = text-align:center;
 
   |colstyle = text-align:center;
  
   |col1header = [[Primary school|Primary]] &rarr;
+
   |col1header = [[Primary school]]<br>&rarr;
   |col2header = [[Middle school|Middle]] &rarr;
+
 
 +
   |col1 = {{Navbox with columns|child
 +
    |colwidth = 50%
 +
    |colstyle = text-align:center;
  
 +
    |col1header = Infant<br>&rarr;
 +
    |col2header = Junior<br>&rarr;
 +
  }}
 
  }}
 
  }}
  
|col3 ={{Navbox with columns|child
+
|col3 = {{Navbox with columns|child
 
   |colwidth = 50%
 
   |colwidth = 50%
 
   |colstyle = text-align:center;
 
   |colstyle = text-align:center;
  
   |col1header =   [[High school]] &rarr;
+
   |col1header = [[Secondary school]]<br>&rarr;
  
   |col1 = {{Navbox with columns|child
+
   |col1 = {{Navbox with columns|child
 
     |colwidth = 50%
 
     |colwidth = 50%
 
     |colstyle = text-align:center;
 
     |colstyle = text-align:center;
  
     |col1header = [[Junior High School]] &rarr;
+
     |col1header = [[Middle school (North America)|Middle school]]<br>&rarr;
     |col2header = [[Senior High School]]
+
     |col2header = [[High school (North America)|High school]]<br>&rarr;
 
   }}
 
   }}
 
  }}
 
  }}
|col4 = {{Navbox with columns|child
+
|col4 = {{Navbox with columns|child
 
   |colwidth = 50%
 
   |colwidth = 50%
 
   |colstyle = text-align:center;
 
   |colstyle = text-align:center;
   |col1header = [[Higher education]]
+
   |col1header = [[Higher education]]<br>&nbsp;
   |col2header =[[Vocational education|Vocational]]
+
   |col2header = [[Vocational education|Vocational]]
   |col3header =[[Further education|Further]]
+
   |col3header = [[Further education|Further]]<br>([[Continuing education|Continuing]])
  
   |col1 = {{Navbox with columns|child
+
   |col1 = {{Navbox with columns|child
 
     |colwidth = 50%
 
     |colwidth = 50%
 
     |colstyle = text-align:center;
 
     |colstyle = text-align:center;
  
     |col1header = [[Undergraduate education|Undergraduate]] &rarr;
+
     |col1header = [[Undergraduate education|Undergraduate]]<br>&rarr;
     |col2header = [[Postgraduate education|Postgraduate]]
+
     |col2header = [[Postgraduate education|Postgraduate]]<br>&nbsp;
 
   }}
 
   }}
 
  }}
 
  }}
|below= [[Alternative education]] ([[Homeschooling]]), [[Adult education]], ([[Portal:Education|Portal]])
+
|below= {{flatlist|
 +
* [[Alternative education]]
 +
** [[Homeschooling]]
 +
* [[Adult education]]
 +
* {{icon|Portal}} [[Portal:Education|Portal]]
 +
}}
 +
}}<noinclude>
 +
{{Documentation|link box=off|content=
 +
== Blank example ==
 +
::<pre style="width: 25%; overflow: auto;">{{Education stages|state=}}</pre>
 +
 
 +
== Collapsible states ==
 +
{{Collapsible option|default=autocollapse}}
  
}}<noinclude>
+
== TemplateData ==
{{collapsible option}}
+
{{TemplateData header}}
[[Category:Education navigational boxes]]
+
<templatedata>
</noinclude>
+
{
 +
"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>

Latest revision as of 12:42, 20 May 2020

Template documentation

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}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

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

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Education stages

Displays a navigation box with links to articles on all the major stages of education

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Collapsible statestate

Defines when and how the box will appear expanded or collapsed initially, set to one of: ['collapsed', 'expanded', 'autocollapse', 'plain', 'off']

Default
autocollapse
Example
expanded
Stringsuggested
Titletitle

The text to display on the top bar, which is always visible and can include wikilinks

Default
[[Educational stage|Stages]] of formal [[education]]
Example
[[Educational stage]]s
Stringoptional
Title text styletitlestyle

Accepts standard CSS formatting options to control the appearance of the box's title

Example
font-size: 95%; color: indigo;
Stringoptional
Title barnavbar

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
Stringoptional
Border spacingborder

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
Stringoptional