Difference between revisions of "Template:Education"

From blackwiki
Jump to navigation Jump to search
imported>Davemck
m (rmv duplicate parm)
 
(15 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
{{Navbox with collapsible groups
 
{{Navbox with collapsible groups
| name = Education
+
| name         = Education
| title = Topics in [[education]]
+
| title       = [[Education]]
| bodyclass = hlist
+
| bodyclass   = hlist
| state = {{{state<includeonly>|autocollapse</includeonly>}}}
+
| state       = {{{state<includeonly>|autocollapse</includeonly>}}}
 +
| selected    = {{{1|}}}
  
| list1 = {{Navbox|subgroup
+
| abbr1        = overview
 
+
| list1       = {{Navbox|child
| group1 = [[:Category:Education|General]]
+
  | title      = Overview
| list1 =
+
  | titlestyle = font-size: 90%;
 +
  | state      = {{#switch: {{{1|}}} | | overview=expanded | stages | by region=collapsed }}
 +
  | group1     = [[:Category:Education|General]]
 +
  | list1     =  
 
* [[Glossary of education-related terms|Glossary]]
 
* [[Glossary of education-related terms|Glossary]]
 
* [[Index of education articles|Index]]
 
* [[Index of education articles|Index]]
 
* [[Outline of education|Outline]]
 
* [[Outline of education|Outline]]
 +
* [[Educational aims and objectives|Aims and objectives]]
 
* [[Educational anthropology|Anthropology]]
 
* [[Educational anthropology|Anthropology]]
 
* [[Educational assessment|Assessment]]
 
* [[Educational assessment|Assessment]]
Line 29: Line 34:
 
* [[Types of educational institutions|Types of institutions]]
 
* [[Types of educational institutions|Types of institutions]]
  
| group2 = [[:Category:Education by subject|By subject]]
+
  | group2     = [[:Category:Education by subject|By subject]]
| list2 =
+
  | list2     =  
 
* [[Agricultural education|Agricultural]]
 
* [[Agricultural education|Agricultural]]
 
* [[Art education|Art]]
 
* [[Art education|Art]]
Line 36: Line 41:
 
* [[Business education|Business]]
 
* [[Business education|Business]]
 
* [[Chemistry education|Chemistry]]
 
* [[Chemistry education|Chemistry]]
 +
* [[Computer science education|Computer science]]
 
* [[Design education|Design]]
 
* [[Design education|Design]]
 
* [[Economics education|Economics]]
 
* [[Economics education|Economics]]
Line 64: Line 70:
 
* [[:Category:Education by subject|More...]]
 
* [[:Category:Education by subject|More...]]
  
| group3 = [[Alternative education|Alternative]]
+
  | group3     = [[Alternative education|Alternative]]
| list3 =
+
  | list3     =  
 
* [[Autodidacticism]]
 
* [[Autodidacticism]]
 
* [[Education reform]]
 
* [[Education reform]]
Line 74: Line 80:
 
* [[:Category:Alternative education|More...]]
 
* [[:Category:Alternative education|More...]]
  
| group4 = [[Portal:Education/Wikimedia|Wikimedia]]
+
  | group4     = Wikimedia
| list4 =
+
  | list4     =  
 
* [[b:Subject:Education|Books]]
 
* [[b:Subject:Education|Books]]
 
* [[wikt:education|Definitions]]
 
* [[wikt:education|Definitions]]
Line 83: Line 89:
 
* [[q:Education|Quotes]]
 
* [[q:Education|Quotes]]
 
* [[s:Education|Texts]]
 
* [[s:Education|Texts]]
}}
+
  }}
  
| group2 =
+
| list2       = {{Education stages|border=child
| list2 = {{Education stages|border=child}}
+
  | navbar    = plain
 +
  | title      = [[Educational stage|Stages]]
 +
  | titlestyle = font-size: 90%;
 +
  | state      = {{#ifeq: {{{1|}}} | stages | expanded | }}
 +
  }}
  
| group3 = Education by region
+
| abbr3        = by region
| list3 =
+
| group3       = Education by region
{{Africa topic|Education in|border=child}}
+
| group3style  = font-size: 90%;
{{Asia topic|Education in|border=child}}
+
| state3      = {{#switch: {{{1|}}} | by region | africa | asia | europe | north america | oceania | south america=uncollapsed | collapsed }}
{{Europe topic|Education in|border=child}}
+
| list3       =  
{{North America topic|Education in|border=child}}
+
{{Africa topic|Education in|border=child|navbar=plain|titlestyle=font-size:88%;|state={{#ifeq: {{{1|}}} | africa | expanded | collapsed}}}}
{{Oceania topic|Education in|border=child}}
+
{{Asia topic|Education in|border=child|navbar=plain|titlestyle=font-size:88%;|state={{#ifeq: {{{1|}}} | asia | expanded | collapsed }}}}
{{South America topic|Education in|border=child}}
+
{{Europe topic|Education in|border=child|navbar=plain|titlestyle=font-size:88%;|IE=Education in the Republic of Ireland|GE=Education in Georgia (country)|state={{#ifeq: {{{1|}}} | europe | expanded | collapsed }}}}
 +
{{North America topic|Education in|border=child|navbar=plain|titlestyle=font-size:88%;|state={{#ifeq: {{{1|}}} | north america | expanded | collapsed }}}}
 +
{{Oceania topic|Education in|border=child|navbar=plain|titlestyle=font-size:88%;|state={{#ifeq: {{{1|}}} | oceania | expanded | collapsed }}}}
 +
{{South America topic|Education in|border=child|navbar=plain|titlestyle=font-size:88%;|state={{#ifeq: {{{1|}}} | south america | expanded | collapsed }}}}
  
| below=
+
|below=
* {{Icon|Portal}} [[Portal:Education|Portal]]
+
* '''{{portal-inline|Schools|size=tiny}}'''
 +
* {{Icon|Category}} [[:Category:Education|Category]]
 
* {{Icon|WikiProject}} [[Wikipedia:WikiProject Education|WikiProject]]
 
* {{Icon|WikiProject}} [[Wikipedia:WikiProject Education|WikiProject]]
* {{Icon|Category}} [[:Category:Education|Category]]
 
* {{Icon|Category}}[[Adult education|Adult]]
 
* {{Icon|Category}}[[Alternative education|Alternative]]
 
* {{Icon|Category}}[[Sex education|Sex]]
 
  
 
}}<noinclude>
 
}}<noinclude>
{{doc|content=
+
{{Documentation|link box=off|content=
{{collapsible option}}
+
== Example ==
 +
::<pre style="width: 30%; overflow: auto;">{{Education|stages|state=expanded}}</pre>
 +
{{Collapse|title=Example code above displays as|content={{Education|stages|state=expanded}}}}
 +
 
 +
::<pre style="width: 40%; overflow: auto;">{{Education|europe|state=collapsed}}</pre>
 +
{{Collapse|title=Example code above displays as|content={{Education|europe|state=collapsed}}}}
 +
 
 +
=== Empty parameters ===
 +
::<pre style="width: 20%; overflow: auto;">{{Education|1=|state=}}</pre>
 +
 
 +
== Collapsible states ==
 +
{{Collapsible option|default=autocollapse}}
 +
 
 +
 
 +
<span class="center"><hr width="67%"></span>
 +
 
 +
 
 +
{{Collapsible sections option
 +
| list    = {{Hlist|overview|stages|"by region"|africa|asia|europe|"north america"|oceania|"south america"}}
 +
| example = by region
 +
| default = overview
 +
}}
 +
 
 +
== TemplateData ==
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Subgroup expansion",
 +
"description": "Changes the subgroup which is already open if the template is expanded when the page loads, set to one of: ['overview', 'stages', 'by region']. Can be supplied as an unnamed parameter.",
 +
"example": "by region",
 +
"type": "string",
 +
"default": "overview"
 +
},
 +
"state": {
 +
"label": "Collapsible state",
 +
"description": "Controls how and when the template appears when the page is loaded, set to one of: ['expanded', 'collapsed', 'autocollapse', 'plain', 'off']",
 +
"example": "expanded",
 +
"type": "string",
 +
"default": "autocollapse",
 +
"suggested": true
 +
}
 +
},
 +
"description": "Display a navigational box with a large assortment of links to important education-related articles",
 +
"paramOrder": [
 +
"1",
 +
"state"
 +
],
 +
"format": "inline"
 +
}
 +
</templatedata>
 +
}}
 
[[Category:Education navigational boxes| ]]
 
[[Category:Education navigational boxes| ]]
[[Category:World topic navigational boxes]]
+
[[Category:World topic navigational boxes]]</noinclude>
}}
 
</noinclude>
 

Latest revision as of 17:58, 20 June 2020

Template documentation

Example

{{Education|stages|state=expanded}}
Example code above displays as
{{Education|europe|state=collapsed}}
Example code above displays as

Empty parameters

{{Education|1=|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|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Education|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Education|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.




How to manage this template's collapsible groups/sections option
  • This template includes collapsible groups/sections. When it first appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this, include the parameter |name where name is one of the following words that identify the groups/sections (omit any speech or quotation marks):
    • overview
    • stages
    • "by region"
    • africa
    • asia
    • europe
    • "north america"
    • oceania
    • "south america"
  • For example: {{Education |by region}}
  • The group/section named overview has been set to be visible when the template appears.

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

Display a navigational box with a large assortment of links to important education-related articles

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Subgroup expansion1

Changes the subgroup which is already open if the template is expanded when the page loads, set to one of: ['overview', 'stages', 'by region']. Can be supplied as an unnamed parameter.

Default
overview
Example
by region
Stringoptional
Collapsible statestate

Controls how and when the template appears when the page is loaded, set to one of: ['expanded', 'collapsed', 'autocollapse', 'plain', 'off']

Default
autocollapse
Example
expanded
Stringsuggested