Difference between revisions of "Template:Colored box/doc"

From Georgia Tech Student Wiki
(Colored box documentation from https://www.mediawiki.org/wiki/Template:Colored_box/doc)
 
(Update documentation to match new template)
Line 2: Line 2:
   
 
{{Documentation subpage}}
 
{{Documentation subpage}}
This template was imported from [[:w:en:Template:Colored box]]
+
This template was imported from https://www.mediawiki.org/wiki/Template:Colored_box/doc and modified.
 
<templatedata>
 
<templatedata>
 
{
 
{
 
"params": {
 
"params": {
"background-content-color": {},
 
"class": {
 
"label": "extra classes",
 
"description": "Extra CSS classes to apply to the outermost box (space-separated). This is mainly for other templates using TemplateStyles so that they can scope their CSS to the box, but it may be useful in other cases as well.",
 
"type": "line"
 
},
 
"style": {
 
"label": "extra styles",
 
"description": "Extra inline CSS rules to apply to the outermost element. Prefer TemplateStyles and using CSS classes if possible when using this template in another template.",
 
"type": "line"
 
},
 
"background-title-color": {},
 
"icon": {
 
"type": "wiki-file-name",
 
"suggested": true
 
},
 
"title-color": {},
 
 
"title": {
 
"title": {
 
"required": true
 
"required": true
 
},
 
},
"link": {
 
"type": "wiki-page-name"
 
},
 
"link-color": {},
 
 
"content": {
 
"content": {
 
"required": true
 
"required": true
Line 43: Line 22:
   
 
== Examples ==
 
== Examples ==
  +
* <code><nowiki>{{Colored box|
  +
title=College of Engineering|
  +
content=List of majors:
  +
* Aerospace Engineering
  +
* Biomedical Engineering
  +
* Chemical and Biomolecular Engineering
  +
* Civil and Environmental Engineering
  +
* Electrical and Computer Engineering
  +
* Industrial and Systems Engineering
  +
* Materials Science and Engineering
  +
* Mechanical Engineering
  +
}}</nowiki></code>
   
  +
{{Colored box|
* <code><nowiki>{{Colored box|title=TITLE|content=CONTENT}}</nowiki></code>
 
  +
title=College of Engineering|
{{Colored box|title=TITLE|content=CONTENT}}
 
  +
content=List of majors:
* <code><nowiki>{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT}}</nowiki></code>
 
  +
* Aerospace Engineering
{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT}}
 
  +
* Biomedical Engineering
* <code><nowiki>{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT|view-text=VIEW-TEXT}}</nowiki></code>
 
  +
* Chemical and Biomolecular Engineering
{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT|view-text=VIEW-TEXT}}
 
  +
* Civil and Environmental Engineering
 
  +
* Electrical and Computer Engineering
* <code><nowiki>{{Colored box|title=TITLE|link=MediaWiki|icon=OOjs_UI_icon_download-progressive.svg|content=CONTENT|view-text=VIEW-TEXT}}</nowiki></code>
 
  +
* Industrial and Systems Engineering
{{Colored box|title=TITLE|link=MediaWiki|icon=OOjs_UI_icon_download-progressive.svg|content=CONTENT|view-text=VIEW-TEXT}}
 
  +
* Materials Science and Engineering
  +
* Mechanical Engineering
  +
}}

Revision as of 15:04, 8 July 2022


This template was imported from https://www.mediawiki.org/wiki/Template:Colored_box/doc and modified.

This template is for community pages

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

no description

Unknownrequired
Contentcontent

no description

Unknownrequired

Examples

  • {{Colored box| title=College of Engineering| content=List of majors: * Aerospace Engineering * Biomedical Engineering * Chemical and Biomolecular Engineering * Civil and Environmental Engineering * Electrical and Computer Engineering * Industrial and Systems Engineering * Materials Science and Engineering * Mechanical Engineering }}
College of Engineering
List of majors:
  • Aerospace Engineering
  • Biomedical Engineering
  • Chemical and Biomolecular Engineering
  • Civil and Environmental Engineering
  • Electrical and Computer Engineering
  • Industrial and Systems Engineering
  • Materials Science and Engineering
  • Mechanical Engineering