Template:CourseRank: Difference between revisions

From RHLUG Wiki
Jump to navigation Jump to search
Created page with "__NOEDITSECTION__<dl style=" background: #FBFBFB; padding-left: 0.5em; border: 1px solid #aaa; border-left: 10px solid #{{#switch: {{{rank|}}} | 1 = dc0000 | 2..."
 
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOEDITSECTION__<dl style="
__NOEDITSECTION__
  background: #FBFBFB;
<div style="border-left: 10px solid {{RankColor|{{{rank|}}}}}; background: #8883;">
  padding-left: 0.5em;
<div style="background: #aaa4; font-weight: bold; padding-left: 0.5em;">
  border: 1px solid #aaa;
{{RankName|{{{rank|}}}}}
  border-left: 10px solid #{{#switch: {{{rank|}}}
</div>
    | 1 = dc0000
<dl style="padding-left: 0.5em;">
    | 2 = dcdc00
    | 3 = 00dc00
    | #default = 000000
  }};
">
<dt>
<dt>
==== {{{course|Course}}} ====
==== {{{course|Course}}} ====
Line 15: Line 10:
{{{desc|}}}{{{1|}}}
{{{desc|}}}{{{1|}}}
</dl>
</dl>
</div>
<noinclude>
<noinclude>
__TOC__
__TOC__
== Usage ==
== Usage ==
Most of the time you should use a more specific decedent of the box template such as [[Template:guide:note|guide:note]] or [[Template:guide:file|guide:file]].
Most of the time you should use a more specific decedent of the box template such as [[Template:guide:note|guide:note]] or [[Template:guide:file|guide:file]].
Line 42: Line 39:
| desc  = Software: PSpice
| desc  = Software: PSpice
}}
}}
== TemplateData ==
<templatedata>
{
  "description": "Displays a course with rank-based styling.",
  "params": {
    "course": {
      "label": "Course",
      "description": "The name of the course",
      "type": "string",
      "required": true
    },
    "rank": {
      "label": "Rank",
      "description": "The rank of the course (1, 2, 3, 4, 5)",
      "type": "number",
      "required": true,
      "suggestedvalues": ["1", "2", "3", "4", "5"]
    },
    "desc": {
      "label": "Description",
      "description": "Short description of the course or software used",
      "type": "string",
      "required": false
    }
  }
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 05:13, 23 April 2025

Unknown

Course

Usage

Most of the time you should use a more specific decedent of the box template such as guide:note or guide:file.

{{CourseRank
  | course = Course Name
  | rank   = {1,2,3}
  | [desc   =] Description
}}

Examples

Alternative Software Available

CSSE332 - Operating Systems

Software: gcc, gdb, vim/emacs, svn


VM Required

CSSE123 - Foo Bar

Software: acme, limbo


Dual-Boot Required

ECE380 - Discrete Time and Continuous Systems

Software: PSpice


TemplateData

Displays a course with rank-based styling.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Coursecourse

The name of the course

Stringrequired
Rankrank

The rank of the course (1, 2, 3, 4, 5)

Suggested values
1 2 3 4 5
Numberrequired
Descriptiondesc

Short description of the course or software used

Stringoptional