Editing Template:Colored box/doc
From Georgia Tech Student Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
− | This template was imported from |
+ | This template was imported from [[:w:en:Template:Colored box]] |
<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 21: | Line 42: | ||
== 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> |
||
+ | * <code><nowiki>{{Colored box|title=TITLE|content=CONTENT}}</nowiki></code> |
||
− | {{Colored box| |
||
+ | {{Colored box|title=TITLE|content=CONTENT}} |
||
− | title=College of Engineering| |
||
+ | * <code><nowiki>{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT}}</nowiki></code> |
||
− | content=List of majors: |
||
+ | {{Colored box|title=TITLE|link=MediaWiki|content=CONTENT}} |
||
− | * Aerospace Engineering |
||
+ | * <code><nowiki>{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT|view-text=VIEW-TEXT}}</nowiki></code> |
||
− | * Biomedical Engineering |
||
+ | {{Colored box|title=TITLE|link=MediaWiki|content=CONTENT|view-text=VIEW-TEXT}} |
||
− | * Chemical and Biomolecular Engineering |
||
+ | |||
− | * Civil and Environmental Engineering |
||
+ | * <code><nowiki>{{Colored box|title=TITLE|link=MediaWiki|icon=OOjs_UI_icon_download-progressive.svg|content=CONTENT|view-text=VIEW-TEXT}}</nowiki></code> |
||
− | * Electrical and Computer Engineering |
||
+ | {{Colored box|title=TITLE|link=MediaWiki|icon=OOjs_UI_icon_download-progressive.svg|content=CONTENT|view-text=VIEW-TEXT}} |
||
− | * Industrial and Systems Engineering |
||
− | * Materials Science and Engineering |
||
− | * Mechanical Engineering |
||
− | }} |